[2025-02-08 00:00:05] Production.INFO: next invoice date [2025-02-08 00:00:05] Production.INFO: 2025-03-08 [2025-02-08 00:00:05] Production.INFO: getdaysdiff [2025-02-08 00:00:05] Production.INFO: +28 [2025-02-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:05] Production.INFO: next invoice date [2025-02-08 00:00:05] Production.INFO: 2025-03-08 [2025-02-08 00:00:05] Production.INFO: getdaysdiff [2025-02-08 00:00:05] Production.INFO: +28 [2025-02-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,0,0,,,0) [2025-02-08 00:00:05] Production.INFO: next invoice date [2025-02-08 00:00:05] Production.INFO: 2025-03-08 [2025-02-08 00:00:05] Production.INFO: getdaysdiff [2025-02-08 00:00:05] Production.INFO: +28 [2025-02-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,0,0,,,0) [2025-02-08 00:00:05] Production.INFO: next invoice date [2025-02-08 00:00:05] Production.INFO: 2025-03-08 [2025-02-08 00:00:05] Production.INFO: getdaysdiff [2025-02-08 00:00:05] Production.INFO: +28 [2025-02-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:06] Production.INFO: next invoice date [2025-02-08 00:00:06] Production.INFO: 2025-03-08 [2025-02-08 00:00:06] Production.INFO: getdaysdiff [2025-02-08 00:00:06] Production.INFO: +28 [2025-02-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,0,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,0,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:07] Production.INFO: next invoice date [2025-02-08 00:00:07] Production.INFO: 2025-03-08 [2025-02-08 00:00:07] Production.INFO: getdaysdiff [2025-02-08 00:00:07] Production.INFO: +28 [2025-02-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:08] Production.INFO: next invoice date [2025-02-08 00:00:08] Production.INFO: 2025-03-08 [2025-02-08 00:00:08] Production.INFO: getdaysdiff [2025-02-08 00:00:08] Production.INFO: +28 [2025-02-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:08] Production.INFO: next invoice date [2025-02-08 00:00:08] Production.INFO: 2025-03-08 [2025-02-08 00:00:08] Production.INFO: getdaysdiff [2025-02-08 00:00:08] Production.INFO: +28 [2025-02-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:08] Production.INFO: next invoice date [2025-02-08 00:00:08] Production.INFO: 2025-03-08 [2025-02-08 00:00:08] Production.INFO: getdaysdiff [2025-02-08 00:00:08] Production.INFO: +28 [2025-02-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,28,28,'RMScheduler',2025-02-08 00:00:05,1,0,,,0) [2025-02-08 00:00:09] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:00:09 [end_date_ymd] => 2025-02-08 00:00:09 [RateCDR] => 1 ) [2025-02-08 00:00:09] 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-02-07 21:00:09' and `end` < '2025-02-08 00:00:09' 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-02-08 00:00:23] Production.INFO: count ==972 [2025-02-08 00:00:23] Production.ERROR: pbx CDR StartTime 2025-02-07 21:00:09 - End Time 2025-02-08 00:00:09 [2025-02-08 00:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425900', 'tblTempUsageDetail_20' ) start [2025-02-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425900', 'tblTempUsageDetail_20' ) end [2025-02-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425900', 'tblTempVendorCDR_20' ) start [2025-02-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425900', 'tblTempVendorCDR_20' ) end [2025-02-08 00:00:23] Production.INFO: ProcessCDR(1,14425900,1,1,2) [2025-02-08 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425900', 'tblTempUsageDetail_20' ) start [2025-02-08 00:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425900', 'tblTempUsageDetail_20' ) end [2025-02-08 00:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:00:31] Production.INFO: ==31809== Releasing lock... [2025-02-08 00:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:00:31] Production.INFO: 36.75 MB #Memory Used# [2025-02-08 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:01:05 [end_date_ymd] => 2025-02-08 00:01:05 [RateCDR] => 1 ) [2025-02-08 00: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` >= '2025-02-07 21:01:05' and `end` < '2025-02-08 00: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 ,'') [2025-02-08 00:01:18] Production.INFO: count ==946 [2025-02-08 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:01:05 - End Time 2025-02-08 00:01:05 [2025-02-08 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425906', 'tblTempUsageDetail_20' ) start [2025-02-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425906', 'tblTempUsageDetail_20' ) end [2025-02-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425906', 'tblTempVendorCDR_20' ) start [2025-02-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425906', 'tblTempVendorCDR_20' ) end [2025-02-08 00:01:18] Production.INFO: ProcessCDR(1,14425906,1,1,2) [2025-02-08 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425906', 'tblTempUsageDetail_20' ) start [2025-02-08 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425906', 'tblTempUsageDetail_20' ) end [2025-02-08 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:01:21] Production.INFO: ==31897== Releasing lock... [2025-02-08 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-08 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:02:05 [end_date_ymd] => 2025-02-08 00:02:05 [RateCDR] => 1 ) [2025-02-08 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 21:02:05' and `end` < '2025-02-08 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 00:02:27] Production.INFO: count ==246 [2025-02-08 00:02:27] Production.ERROR: pbx CDR StartTime 2025-02-07 21:02:05 - End Time 2025-02-08 00:02:05 [2025-02-08 00:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425911', 'tblTempUsageDetail_20' ) start [2025-02-08 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425911', 'tblTempUsageDetail_20' ) end [2025-02-08 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425911', 'tblTempVendorCDR_20' ) start [2025-02-08 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425911', 'tblTempVendorCDR_20' ) end [2025-02-08 00:02:27] Production.INFO: ProcessCDR(1,14425911,1,1,2) [2025-02-08 00:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425911', 'tblTempUsageDetail_20' ) start [2025-02-08 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425911', 'tblTempUsageDetail_20' ) end [2025-02-08 00:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:02:30] Production.INFO: ==31975== Releasing lock... [2025-02-08 00:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:02:30] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:03:05 [end_date_ymd] => 2025-02-08 00:03:05 [RateCDR] => 1 ) [2025-02-08 00:03: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` >= '2025-02-07 21:03:05' and `end` < '2025-02-08 00:03: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 ,'') [2025-02-08 00:03:29] Production.INFO: count ==251 [2025-02-08 00:03:29] Production.ERROR: pbx CDR StartTime 2025-02-07 21:03:05 - End Time 2025-02-08 00:03:05 [2025-02-08 00:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425916', 'tblTempUsageDetail_20' ) start [2025-02-08 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425916', 'tblTempUsageDetail_20' ) end [2025-02-08 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425916', 'tblTempVendorCDR_20' ) start [2025-02-08 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425916', 'tblTempVendorCDR_20' ) end [2025-02-08 00:03:29] Production.INFO: ProcessCDR(1,14425916,1,1,2) [2025-02-08 00:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425916', 'tblTempUsageDetail_20' ) start [2025-02-08 00:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425916', 'tblTempUsageDetail_20' ) end [2025-02-08 00:03:34] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:03:34] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:03:34] Production.INFO: ==32051== Releasing lock... [2025-02-08 00:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:03:34] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:04:05 [end_date_ymd] => 2025-02-08 00:04:05 [RateCDR] => 1 ) [2025-02-08 00:04: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` >= '2025-02-07 21:04:05' and `end` < '2025-02-08 00:04: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 ,'') [2025-02-08 00:04:29] Production.INFO: count ==258 [2025-02-08 00:04:29] Production.ERROR: pbx CDR StartTime 2025-02-07 21:04:05 - End Time 2025-02-08 00:04:05 [2025-02-08 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425921', 'tblTempUsageDetail_20' ) start [2025-02-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425921', 'tblTempUsageDetail_20' ) end [2025-02-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425921', 'tblTempVendorCDR_20' ) start [2025-02-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425921', 'tblTempVendorCDR_20' ) end [2025-02-08 00:04:29] Production.INFO: ProcessCDR(1,14425921,1,1,2) [2025-02-08 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425921', 'tblTempUsageDetail_20' ) start [2025-02-08 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425921', 'tblTempUsageDetail_20' ) end [2025-02-08 00:04:33] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:04:33] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:04:33] Production.INFO: ==32126== Releasing lock... [2025-02-08 00:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:04:33] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:05:05 [end_date_ymd] => 2025-02-08 00:05:05 [RateCDR] => 1 ) [2025-02-08 00:05: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` >= '2025-02-07 21:05:05' and `end` < '2025-02-08 00:05: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 ,'') [2025-02-08 00:05:25] Production.INFO: count ==268 [2025-02-08 00:05:25] Production.ERROR: pbx CDR StartTime 2025-02-07 21:05:05 - End Time 2025-02-08 00:05:05 [2025-02-08 00:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425926', 'tblTempUsageDetail_20' ) start [2025-02-08 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425926', 'tblTempUsageDetail_20' ) end [2025-02-08 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425926', 'tblTempVendorCDR_20' ) start [2025-02-08 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425926', 'tblTempVendorCDR_20' ) end [2025-02-08 00:05:25] Production.INFO: ProcessCDR(1,14425926,1,1,2) [2025-02-08 00:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425926', 'tblTempUsageDetail_20' ) start [2025-02-08 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425926', 'tblTempUsageDetail_20' ) end [2025-02-08 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:05:29] Production.INFO: ==32198== Releasing lock... [2025-02-08 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:05:29] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:06:05 [end_date_ymd] => 2025-02-08 00:06:05 [RateCDR] => 1 ) [2025-02-08 00:06: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` >= '2025-02-07 21:06:05' and `end` < '2025-02-08 00:06: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 ,'') [2025-02-08 00:06:19] Production.INFO: count ==268 [2025-02-08 00:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:06:05 - End Time 2025-02-08 00:06:05 [2025-02-08 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425931', 'tblTempUsageDetail_20' ) start [2025-02-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425931', 'tblTempUsageDetail_20' ) end [2025-02-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425931', 'tblTempVendorCDR_20' ) start [2025-02-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425931', 'tblTempVendorCDR_20' ) end [2025-02-08 00:06:19] Production.INFO: ProcessCDR(1,14425931,1,1,2) [2025-02-08 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425931', 'tblTempUsageDetail_20' ) start [2025-02-08 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425931', 'tblTempUsageDetail_20' ) end [2025-02-08 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:06:22] Production.INFO: ==32270== Releasing lock... [2025-02-08 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:07:05 [end_date_ymd] => 2025-02-08 00:07:05 [RateCDR] => 1 ) [2025-02-08 00:07: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` >= '2025-02-07 21:07:05' and `end` < '2025-02-08 00:07: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 ,'') [2025-02-08 00:07:19] Production.INFO: count ==264 [2025-02-08 00:07:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:07:05 - End Time 2025-02-08 00:07:05 [2025-02-08 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425936', 'tblTempUsageDetail_20' ) start [2025-02-08 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425936', 'tblTempUsageDetail_20' ) end [2025-02-08 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425936', 'tblTempVendorCDR_20' ) start [2025-02-08 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425936', 'tblTempVendorCDR_20' ) end [2025-02-08 00:07:19] Production.INFO: ProcessCDR(1,14425936,1,1,2) [2025-02-08 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425936', 'tblTempUsageDetail_20' ) start [2025-02-08 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425936', 'tblTempUsageDetail_20' ) end [2025-02-08 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:07:22] Production.INFO: ==32342== Releasing lock... [2025-02-08 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:08:05 [end_date_ymd] => 2025-02-08 00:08:05 [RateCDR] => 1 ) [2025-02-08 00:08: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` >= '2025-02-07 21:08:05' and `end` < '2025-02-08 00:08: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 ,'') [2025-02-08 00:08:23] Production.INFO: count ==269 [2025-02-08 00:08:23] Production.ERROR: pbx CDR StartTime 2025-02-07 21:08:05 - End Time 2025-02-08 00:08:05 [2025-02-08 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425941', 'tblTempUsageDetail_20' ) start [2025-02-08 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425941', 'tblTempUsageDetail_20' ) end [2025-02-08 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425941', 'tblTempVendorCDR_20' ) start [2025-02-08 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425941', 'tblTempVendorCDR_20' ) end [2025-02-08 00:08:23] Production.INFO: ProcessCDR(1,14425941,1,1,2) [2025-02-08 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425941', 'tblTempUsageDetail_20' ) start [2025-02-08 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425941', 'tblTempUsageDetail_20' ) end [2025-02-08 00:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:08:27] Production.INFO: ==32460== Releasing lock... [2025-02-08 00:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:08:27] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:09:05 [end_date_ymd] => 2025-02-08 00:09:05 [RateCDR] => 1 ) [2025-02-08 00:09: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` >= '2025-02-07 21:09:05' and `end` < '2025-02-08 00:09: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 ,'') [2025-02-08 00:09:19] Production.INFO: count ==269 [2025-02-08 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:09:05 - End Time 2025-02-08 00:09:05 [2025-02-08 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425946', 'tblTempUsageDetail_20' ) start [2025-02-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425946', 'tblTempUsageDetail_20' ) end [2025-02-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425946', 'tblTempVendorCDR_20' ) start [2025-02-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425946', 'tblTempVendorCDR_20' ) end [2025-02-08 00:09:19] Production.INFO: ProcessCDR(1,14425946,1,1,2) [2025-02-08 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425946', 'tblTempUsageDetail_20' ) start [2025-02-08 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425946', 'tblTempUsageDetail_20' ) end [2025-02-08 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:09:22] Production.INFO: ==32533== Releasing lock... [2025-02-08 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:10:05 [end_date_ymd] => 2025-02-08 00:10:05 [RateCDR] => 1 ) [2025-02-08 00:10: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` >= '2025-02-07 21:10:05' and `end` < '2025-02-08 00:10: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 ,'') [2025-02-08 00:10:27] Production.INFO: count ==273 [2025-02-08 00:10:27] Production.ERROR: pbx CDR StartTime 2025-02-07 21:10:05 - End Time 2025-02-08 00:10:05 [2025-02-08 00:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425951', 'tblTempUsageDetail_20' ) start [2025-02-08 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425951', 'tblTempUsageDetail_20' ) end [2025-02-08 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425951', 'tblTempVendorCDR_20' ) start [2025-02-08 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425951', 'tblTempVendorCDR_20' ) end [2025-02-08 00:10:27] Production.INFO: ProcessCDR(1,14425951,1,1,2) [2025-02-08 00:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425951', 'tblTempUsageDetail_20' ) start [2025-02-08 00:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425951', 'tblTempUsageDetail_20' ) end [2025-02-08 00:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:10:30] Production.INFO: ==32608== Releasing lock... [2025-02-08 00:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:10:30] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:11:06 [end_date_ymd] => 2025-02-08 00:11:06 [RateCDR] => 1 ) [2025-02-08 00:11: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-02-07 21:11:06' and `end` < '2025-02-08 00:11: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-02-08 00:11:32] Production.INFO: count ==271 [2025-02-08 00:11:32] Production.ERROR: pbx CDR StartTime 2025-02-07 21:11:06 - End Time 2025-02-08 00:11:06 [2025-02-08 00:11:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425957', 'tblTempUsageDetail_20' ) start [2025-02-08 00:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425957', 'tblTempUsageDetail_20' ) end [2025-02-08 00:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425957', 'tblTempVendorCDR_20' ) start [2025-02-08 00:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425957', 'tblTempVendorCDR_20' ) end [2025-02-08 00:11:32] Production.INFO: ProcessCDR(1,14425957,1,1,2) [2025-02-08 00:11:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425957', 'tblTempUsageDetail_20' ) start [2025-02-08 00:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425957', 'tblTempUsageDetail_20' ) end [2025-02-08 00:11:35] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:11:35] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:11:35] Production.INFO: ==32688== Releasing lock... [2025-02-08 00:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:11:35] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:12:05 [end_date_ymd] => 2025-02-08 00:12:05 [RateCDR] => 1 ) [2025-02-08 00:12: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` >= '2025-02-07 21:12:05' and `end` < '2025-02-08 00:12: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 ,'') [2025-02-08 00:12:29] Production.INFO: count ==269 [2025-02-08 00:12:29] Production.ERROR: pbx CDR StartTime 2025-02-07 21:12:05 - End Time 2025-02-08 00:12:05 [2025-02-08 00:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425962', 'tblTempUsageDetail_20' ) start [2025-02-08 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425962', 'tblTempUsageDetail_20' ) end [2025-02-08 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425962', 'tblTempVendorCDR_20' ) start [2025-02-08 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425962', 'tblTempVendorCDR_20' ) end [2025-02-08 00:12:29] Production.INFO: ProcessCDR(1,14425962,1,1,2) [2025-02-08 00:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425962', 'tblTempUsageDetail_20' ) start [2025-02-08 00:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425962', 'tblTempUsageDetail_20' ) end [2025-02-08 00:12:32] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:12:32] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:12:32] Production.INFO: ==32761== Releasing lock... [2025-02-08 00:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:12:32] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:13:05 [end_date_ymd] => 2025-02-08 00:13:05 [RateCDR] => 1 ) [2025-02-08 00:13: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` >= '2025-02-07 21:13:05' and `end` < '2025-02-08 00:13: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 ,'') [2025-02-08 00:13:22] Production.INFO: count ==269 [2025-02-08 00:13:22] Production.ERROR: pbx CDR StartTime 2025-02-07 21:13:05 - End Time 2025-02-08 00:13:05 [2025-02-08 00:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425967', 'tblTempUsageDetail_20' ) start [2025-02-08 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425967', 'tblTempUsageDetail_20' ) end [2025-02-08 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425967', 'tblTempVendorCDR_20' ) start [2025-02-08 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425967', 'tblTempVendorCDR_20' ) end [2025-02-08 00:13:22] Production.INFO: ProcessCDR(1,14425967,1,1,2) [2025-02-08 00:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425967', 'tblTempUsageDetail_20' ) start [2025-02-08 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425967', 'tblTempUsageDetail_20' ) end [2025-02-08 00:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:13:25] Production.INFO: ==386== Releasing lock... [2025-02-08 00:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:13:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:14:04 [end_date_ymd] => 2025-02-08 00:14:04 [RateCDR] => 1 ) [2025-02-08 00:14:04] 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-02-07 21:14:04' and `end` < '2025-02-08 00:14:04' 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-02-08 00:14:19] Production.INFO: count ==266 [2025-02-08 00:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:14:04 - End Time 2025-02-08 00:14:04 [2025-02-08 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425972', 'tblTempUsageDetail_20' ) start [2025-02-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425972', 'tblTempUsageDetail_20' ) end [2025-02-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425972', 'tblTempVendorCDR_20' ) start [2025-02-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425972', 'tblTempVendorCDR_20' ) end [2025-02-08 00:14:19] Production.INFO: ProcessCDR(1,14425972,1,1,2) [2025-02-08 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425972', 'tblTempUsageDetail_20' ) start [2025-02-08 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425972', 'tblTempUsageDetail_20' ) end [2025-02-08 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:14:22] Production.INFO: ==455== Releasing lock... [2025-02-08 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:15:05 [end_date_ymd] => 2025-02-08 00:15:05 [RateCDR] => 1 ) [2025-02-08 00:15: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` >= '2025-02-07 21:15:05' and `end` < '2025-02-08 00:15: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 ,'') [2025-02-08 00:15:23] Production.INFO: count ==265 [2025-02-08 00:15:24] Production.ERROR: pbx CDR StartTime 2025-02-07 21:15:05 - End Time 2025-02-08 00:15:05 [2025-02-08 00:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425977', 'tblTempUsageDetail_20' ) start [2025-02-08 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425977', 'tblTempUsageDetail_20' ) end [2025-02-08 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425977', 'tblTempVendorCDR_20' ) start [2025-02-08 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425977', 'tblTempVendorCDR_20' ) end [2025-02-08 00:15:24] Production.INFO: ProcessCDR(1,14425977,1,1,2) [2025-02-08 00:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425977', 'tblTempUsageDetail_20' ) start [2025-02-08 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425977', 'tblTempUsageDetail_20' ) end [2025-02-08 00:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:15:26] Production.INFO: ==534== Releasing lock... [2025-02-08 00:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:15:26] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:16:05 [end_date_ymd] => 2025-02-08 00:16:05 [RateCDR] => 1 ) [2025-02-08 00:16: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` >= '2025-02-07 21:16:05' and `end` < '2025-02-08 00:16: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 ,'') [2025-02-08 00:16:23] Production.INFO: count ==267 [2025-02-08 00:16:23] Production.ERROR: pbx CDR StartTime 2025-02-07 21:16:05 - End Time 2025-02-08 00:16:05 [2025-02-08 00:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425982', 'tblTempUsageDetail_20' ) start [2025-02-08 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425982', 'tblTempUsageDetail_20' ) end [2025-02-08 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425982', 'tblTempVendorCDR_20' ) start [2025-02-08 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425982', 'tblTempVendorCDR_20' ) end [2025-02-08 00:16:23] Production.INFO: ProcessCDR(1,14425982,1,1,2) [2025-02-08 00:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425982', 'tblTempUsageDetail_20' ) start [2025-02-08 00:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425982', 'tblTempUsageDetail_20' ) end [2025-02-08 00:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:16:27] Production.INFO: ==619== Releasing lock... [2025-02-08 00:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:16:27] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:17:05 [end_date_ymd] => 2025-02-08 00:17:05 [RateCDR] => 1 ) [2025-02-08 00:17: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` >= '2025-02-07 21:17:05' and `end` < '2025-02-08 00:17: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 ,'') [2025-02-08 00:17:21] Production.INFO: count ==268 [2025-02-08 00:17:21] Production.ERROR: pbx CDR StartTime 2025-02-07 21:17:05 - End Time 2025-02-08 00:17:05 [2025-02-08 00:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425987', 'tblTempUsageDetail_20' ) start [2025-02-08 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425987', 'tblTempUsageDetail_20' ) end [2025-02-08 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425987', 'tblTempVendorCDR_20' ) start [2025-02-08 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425987', 'tblTempVendorCDR_20' ) end [2025-02-08 00:17:21] Production.INFO: ProcessCDR(1,14425987,1,1,2) [2025-02-08 00:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425987', 'tblTempUsageDetail_20' ) start [2025-02-08 00:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425987', 'tblTempUsageDetail_20' ) end [2025-02-08 00:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:17:26] Production.INFO: ==716== Releasing lock... [2025-02-08 00:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:17:26] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:18:06 [end_date_ymd] => 2025-02-08 00:18:06 [RateCDR] => 1 ) [2025-02-08 00:18: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-02-07 21:18:06' and `end` < '2025-02-08 00:18: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-02-08 00:18:19] Production.INFO: count ==268 [2025-02-08 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:18:06 - End Time 2025-02-08 00:18:06 [2025-02-08 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425992', 'tblTempUsageDetail_20' ) start [2025-02-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425992', 'tblTempUsageDetail_20' ) end [2025-02-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425992', 'tblTempVendorCDR_20' ) start [2025-02-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425992', 'tblTempVendorCDR_20' ) end [2025-02-08 00:18:19] Production.INFO: ProcessCDR(1,14425992,1,1,2) [2025-02-08 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425992', 'tblTempUsageDetail_20' ) start [2025-02-08 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425992', 'tblTempUsageDetail_20' ) end [2025-02-08 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:18:22] Production.INFO: ==805== Releasing lock... [2025-02-08 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:19:05 [end_date_ymd] => 2025-02-08 00:19:05 [RateCDR] => 1 ) [2025-02-08 00:19: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` >= '2025-02-07 21:19:05' and `end` < '2025-02-08 00:19: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 ,'') [2025-02-08 00:19:18] Production.INFO: count ==267 [2025-02-08 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:19:05 - End Time 2025-02-08 00:19:05 [2025-02-08 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425997', 'tblTempUsageDetail_20' ) start [2025-02-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425997', 'tblTempUsageDetail_20' ) end [2025-02-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425997', 'tblTempVendorCDR_20' ) start [2025-02-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425997', 'tblTempVendorCDR_20' ) end [2025-02-08 00:19:18] Production.INFO: ProcessCDR(1,14425997,1,1,2) [2025-02-08 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425997', 'tblTempUsageDetail_20' ) start [2025-02-08 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425997', 'tblTempUsageDetail_20' ) end [2025-02-08 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:19:21] Production.INFO: ==877== Releasing lock... [2025-02-08 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:20:06 [end_date_ymd] => 2025-02-08 00:20:06 [RateCDR] => 1 ) [2025-02-08 00:20: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-02-07 21:20:06' and `end` < '2025-02-08 00:20: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-02-08 00:20:19] Production.INFO: count ==275 [2025-02-08 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:20:06 - End Time 2025-02-08 00:20:06 [2025-02-08 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426003', 'tblTempUsageDetail_20' ) start [2025-02-08 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426003', 'tblTempUsageDetail_20' ) end [2025-02-08 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426003', 'tblTempVendorCDR_20' ) start [2025-02-08 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426003', 'tblTempVendorCDR_20' ) end [2025-02-08 00:20:19] Production.INFO: ProcessCDR(1,14426003,1,1,2) [2025-02-08 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426003', 'tblTempUsageDetail_20' ) start [2025-02-08 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426003', 'tblTempUsageDetail_20' ) end [2025-02-08 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:20:22] Production.INFO: ==954== Releasing lock... [2025-02-08 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:21:05 [end_date_ymd] => 2025-02-08 00:21:05 [RateCDR] => 1 ) [2025-02-08 00:21: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` >= '2025-02-07 21:21:05' and `end` < '2025-02-08 00:21: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 ,'') [2025-02-08 00:21:18] Production.INFO: count ==289 [2025-02-08 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:21:05 - End Time 2025-02-08 00:21:05 [2025-02-08 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426008', 'tblTempUsageDetail_20' ) start [2025-02-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426008', 'tblTempUsageDetail_20' ) end [2025-02-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426008', 'tblTempVendorCDR_20' ) start [2025-02-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426008', 'tblTempVendorCDR_20' ) end [2025-02-08 00:21:18] Production.INFO: ProcessCDR(1,14426008,1,1,2) [2025-02-08 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426008', 'tblTempUsageDetail_20' ) start [2025-02-08 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426008', 'tblTempUsageDetail_20' ) end [2025-02-08 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:21:21] Production.INFO: ==1029== Releasing lock... [2025-02-08 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:21:21] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:22:06 [end_date_ymd] => 2025-02-08 00:22:06 [RateCDR] => 1 ) [2025-02-08 00:22: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-02-07 21:22:06' and `end` < '2025-02-08 00:22: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-02-08 00:22:19] Production.INFO: count ==283 [2025-02-08 00:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:22:06 - End Time 2025-02-08 00:22:06 [2025-02-08 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426013', 'tblTempUsageDetail_20' ) start [2025-02-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426013', 'tblTempUsageDetail_20' ) end [2025-02-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426013', 'tblTempVendorCDR_20' ) start [2025-02-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426013', 'tblTempVendorCDR_20' ) end [2025-02-08 00:22:19] Production.INFO: ProcessCDR(1,14426013,1,1,2) [2025-02-08 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426013', 'tblTempUsageDetail_20' ) start [2025-02-08 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426013', 'tblTempUsageDetail_20' ) end [2025-02-08 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:22:23] Production.INFO: ==1105== Releasing lock... [2025-02-08 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:22:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:23:05 [end_date_ymd] => 2025-02-08 00:23:05 [RateCDR] => 1 ) [2025-02-08 00:23: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` >= '2025-02-07 21:23:05' and `end` < '2025-02-08 00:23: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 ,'') [2025-02-08 00:23:19] Production.INFO: count ==270 [2025-02-08 00:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:23:05 - End Time 2025-02-08 00:23:05 [2025-02-08 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426018', 'tblTempUsageDetail_20' ) start [2025-02-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426018', 'tblTempUsageDetail_20' ) end [2025-02-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426018', 'tblTempVendorCDR_20' ) start [2025-02-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426018', 'tblTempVendorCDR_20' ) end [2025-02-08 00:23:19] Production.INFO: ProcessCDR(1,14426018,1,1,2) [2025-02-08 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426018', 'tblTempUsageDetail_20' ) start [2025-02-08 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426018', 'tblTempUsageDetail_20' ) end [2025-02-08 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:23:22] Production.INFO: ==1223== Releasing lock... [2025-02-08 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:24:06 [end_date_ymd] => 2025-02-08 00:24:06 [RateCDR] => 1 ) [2025-02-08 00:24: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-02-07 21:24:06' and `end` < '2025-02-08 00:24: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-02-08 00:24:18] Production.INFO: count ==270 [2025-02-08 00:24:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:24:06 - End Time 2025-02-08 00:24:06 [2025-02-08 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426023', 'tblTempUsageDetail_20' ) start [2025-02-08 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426023', 'tblTempUsageDetail_20' ) end [2025-02-08 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426023', 'tblTempVendorCDR_20' ) start [2025-02-08 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426023', 'tblTempVendorCDR_20' ) end [2025-02-08 00:24:19] Production.INFO: ProcessCDR(1,14426023,1,1,2) [2025-02-08 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426023', 'tblTempUsageDetail_20' ) start [2025-02-08 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426023', 'tblTempUsageDetail_20' ) end [2025-02-08 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:24:22] Production.INFO: ==1307== Releasing lock... [2025-02-08 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:25:05 [end_date_ymd] => 2025-02-08 00:25:05 [RateCDR] => 1 ) [2025-02-08 00:25: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` >= '2025-02-07 21:25:05' and `end` < '2025-02-08 00:25: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 ,'') [2025-02-08 00:25:19] Production.INFO: count ==270 [2025-02-08 00:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:25:05 - End Time 2025-02-08 00:25:05 [2025-02-08 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426028', 'tblTempUsageDetail_20' ) start [2025-02-08 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426028', 'tblTempUsageDetail_20' ) end [2025-02-08 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426028', 'tblTempVendorCDR_20' ) start [2025-02-08 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426028', 'tblTempVendorCDR_20' ) end [2025-02-08 00:25:19] Production.INFO: ProcessCDR(1,14426028,1,1,2) [2025-02-08 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426028', 'tblTempUsageDetail_20' ) start [2025-02-08 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426028', 'tblTempUsageDetail_20' ) end [2025-02-08 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:25:22] Production.INFO: ==1382== Releasing lock... [2025-02-08 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:26:05 [end_date_ymd] => 2025-02-08 00:26:05 [RateCDR] => 1 ) [2025-02-08 00:26: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` >= '2025-02-07 21:26:05' and `end` < '2025-02-08 00:26: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 ,'') [2025-02-08 00:26:18] Production.INFO: count ==266 [2025-02-08 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:26:05 - End Time 2025-02-08 00:26:05 [2025-02-08 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426033', 'tblTempUsageDetail_20' ) start [2025-02-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426033', 'tblTempUsageDetail_20' ) end [2025-02-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426033', 'tblTempVendorCDR_20' ) start [2025-02-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426033', 'tblTempVendorCDR_20' ) end [2025-02-08 00:26:18] Production.INFO: ProcessCDR(1,14426033,1,1,2) [2025-02-08 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426033', 'tblTempUsageDetail_20' ) start [2025-02-08 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426033', 'tblTempUsageDetail_20' ) end [2025-02-08 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:26:21] Production.INFO: ==1455== Releasing lock... [2025-02-08 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:27:05 [end_date_ymd] => 2025-02-08 00:27:05 [RateCDR] => 1 ) [2025-02-08 00:27: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` >= '2025-02-07 21:27:05' and `end` < '2025-02-08 00:27: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 ,'') [2025-02-08 00:27:17] Production.INFO: count ==272 [2025-02-08 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:27:05 - End Time 2025-02-08 00:27:05 [2025-02-08 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426038', 'tblTempUsageDetail_20' ) start [2025-02-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426038', 'tblTempUsageDetail_20' ) end [2025-02-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426038', 'tblTempVendorCDR_20' ) start [2025-02-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426038', 'tblTempVendorCDR_20' ) end [2025-02-08 00:27:18] Production.INFO: ProcessCDR(1,14426038,1,1,2) [2025-02-08 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426038', 'tblTempUsageDetail_20' ) start [2025-02-08 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426038', 'tblTempUsageDetail_20' ) end [2025-02-08 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:27:22] Production.INFO: ==1564== Releasing lock... [2025-02-08 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:28:05 [end_date_ymd] => 2025-02-08 00:28:05 [RateCDR] => 1 ) [2025-02-08 00:28: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` >= '2025-02-07 21:28:05' and `end` < '2025-02-08 00:28: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 ,'') [2025-02-08 00:28:20] Production.INFO: count ==272 [2025-02-08 00:28:20] Production.ERROR: pbx CDR StartTime 2025-02-07 21:28:05 - End Time 2025-02-08 00:28:05 [2025-02-08 00:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426043', 'tblTempUsageDetail_20' ) start [2025-02-08 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426043', 'tblTempUsageDetail_20' ) end [2025-02-08 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426043', 'tblTempVendorCDR_20' ) start [2025-02-08 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426043', 'tblTempVendorCDR_20' ) end [2025-02-08 00:28:20] Production.INFO: ProcessCDR(1,14426043,1,1,2) [2025-02-08 00:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426043', 'tblTempUsageDetail_20' ) start [2025-02-08 00:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426043', 'tblTempUsageDetail_20' ) end [2025-02-08 00:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:28:24] Production.INFO: ==1640== Releasing lock... [2025-02-08 00:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:28:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:29:06 [end_date_ymd] => 2025-02-08 00:29:06 [RateCDR] => 1 ) [2025-02-08 00:29: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-02-07 21:29:06' and `end` < '2025-02-08 00:29: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-02-08 00:29:19] Production.INFO: count ==269 [2025-02-08 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:29:06 - End Time 2025-02-08 00:29:06 [2025-02-08 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426048', 'tblTempUsageDetail_20' ) start [2025-02-08 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426048', 'tblTempUsageDetail_20' ) end [2025-02-08 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426048', 'tblTempVendorCDR_20' ) start [2025-02-08 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426048', 'tblTempVendorCDR_20' ) end [2025-02-08 00:29:19] Production.INFO: ProcessCDR(1,14426048,1,1,2) [2025-02-08 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426048', 'tblTempUsageDetail_20' ) start [2025-02-08 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426048', 'tblTempUsageDetail_20' ) end [2025-02-08 00:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:29:23] Production.INFO: ==1719== Releasing lock... [2025-02-08 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:29:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:30:06 [end_date_ymd] => 2025-02-08 00:30:06 [RateCDR] => 1 ) [2025-02-08 00:30: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-02-07 21:30:06' and `end` < '2025-02-08 00:30: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-02-08 00:30:19] Production.INFO: count ==279 [2025-02-08 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:30:06 - End Time 2025-02-08 00:30:06 [2025-02-08 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426054', 'tblTempUsageDetail_20' ) start [2025-02-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426054', 'tblTempUsageDetail_20' ) end [2025-02-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426054', 'tblTempVendorCDR_20' ) start [2025-02-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426054', 'tblTempVendorCDR_20' ) end [2025-02-08 00:30:19] Production.INFO: ProcessCDR(1,14426054,1,1,2) [2025-02-08 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426054', 'tblTempUsageDetail_20' ) start [2025-02-08 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426054', 'tblTempUsageDetail_20' ) end [2025-02-08 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:30:22] Production.INFO: ==1797== Releasing lock... [2025-02-08 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:31:06 [end_date_ymd] => 2025-02-08 00:31:06 [RateCDR] => 1 ) [2025-02-08 00:31: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-02-07 21:31:06' and `end` < '2025-02-08 00:31: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-02-08 00:31:19] Production.INFO: count ==286 [2025-02-08 00:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:31:06 - End Time 2025-02-08 00:31:06 [2025-02-08 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426059', 'tblTempUsageDetail_20' ) start [2025-02-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426059', 'tblTempUsageDetail_20' ) end [2025-02-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426059', 'tblTempVendorCDR_20' ) start [2025-02-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426059', 'tblTempVendorCDR_20' ) end [2025-02-08 00:31:19] Production.INFO: ProcessCDR(1,14426059,1,1,2) [2025-02-08 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426059', 'tblTempUsageDetail_20' ) start [2025-02-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426059', 'tblTempUsageDetail_20' ) end [2025-02-08 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:31:22] Production.INFO: ==1877== Releasing lock... [2025-02-08 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:31:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:32:05 [end_date_ymd] => 2025-02-08 00:32:05 [RateCDR] => 1 ) [2025-02-08 00:32: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` >= '2025-02-07 21:32:05' and `end` < '2025-02-08 00:32: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 ,'') [2025-02-08 00:32:18] Production.INFO: count ==282 [2025-02-08 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:32:05 - End Time 2025-02-08 00:32:05 [2025-02-08 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426064', 'tblTempUsageDetail_20' ) start [2025-02-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426064', 'tblTempUsageDetail_20' ) end [2025-02-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426064', 'tblTempVendorCDR_20' ) start [2025-02-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426064', 'tblTempVendorCDR_20' ) end [2025-02-08 00:32:18] Production.INFO: ProcessCDR(1,14426064,1,1,2) [2025-02-08 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426064', 'tblTempUsageDetail_20' ) start [2025-02-08 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426064', 'tblTempUsageDetail_20' ) end [2025-02-08 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:32:21] Production.INFO: ==1947== Releasing lock... [2025-02-08 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:33:05 [end_date_ymd] => 2025-02-08 00:33:05 [RateCDR] => 1 ) [2025-02-08 00:33: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` >= '2025-02-07 21:33:05' and `end` < '2025-02-08 00:33: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 ,'') [2025-02-08 00:33:21] Production.INFO: count ==281 [2025-02-08 00:33:21] Production.ERROR: pbx CDR StartTime 2025-02-07 21:33:05 - End Time 2025-02-08 00:33:05 [2025-02-08 00:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426069', 'tblTempUsageDetail_20' ) start [2025-02-08 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426069', 'tblTempUsageDetail_20' ) end [2025-02-08 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426069', 'tblTempVendorCDR_20' ) start [2025-02-08 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426069', 'tblTempVendorCDR_20' ) end [2025-02-08 00:33:21] Production.INFO: ProcessCDR(1,14426069,1,1,2) [2025-02-08 00:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426069', 'tblTempUsageDetail_20' ) start [2025-02-08 00:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426069', 'tblTempUsageDetail_20' ) end [2025-02-08 00:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:33:24] Production.INFO: ==2018== Releasing lock... [2025-02-08 00:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:33:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:34:05 [end_date_ymd] => 2025-02-08 00:34:05 [RateCDR] => 1 ) [2025-02-08 00:34: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` >= '2025-02-07 21:34:05' and `end` < '2025-02-08 00:34: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 ,'') [2025-02-08 00:34:19] Production.INFO: count ==281 [2025-02-08 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:34:05 - End Time 2025-02-08 00:34:05 [2025-02-08 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426074', 'tblTempUsageDetail_20' ) start [2025-02-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426074', 'tblTempUsageDetail_20' ) end [2025-02-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426074', 'tblTempVendorCDR_20' ) start [2025-02-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426074', 'tblTempVendorCDR_20' ) end [2025-02-08 00:34:19] Production.INFO: ProcessCDR(1,14426074,1,1,2) [2025-02-08 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426074', 'tblTempUsageDetail_20' ) start [2025-02-08 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426074', 'tblTempUsageDetail_20' ) end [2025-02-08 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:34:22] Production.INFO: ==2091== Releasing lock... [2025-02-08 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:35:05 [end_date_ymd] => 2025-02-08 00:35:05 [RateCDR] => 1 ) [2025-02-08 00:35: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` >= '2025-02-07 21:35:05' and `end` < '2025-02-08 00:35: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 ,'') [2025-02-08 00:35:18] Production.INFO: count ==281 [2025-02-08 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:35:05 - End Time 2025-02-08 00:35:05 [2025-02-08 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426079', 'tblTempUsageDetail_20' ) start [2025-02-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426079', 'tblTempUsageDetail_20' ) end [2025-02-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426079', 'tblTempVendorCDR_20' ) start [2025-02-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426079', 'tblTempVendorCDR_20' ) end [2025-02-08 00:35:18] Production.INFO: ProcessCDR(1,14426079,1,1,2) [2025-02-08 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426079', 'tblTempUsageDetail_20' ) start [2025-02-08 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426079', 'tblTempUsageDetail_20' ) end [2025-02-08 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:35:21] Production.INFO: ==2161== Releasing lock... [2025-02-08 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:36:05 [end_date_ymd] => 2025-02-08 00:36:05 [RateCDR] => 1 ) [2025-02-08 00:36: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` >= '2025-02-07 21:36:05' and `end` < '2025-02-08 00:36: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 ,'') [2025-02-08 00:36:19] Production.INFO: count ==279 [2025-02-08 00:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:36:05 - End Time 2025-02-08 00:36:05 [2025-02-08 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426084', 'tblTempUsageDetail_20' ) start [2025-02-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426084', 'tblTempUsageDetail_20' ) end [2025-02-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426084', 'tblTempVendorCDR_20' ) start [2025-02-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426084', 'tblTempVendorCDR_20' ) end [2025-02-08 00:36:19] Production.INFO: ProcessCDR(1,14426084,1,1,2) [2025-02-08 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426084', 'tblTempUsageDetail_20' ) start [2025-02-08 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426084', 'tblTempUsageDetail_20' ) end [2025-02-08 00:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:36:24] Production.INFO: ==2235== Releasing lock... [2025-02-08 00:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:36:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:37:05 [end_date_ymd] => 2025-02-08 00:37:05 [RateCDR] => 1 ) [2025-02-08 00:37: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` >= '2025-02-07 21:37:05' and `end` < '2025-02-08 00:37: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 ,'') [2025-02-08 00:37:21] Production.INFO: count ==283 [2025-02-08 00:37:21] Production.ERROR: pbx CDR StartTime 2025-02-07 21:37:05 - End Time 2025-02-08 00:37:05 [2025-02-08 00:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426089', 'tblTempUsageDetail_20' ) start [2025-02-08 00:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426089', 'tblTempUsageDetail_20' ) end [2025-02-08 00:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426089', 'tblTempVendorCDR_20' ) start [2025-02-08 00:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426089', 'tblTempVendorCDR_20' ) end [2025-02-08 00:37:21] Production.INFO: ProcessCDR(1,14426089,1,1,2) [2025-02-08 00:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426089', 'tblTempUsageDetail_20' ) start [2025-02-08 00:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426089', 'tblTempUsageDetail_20' ) end [2025-02-08 00:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:37:24] Production.INFO: ==2305== Releasing lock... [2025-02-08 00:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:37:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:38:04 [end_date_ymd] => 2025-02-08 00:38:04 [RateCDR] => 1 ) [2025-02-08 00:38:04] 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-02-07 21:38:04' and `end` < '2025-02-08 00:38:04' 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-02-08 00:38:17] Production.INFO: count ==282 [2025-02-08 00:38:17] Production.ERROR: pbx CDR StartTime 2025-02-07 21:38:04 - End Time 2025-02-08 00:38:04 [2025-02-08 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426091', 'tblTempUsageDetail_20' ) start [2025-02-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426091', 'tblTempUsageDetail_20' ) end [2025-02-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426091', 'tblTempVendorCDR_20' ) start [2025-02-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426091', 'tblTempVendorCDR_20' ) end [2025-02-08 00:38:17] Production.INFO: ProcessCDR(1,14426091,1,1,2) [2025-02-08 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426091', 'tblTempUsageDetail_20' ) start [2025-02-08 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426091', 'tblTempUsageDetail_20' ) end [2025-02-08 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:38:20] Production.INFO: ==2378== Releasing lock... [2025-02-08 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:38:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:39:05 [end_date_ymd] => 2025-02-08 00:39:05 [RateCDR] => 1 ) [2025-02-08 00:39: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` >= '2025-02-07 21:39:05' and `end` < '2025-02-08 00:39: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 ,'') [2025-02-08 00:39:19] Production.INFO: count ==279 [2025-02-08 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:39:05 - End Time 2025-02-08 00:39:05 [2025-02-08 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426099', 'tblTempUsageDetail_20' ) start [2025-02-08 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426099', 'tblTempUsageDetail_20' ) end [2025-02-08 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426099', 'tblTempVendorCDR_20' ) start [2025-02-08 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426099', 'tblTempVendorCDR_20' ) end [2025-02-08 00:39:19] Production.INFO: ProcessCDR(1,14426099,1,1,2) [2025-02-08 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426099', 'tblTempUsageDetail_20' ) start [2025-02-08 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426099', 'tblTempUsageDetail_20' ) end [2025-02-08 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:39:22] Production.INFO: ==2488== Releasing lock... [2025-02-08 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:40:06 [end_date_ymd] => 2025-02-08 00:40:06 [RateCDR] => 1 ) [2025-02-08 00:40: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-02-07 21:40:06' and `end` < '2025-02-08 00:40: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-02-08 00:40:19] Production.INFO: count ==287 [2025-02-08 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:40:06 - End Time 2025-02-08 00:40:06 [2025-02-08 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426104', 'tblTempUsageDetail_20' ) start [2025-02-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426104', 'tblTempUsageDetail_20' ) end [2025-02-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426104', 'tblTempVendorCDR_20' ) start [2025-02-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426104', 'tblTempVendorCDR_20' ) end [2025-02-08 00:40:19] Production.INFO: ProcessCDR(1,14426104,1,1,2) [2025-02-08 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426104', 'tblTempUsageDetail_20' ) start [2025-02-08 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426104', 'tblTempUsageDetail_20' ) end [2025-02-08 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:40:23] Production.INFO: ==2563== Releasing lock... [2025-02-08 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:41:05 [end_date_ymd] => 2025-02-08 00:41:05 [RateCDR] => 1 ) [2025-02-08 00:41: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` >= '2025-02-07 21:41:05' and `end` < '2025-02-08 00:41: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 ,'') [2025-02-08 00:41:18] Production.INFO: count ==296 [2025-02-08 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:41:05 - End Time 2025-02-08 00:41:05 [2025-02-08 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426110', 'tblTempUsageDetail_20' ) start [2025-02-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426110', 'tblTempUsageDetail_20' ) end [2025-02-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426110', 'tblTempVendorCDR_20' ) start [2025-02-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426110', 'tblTempVendorCDR_20' ) end [2025-02-08 00:41:18] Production.INFO: ProcessCDR(1,14426110,1,1,2) [2025-02-08 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426110', 'tblTempUsageDetail_20' ) start [2025-02-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426110', 'tblTempUsageDetail_20' ) end [2025-02-08 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:41:21] Production.INFO: ==2636== Releasing lock... [2025-02-08 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:42:05 [end_date_ymd] => 2025-02-08 00:42:05 [RateCDR] => 1 ) [2025-02-08 00:42: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` >= '2025-02-07 21:42:05' and `end` < '2025-02-08 00:42: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 ,'') [2025-02-08 00:42:18] Production.INFO: count ==296 [2025-02-08 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:42:05 - End Time 2025-02-08 00:42:05 [2025-02-08 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426115', 'tblTempUsageDetail_20' ) start [2025-02-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426115', 'tblTempUsageDetail_20' ) end [2025-02-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426115', 'tblTempVendorCDR_20' ) start [2025-02-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426115', 'tblTempVendorCDR_20' ) end [2025-02-08 00:42:18] Production.INFO: ProcessCDR(1,14426115,1,1,2) [2025-02-08 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426115', 'tblTempUsageDetail_20' ) start [2025-02-08 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426115', 'tblTempUsageDetail_20' ) end [2025-02-08 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:42:21] Production.INFO: ==2714== Releasing lock... [2025-02-08 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:43:05 [end_date_ymd] => 2025-02-08 00:43:05 [RateCDR] => 1 ) [2025-02-08 00:43: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` >= '2025-02-07 21:43:05' and `end` < '2025-02-08 00:43: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 ,'') [2025-02-08 00:43:18] Production.INFO: count ==300 [2025-02-08 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:43:05 - End Time 2025-02-08 00:43:05 [2025-02-08 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426120', 'tblTempUsageDetail_20' ) start [2025-02-08 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426120', 'tblTempUsageDetail_20' ) end [2025-02-08 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426120', 'tblTempVendorCDR_20' ) start [2025-02-08 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426120', 'tblTempVendorCDR_20' ) end [2025-02-08 00:43:19] Production.INFO: ProcessCDR(1,14426120,1,1,2) [2025-02-08 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426120', 'tblTempUsageDetail_20' ) start [2025-02-08 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426120', 'tblTempUsageDetail_20' ) end [2025-02-08 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:43:22] Production.INFO: ==2793== Releasing lock... [2025-02-08 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:43:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:44:06 [end_date_ymd] => 2025-02-08 00:44:06 [RateCDR] => 1 ) [2025-02-08 00:44: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-02-07 21:44:06' and `end` < '2025-02-08 00:44: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-02-08 00:44:19] Production.INFO: count ==305 [2025-02-08 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:44:06 - End Time 2025-02-08 00:44:06 [2025-02-08 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426125', 'tblTempUsageDetail_20' ) start [2025-02-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426125', 'tblTempUsageDetail_20' ) end [2025-02-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426125', 'tblTempVendorCDR_20' ) start [2025-02-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426125', 'tblTempVendorCDR_20' ) end [2025-02-08 00:44:19] Production.INFO: ProcessCDR(1,14426125,1,1,2) [2025-02-08 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426125', 'tblTempUsageDetail_20' ) start [2025-02-08 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426125', 'tblTempUsageDetail_20' ) end [2025-02-08 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:44:23] Production.INFO: ==2868== Releasing lock... [2025-02-08 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:44:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:45:05 [end_date_ymd] => 2025-02-08 00:45:05 [RateCDR] => 1 ) [2025-02-08 00:45: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` >= '2025-02-07 21:45:05' and `end` < '2025-02-08 00:45: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 ,'') [2025-02-08 00:45:18] Production.INFO: count ==305 [2025-02-08 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:45:05 - End Time 2025-02-08 00:45:05 [2025-02-08 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426130', 'tblTempUsageDetail_20' ) start [2025-02-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426130', 'tblTempUsageDetail_20' ) end [2025-02-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426130', 'tblTempVendorCDR_20' ) start [2025-02-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426130', 'tblTempVendorCDR_20' ) end [2025-02-08 00:45:18] Production.INFO: ProcessCDR(1,14426130,1,1,2) [2025-02-08 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426130', 'tblTempUsageDetail_20' ) start [2025-02-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426130', 'tblTempUsageDetail_20' ) end [2025-02-08 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:45:21] Production.INFO: ==2946== Releasing lock... [2025-02-08 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:46:05 [end_date_ymd] => 2025-02-08 00:46:05 [RateCDR] => 1 ) [2025-02-08 00:46: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` >= '2025-02-07 21:46:05' and `end` < '2025-02-08 00:46: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 ,'') [2025-02-08 00:46:20] Production.INFO: count ==305 [2025-02-08 00:46:20] Production.ERROR: pbx CDR StartTime 2025-02-07 21:46:05 - End Time 2025-02-08 00:46:05 [2025-02-08 00:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426135', 'tblTempUsageDetail_20' ) start [2025-02-08 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426135', 'tblTempUsageDetail_20' ) end [2025-02-08 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426135', 'tblTempVendorCDR_20' ) start [2025-02-08 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426135', 'tblTempVendorCDR_20' ) end [2025-02-08 00:46:20] Production.INFO: ProcessCDR(1,14426135,1,1,2) [2025-02-08 00:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426135', 'tblTempUsageDetail_20' ) start [2025-02-08 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426135', 'tblTempUsageDetail_20' ) end [2025-02-08 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:46:23] Production.INFO: ==3025== Releasing lock... [2025-02-08 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:46:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:47:05 [end_date_ymd] => 2025-02-08 00:47:05 [RateCDR] => 1 ) [2025-02-08 00:47: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` >= '2025-02-07 21:47:05' and `end` < '2025-02-08 00:47: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 ,'') [2025-02-08 00:47:18] Production.INFO: count ==304 [2025-02-08 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:47:05 - End Time 2025-02-08 00:47:05 [2025-02-08 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426140', 'tblTempUsageDetail_20' ) start [2025-02-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426140', 'tblTempUsageDetail_20' ) end [2025-02-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426140', 'tblTempVendorCDR_20' ) start [2025-02-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426140', 'tblTempVendorCDR_20' ) end [2025-02-08 00:47:18] Production.INFO: ProcessCDR(1,14426140,1,1,2) [2025-02-08 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426140', 'tblTempUsageDetail_20' ) start [2025-02-08 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426140', 'tblTempUsageDetail_20' ) end [2025-02-08 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:47:22] Production.INFO: ==3102== Releasing lock... [2025-02-08 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:48:05 [end_date_ymd] => 2025-02-08 00:48:05 [RateCDR] => 1 ) [2025-02-08 00:48: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` >= '2025-02-07 21:48:05' and `end` < '2025-02-08 00:48: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 ,'') [2025-02-08 00:48:18] Production.INFO: count ==301 [2025-02-08 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:48:05 - End Time 2025-02-08 00:48:05 [2025-02-08 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426145', 'tblTempUsageDetail_20' ) start [2025-02-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426145', 'tblTempUsageDetail_20' ) end [2025-02-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426145', 'tblTempVendorCDR_20' ) start [2025-02-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426145', 'tblTempVendorCDR_20' ) end [2025-02-08 00:48:18] Production.INFO: ProcessCDR(1,14426145,1,1,2) [2025-02-08 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426145', 'tblTempUsageDetail_20' ) start [2025-02-08 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426145', 'tblTempUsageDetail_20' ) end [2025-02-08 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:48:23] Production.INFO: ==3177== Releasing lock... [2025-02-08 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:48:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:49:05 [end_date_ymd] => 2025-02-08 00:49:05 [RateCDR] => 1 ) [2025-02-08 00:49: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` >= '2025-02-07 21:49:05' and `end` < '2025-02-08 00:49: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 ,'') [2025-02-08 00:49:18] Production.INFO: count ==300 [2025-02-08 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:49:05 - End Time 2025-02-08 00:49:05 [2025-02-08 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426150', 'tblTempUsageDetail_20' ) start [2025-02-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426150', 'tblTempUsageDetail_20' ) end [2025-02-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426150', 'tblTempVendorCDR_20' ) start [2025-02-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426150', 'tblTempVendorCDR_20' ) end [2025-02-08 00:49:18] Production.INFO: ProcessCDR(1,14426150,1,1,2) [2025-02-08 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426150', 'tblTempUsageDetail_20' ) start [2025-02-08 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426150', 'tblTempUsageDetail_20' ) end [2025-02-08 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:49:21] Production.INFO: ==3252== Releasing lock... [2025-02-08 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:49:21] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:50:06 [end_date_ymd] => 2025-02-08 00:50:06 [RateCDR] => 1 ) [2025-02-08 00:50: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-02-07 21:50:06' and `end` < '2025-02-08 00:50: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-02-08 00:50:19] Production.INFO: count ==302 [2025-02-08 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:50:06 - End Time 2025-02-08 00:50:06 [2025-02-08 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426156', 'tblTempUsageDetail_20' ) start [2025-02-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426156', 'tblTempUsageDetail_20' ) end [2025-02-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426156', 'tblTempVendorCDR_20' ) start [2025-02-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426156', 'tblTempVendorCDR_20' ) end [2025-02-08 00:50:19] Production.INFO: ProcessCDR(1,14426156,1,1,2) [2025-02-08 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426156', 'tblTempUsageDetail_20' ) start [2025-02-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426156', 'tblTempUsageDetail_20' ) end [2025-02-08 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:50:22] Production.INFO: ==3331== Releasing lock... [2025-02-08 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:51:05 [end_date_ymd] => 2025-02-08 00:51:05 [RateCDR] => 1 ) [2025-02-08 00:51: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` >= '2025-02-07 21:51:05' and `end` < '2025-02-08 00:51: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 ,'') [2025-02-08 00:51:18] Production.INFO: count ==326 [2025-02-08 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:51:05 - End Time 2025-02-08 00:51:05 [2025-02-08 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426161', 'tblTempUsageDetail_20' ) start [2025-02-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426161', 'tblTempUsageDetail_20' ) end [2025-02-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426161', 'tblTempVendorCDR_20' ) start [2025-02-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426161', 'tblTempVendorCDR_20' ) end [2025-02-08 00:51:18] Production.INFO: ProcessCDR(1,14426161,1,1,2) [2025-02-08 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426161', 'tblTempUsageDetail_20' ) start [2025-02-08 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426161', 'tblTempUsageDetail_20' ) end [2025-02-08 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:51:21] Production.INFO: ==3412== Releasing lock... [2025-02-08 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:52:06 [end_date_ymd] => 2025-02-08 00:52:06 [RateCDR] => 1 ) [2025-02-08 00:52: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-02-07 21:52:06' and `end` < '2025-02-08 00:52: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-02-08 00:52:19] Production.INFO: count ==327 [2025-02-08 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:52:06 - End Time 2025-02-08 00:52:06 [2025-02-08 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426166', 'tblTempUsageDetail_20' ) start [2025-02-08 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426166', 'tblTempUsageDetail_20' ) end [2025-02-08 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426166', 'tblTempVendorCDR_20' ) start [2025-02-08 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426166', 'tblTempVendorCDR_20' ) end [2025-02-08 00:52:19] Production.INFO: ProcessCDR(1,14426166,1,1,2) [2025-02-08 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426166', 'tblTempUsageDetail_20' ) start [2025-02-08 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426166', 'tblTempUsageDetail_20' ) end [2025-02-08 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:52:23] Production.INFO: ==3487== Releasing lock... [2025-02-08 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:52:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:53:05 [end_date_ymd] => 2025-02-08 00:53:05 [RateCDR] => 1 ) [2025-02-08 00:53: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` >= '2025-02-07 21:53:05' and `end` < '2025-02-08 00:53: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 ,'') [2025-02-08 00:53:18] Production.INFO: count ==327 [2025-02-08 00:53:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:53:05 - End Time 2025-02-08 00:53:05 [2025-02-08 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426171', 'tblTempUsageDetail_20' ) start [2025-02-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426171', 'tblTempUsageDetail_20' ) end [2025-02-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426171', 'tblTempVendorCDR_20' ) start [2025-02-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426171', 'tblTempVendorCDR_20' ) end [2025-02-08 00:53:18] Production.INFO: ProcessCDR(1,14426171,1,1,2) [2025-02-08 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426171', 'tblTempUsageDetail_20' ) start [2025-02-08 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426171', 'tblTempUsageDetail_20' ) end [2025-02-08 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:53:22] Production.INFO: ==3564== Releasing lock... [2025-02-08 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:54:05 [end_date_ymd] => 2025-02-08 00:54:05 [RateCDR] => 1 ) [2025-02-08 00:54: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` >= '2025-02-07 21:54:05' and `end` < '2025-02-08 00:54: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 ,'') [2025-02-08 00:54:20] Production.INFO: count ==331 [2025-02-08 00:54:20] Production.ERROR: pbx CDR StartTime 2025-02-07 21:54:05 - End Time 2025-02-08 00:54:05 [2025-02-08 00:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426176', 'tblTempUsageDetail_20' ) start [2025-02-08 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426176', 'tblTempUsageDetail_20' ) end [2025-02-08 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426176', 'tblTempVendorCDR_20' ) start [2025-02-08 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426176', 'tblTempVendorCDR_20' ) end [2025-02-08 00:54:20] Production.INFO: ProcessCDR(1,14426176,1,1,2) [2025-02-08 00:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426176', 'tblTempUsageDetail_20' ) start [2025-02-08 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426176', 'tblTempUsageDetail_20' ) end [2025-02-08 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:54:23] Production.INFO: ==3679== Releasing lock... [2025-02-08 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:54:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:55:05 [end_date_ymd] => 2025-02-08 00:55:05 [RateCDR] => 1 ) [2025-02-08 00:55: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` >= '2025-02-07 21:55:05' and `end` < '2025-02-08 00:55: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 ,'') [2025-02-08 00:55:18] Production.INFO: count ==331 [2025-02-08 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:55:05 - End Time 2025-02-08 00:55:05 [2025-02-08 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426181', 'tblTempUsageDetail_20' ) start [2025-02-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426181', 'tblTempUsageDetail_20' ) end [2025-02-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426181', 'tblTempVendorCDR_20' ) start [2025-02-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426181', 'tblTempVendorCDR_20' ) end [2025-02-08 00:55:18] Production.INFO: ProcessCDR(1,14426181,1,1,2) [2025-02-08 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426181', 'tblTempUsageDetail_20' ) start [2025-02-08 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426181', 'tblTempUsageDetail_20' ) end [2025-02-08 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:55:21] Production.INFO: ==3754== Releasing lock... [2025-02-08 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:55:21] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:56:05 [end_date_ymd] => 2025-02-08 00:56:05 [RateCDR] => 1 ) [2025-02-08 00:56: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` >= '2025-02-07 21:56:05' and `end` < '2025-02-08 00:56: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 ,'') [2025-02-08 00:56:18] Production.INFO: count ==335 [2025-02-08 00:56:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:56:05 - End Time 2025-02-08 00:56:05 [2025-02-08 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426186', 'tblTempUsageDetail_20' ) start [2025-02-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426186', 'tblTempUsageDetail_20' ) end [2025-02-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426186', 'tblTempVendorCDR_20' ) start [2025-02-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426186', 'tblTempVendorCDR_20' ) end [2025-02-08 00:56:18] Production.INFO: ProcessCDR(1,14426186,1,1,2) [2025-02-08 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426186', 'tblTempUsageDetail_20' ) start [2025-02-08 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426186', 'tblTempUsageDetail_20' ) end [2025-02-08 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:56:22] Production.INFO: ==3836== Releasing lock... [2025-02-08 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:56:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:57:05 [end_date_ymd] => 2025-02-08 00:57:05 [RateCDR] => 1 ) [2025-02-08 00:57: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` >= '2025-02-07 21:57:05' and `end` < '2025-02-08 00:57: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 ,'') [2025-02-08 00:57:19] Production.INFO: count ==336 [2025-02-08 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 21:57:05 - End Time 2025-02-08 00:57:05 [2025-02-08 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426191', 'tblTempUsageDetail_20' ) start [2025-02-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426191', 'tblTempUsageDetail_20' ) end [2025-02-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426191', 'tblTempVendorCDR_20' ) start [2025-02-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426191', 'tblTempVendorCDR_20' ) end [2025-02-08 00:57:19] Production.INFO: ProcessCDR(1,14426191,1,1,2) [2025-02-08 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426191', 'tblTempUsageDetail_20' ) start [2025-02-08 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426191', 'tblTempUsageDetail_20' ) end [2025-02-08 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:57:23] Production.INFO: ==3914== Releasing lock... [2025-02-08 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:57:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:58:06 [end_date_ymd] => 2025-02-08 00:58:06 [RateCDR] => 1 ) [2025-02-08 00:58: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-02-07 21:58:06' and `end` < '2025-02-08 00:58: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-02-08 00:58:20] Production.INFO: count ==333 [2025-02-08 00:58:20] Production.ERROR: pbx CDR StartTime 2025-02-07 21:58:06 - End Time 2025-02-08 00:58:06 [2025-02-08 00:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426196', 'tblTempUsageDetail_20' ) start [2025-02-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426196', 'tblTempUsageDetail_20' ) end [2025-02-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426196', 'tblTempVendorCDR_20' ) start [2025-02-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426196', 'tblTempVendorCDR_20' ) end [2025-02-08 00:58:20] Production.INFO: ProcessCDR(1,14426196,1,1,2) [2025-02-08 00:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426196', 'tblTempUsageDetail_20' ) start [2025-02-08 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426196', 'tblTempUsageDetail_20' ) end [2025-02-08 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:58:23] Production.INFO: ==3990== Releasing lock... [2025-02-08 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:58:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 21:59:05 [end_date_ymd] => 2025-02-08 00:59:05 [RateCDR] => 1 ) [2025-02-08 00:59: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` >= '2025-02-07 21:59:05' and `end` < '2025-02-08 00:59: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 ,'') [2025-02-08 00:59:18] Production.INFO: count ==340 [2025-02-08 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-07 21:59:05 - End Time 2025-02-08 00:59:05 [2025-02-08 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426201', 'tblTempUsageDetail_20' ) start [2025-02-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426201', 'tblTempUsageDetail_20' ) end [2025-02-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426201', 'tblTempVendorCDR_20' ) start [2025-02-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426201', 'tblTempVendorCDR_20' ) end [2025-02-08 00:59:18] Production.INFO: ProcessCDR(1,14426201,1,1,2) [2025-02-08 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426201', 'tblTempUsageDetail_20' ) start [2025-02-08 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426201', 'tblTempUsageDetail_20' ) end [2025-02-08 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 00:59:21] Production.INFO: ==4064== Releasing lock... [2025-02-08 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 00:59:21] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:00:06 [end_date_ymd] => 2025-02-08 01:00:06 [RateCDR] => 1 ) [2025-02-08 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 22:00:06' and `end` < '2025-02-08 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 01:00:19] Production.INFO: count ==347 [2025-02-08 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:00:06 - End Time 2025-02-08 01:00:06 [2025-02-08 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426207', 'tblTempUsageDetail_20' ) start [2025-02-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426207', 'tblTempUsageDetail_20' ) end [2025-02-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426207', 'tblTempVendorCDR_20' ) start [2025-02-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426207', 'tblTempVendorCDR_20' ) end [2025-02-08 01:00:19] Production.INFO: ProcessCDR(1,14426207,1,1,2) [2025-02-08 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426207', 'tblTempUsageDetail_20' ) start [2025-02-08 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426207', 'tblTempUsageDetail_20' ) end [2025-02-08 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:00:22] Production.INFO: ==4146== Releasing lock... [2025-02-08 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:01:06 [end_date_ymd] => 2025-02-08 01:01:06 [RateCDR] => 1 ) [2025-02-08 01: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` >= '2025-02-07 22:01:06' and `end` < '2025-02-08 01: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 ,'') [2025-02-08 01:01:19] Production.INFO: count ==371 [2025-02-08 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:01:06 - End Time 2025-02-08 01:01:06 [2025-02-08 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426212', 'tblTempUsageDetail_20' ) start [2025-02-08 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426212', 'tblTempUsageDetail_20' ) end [2025-02-08 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426212', 'tblTempVendorCDR_20' ) start [2025-02-08 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426212', 'tblTempVendorCDR_20' ) end [2025-02-08 01:01:19] Production.INFO: ProcessCDR(1,14426212,1,1,2) [2025-02-08 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426212', 'tblTempUsageDetail_20' ) start [2025-02-08 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426212', 'tblTempUsageDetail_20' ) end [2025-02-08 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:01:22] Production.INFO: ==4237== Releasing lock... [2025-02-08 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:02:05 [end_date_ymd] => 2025-02-08 01:02:05 [RateCDR] => 1 ) [2025-02-08 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 22:02:05' and `end` < '2025-02-08 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 01:02:18] Production.INFO: count ==372 [2025-02-08 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:02:05 - End Time 2025-02-08 01:02:05 [2025-02-08 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426217', 'tblTempUsageDetail_20' ) start [2025-02-08 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426217', 'tblTempUsageDetail_20' ) end [2025-02-08 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426217', 'tblTempVendorCDR_20' ) start [2025-02-08 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426217', 'tblTempVendorCDR_20' ) end [2025-02-08 01:02:18] Production.INFO: ProcessCDR(1,14426217,1,1,2) [2025-02-08 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426217', 'tblTempUsageDetail_20' ) start [2025-02-08 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426217', 'tblTempUsageDetail_20' ) end [2025-02-08 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:02:23] Production.INFO: ==4313== Releasing lock... [2025-02-08 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:03:06 [end_date_ymd] => 2025-02-08 01:03:06 [RateCDR] => 1 ) [2025-02-08 01:03: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-02-07 22:03:06' and `end` < '2025-02-08 01:03: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-02-08 01:03:20] Production.INFO: count ==372 [2025-02-08 01:03:20] Production.ERROR: pbx CDR StartTime 2025-02-07 22:03:06 - End Time 2025-02-08 01:03:06 [2025-02-08 01:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426222', 'tblTempUsageDetail_20' ) start [2025-02-08 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426222', 'tblTempUsageDetail_20' ) end [2025-02-08 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426222', 'tblTempVendorCDR_20' ) start [2025-02-08 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426222', 'tblTempVendorCDR_20' ) end [2025-02-08 01:03:20] Production.INFO: ProcessCDR(1,14426222,1,1,2) [2025-02-08 01:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426222', 'tblTempUsageDetail_20' ) start [2025-02-08 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426222', 'tblTempUsageDetail_20' ) end [2025-02-08 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:03:23] Production.INFO: ==4386== Releasing lock... [2025-02-08 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:03:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:04:06 [end_date_ymd] => 2025-02-08 01:04:06 [RateCDR] => 1 ) [2025-02-08 01:04: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-02-07 22:04:06' and `end` < '2025-02-08 01:04: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-02-08 01:04:19] Production.INFO: count ==373 [2025-02-08 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:04:06 - End Time 2025-02-08 01:04:06 [2025-02-08 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426227', 'tblTempUsageDetail_20' ) start [2025-02-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426227', 'tblTempUsageDetail_20' ) end [2025-02-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426227', 'tblTempVendorCDR_20' ) start [2025-02-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426227', 'tblTempVendorCDR_20' ) end [2025-02-08 01:04:19] Production.INFO: ProcessCDR(1,14426227,1,1,2) [2025-02-08 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426227', 'tblTempUsageDetail_20' ) start [2025-02-08 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426227', 'tblTempUsageDetail_20' ) end [2025-02-08 01:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:04:24] Production.INFO: ==4462== Releasing lock... [2025-02-08 01:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:04:24] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:05:06 [end_date_ymd] => 2025-02-08 01:05:06 [RateCDR] => 1 ) [2025-02-08 01:05: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-02-07 22:05:06' and `end` < '2025-02-08 01:05: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-02-08 01:05:19] Production.INFO: count ==376 [2025-02-08 01:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:05:06 - End Time 2025-02-08 01:05:06 [2025-02-08 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426232', 'tblTempUsageDetail_20' ) start [2025-02-08 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426232', 'tblTempUsageDetail_20' ) end [2025-02-08 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426232', 'tblTempVendorCDR_20' ) start [2025-02-08 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426232', 'tblTempVendorCDR_20' ) end [2025-02-08 01:05:19] Production.INFO: ProcessCDR(1,14426232,1,1,2) [2025-02-08 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426232', 'tblTempUsageDetail_20' ) start [2025-02-08 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426232', 'tblTempUsageDetail_20' ) end [2025-02-08 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:05:22] Production.INFO: ==4539== Releasing lock... [2025-02-08 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:06:05 [end_date_ymd] => 2025-02-08 01:06:05 [RateCDR] => 1 ) [2025-02-08 01:06: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` >= '2025-02-07 22:06:05' and `end` < '2025-02-08 01:06: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 ,'') [2025-02-08 01:06:19] Production.INFO: count ==373 [2025-02-08 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:06:05 - End Time 2025-02-08 01:06:05 [2025-02-08 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426237', 'tblTempUsageDetail_20' ) start [2025-02-08 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426237', 'tblTempUsageDetail_20' ) end [2025-02-08 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426237', 'tblTempVendorCDR_20' ) start [2025-02-08 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426237', 'tblTempVendorCDR_20' ) end [2025-02-08 01:06:19] Production.INFO: ProcessCDR(1,14426237,1,1,2) [2025-02-08 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426237', 'tblTempUsageDetail_20' ) start [2025-02-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426237', 'tblTempUsageDetail_20' ) end [2025-02-08 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:06:22] Production.INFO: ==4625== Releasing lock... [2025-02-08 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:06:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:07:06 [end_date_ymd] => 2025-02-08 01:07:06 [RateCDR] => 1 ) [2025-02-08 01:07: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-02-07 22:07:06' and `end` < '2025-02-08 01:07: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-02-08 01:07:20] Production.INFO: count ==373 [2025-02-08 01:07:20] Production.ERROR: pbx CDR StartTime 2025-02-07 22:07:06 - End Time 2025-02-08 01:07:06 [2025-02-08 01:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426242', 'tblTempUsageDetail_20' ) start [2025-02-08 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426242', 'tblTempUsageDetail_20' ) end [2025-02-08 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426242', 'tblTempVendorCDR_20' ) start [2025-02-08 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426242', 'tblTempVendorCDR_20' ) end [2025-02-08 01:07:20] Production.INFO: ProcessCDR(1,14426242,1,1,2) [2025-02-08 01:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426242', 'tblTempUsageDetail_20' ) start [2025-02-08 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426242', 'tblTempUsageDetail_20' ) end [2025-02-08 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:07:23] Production.INFO: ==4703== Releasing lock... [2025-02-08 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:07:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:08:05 [end_date_ymd] => 2025-02-08 01:08:05 [RateCDR] => 1 ) [2025-02-08 01:08: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` >= '2025-02-07 22:08:05' and `end` < '2025-02-08 01:08: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 ,'') [2025-02-08 01:08:19] Production.INFO: count ==374 [2025-02-08 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:08:05 - End Time 2025-02-08 01:08:05 [2025-02-08 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426247', 'tblTempUsageDetail_20' ) start [2025-02-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426247', 'tblTempUsageDetail_20' ) end [2025-02-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426247', 'tblTempVendorCDR_20' ) start [2025-02-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426247', 'tblTempVendorCDR_20' ) end [2025-02-08 01:08:19] Production.INFO: ProcessCDR(1,14426247,1,1,2) [2025-02-08 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426247', 'tblTempUsageDetail_20' ) start [2025-02-08 01:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426247', 'tblTempUsageDetail_20' ) end [2025-02-08 01:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:08:24] Production.INFO: ==4778== Releasing lock... [2025-02-08 01:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:08:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:09:05 [end_date_ymd] => 2025-02-08 01:09:05 [RateCDR] => 1 ) [2025-02-08 01:09: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` >= '2025-02-07 22:09:05' and `end` < '2025-02-08 01:09: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 ,'') [2025-02-08 01:09:18] Production.INFO: count ==374 [2025-02-08 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:09:05 - End Time 2025-02-08 01:09:05 [2025-02-08 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426252', 'tblTempUsageDetail_20' ) start [2025-02-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426252', 'tblTempUsageDetail_20' ) end [2025-02-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426252', 'tblTempVendorCDR_20' ) start [2025-02-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426252', 'tblTempVendorCDR_20' ) end [2025-02-08 01:09:19] Production.INFO: ProcessCDR(1,14426252,1,1,2) [2025-02-08 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426252', 'tblTempUsageDetail_20' ) start [2025-02-08 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426252', 'tblTempUsageDetail_20' ) end [2025-02-08 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:09:22] Production.INFO: ==4855== Releasing lock... [2025-02-08 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:09:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:10:06 [end_date_ymd] => 2025-02-08 01:10:06 [RateCDR] => 1 ) [2025-02-08 01:10: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-02-07 22:10:06' and `end` < '2025-02-08 01:10: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-02-08 01:10:20] Production.INFO: count ==384 [2025-02-08 01:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 22:10:06 - End Time 2025-02-08 01:10:06 [2025-02-08 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426258', 'tblTempUsageDetail_20' ) start [2025-02-08 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426258', 'tblTempUsageDetail_20' ) end [2025-02-08 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426258', 'tblTempVendorCDR_20' ) start [2025-02-08 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426258', 'tblTempVendorCDR_20' ) end [2025-02-08 01:10:20] Production.INFO: ProcessCDR(1,14426258,1,1,2) [2025-02-08 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426258', 'tblTempUsageDetail_20' ) start [2025-02-08 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426258', 'tblTempUsageDetail_20' ) end [2025-02-08 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:10:23] Production.INFO: ==4978== Releasing lock... [2025-02-08 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:10:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:11:05 [end_date_ymd] => 2025-02-08 01:11:05 [RateCDR] => 1 ) [2025-02-08 01:11: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` >= '2025-02-07 22:11:05' and `end` < '2025-02-08 01:11: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 ,'') [2025-02-08 01:11:18] Production.INFO: count ==395 [2025-02-08 01:11:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:11:05 - End Time 2025-02-08 01:11:05 [2025-02-08 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426263', 'tblTempUsageDetail_20' ) start [2025-02-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426263', 'tblTempUsageDetail_20' ) end [2025-02-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426263', 'tblTempVendorCDR_20' ) start [2025-02-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426263', 'tblTempVendorCDR_20' ) end [2025-02-08 01:11:18] Production.INFO: ProcessCDR(1,14426263,1,1,2) [2025-02-08 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426263', 'tblTempUsageDetail_20' ) start [2025-02-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426263', 'tblTempUsageDetail_20' ) end [2025-02-08 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:11:21] Production.INFO: ==5056== Releasing lock... [2025-02-08 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:12:06 [end_date_ymd] => 2025-02-08 01:12:06 [RateCDR] => 1 ) [2025-02-08 01:12: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-02-07 22:12:06' and `end` < '2025-02-08 01:12: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-02-08 01:12:19] Production.INFO: count ==394 [2025-02-08 01:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:12:06 - End Time 2025-02-08 01:12:06 [2025-02-08 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426268', 'tblTempUsageDetail_20' ) start [2025-02-08 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426268', 'tblTempUsageDetail_20' ) end [2025-02-08 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426268', 'tblTempVendorCDR_20' ) start [2025-02-08 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426268', 'tblTempVendorCDR_20' ) end [2025-02-08 01:12:19] Production.INFO: ProcessCDR(1,14426268,1,1,2) [2025-02-08 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426268', 'tblTempUsageDetail_20' ) start [2025-02-08 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426268', 'tblTempUsageDetail_20' ) end [2025-02-08 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:12:22] Production.INFO: ==5133== Releasing lock... [2025-02-08 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:13:05 [end_date_ymd] => 2025-02-08 01:13:05 [RateCDR] => 1 ) [2025-02-08 01:13: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` >= '2025-02-07 22:13:05' and `end` < '2025-02-08 01:13: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 ,'') [2025-02-08 01:13:18] Production.INFO: count ==394 [2025-02-08 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:13:05 - End Time 2025-02-08 01:13:05 [2025-02-08 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426273', 'tblTempUsageDetail_20' ) start [2025-02-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426273', 'tblTempUsageDetail_20' ) end [2025-02-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426273', 'tblTempVendorCDR_20' ) start [2025-02-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426273', 'tblTempVendorCDR_20' ) end [2025-02-08 01:13:18] Production.INFO: ProcessCDR(1,14426273,1,1,2) [2025-02-08 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426273', 'tblTempUsageDetail_20' ) start [2025-02-08 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426273', 'tblTempUsageDetail_20' ) end [2025-02-08 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:13:21] Production.INFO: ==5206== Releasing lock... [2025-02-08 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:14:06 [end_date_ymd] => 2025-02-08 01:14:06 [RateCDR] => 1 ) [2025-02-08 01:14: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-02-07 22:14:06' and `end` < '2025-02-08 01:14: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-02-08 01:14:19] Production.INFO: count ==387 [2025-02-08 01:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:14:06 - End Time 2025-02-08 01:14:06 [2025-02-08 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426278', 'tblTempUsageDetail_20' ) start [2025-02-08 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426278', 'tblTempUsageDetail_20' ) end [2025-02-08 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426278', 'tblTempVendorCDR_20' ) start [2025-02-08 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426278', 'tblTempVendorCDR_20' ) end [2025-02-08 01:14:19] Production.INFO: ProcessCDR(1,14426278,1,1,2) [2025-02-08 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426278', 'tblTempUsageDetail_20' ) start [2025-02-08 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426278', 'tblTempUsageDetail_20' ) end [2025-02-08 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:14:22] Production.INFO: ==5280== Releasing lock... [2025-02-08 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:15:05 [end_date_ymd] => 2025-02-08 01:15:05 [RateCDR] => 1 ) [2025-02-08 01:15: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` >= '2025-02-07 22:15:05' and `end` < '2025-02-08 01:15: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 ,'') [2025-02-08 01:15:18] Production.INFO: count ==387 [2025-02-08 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:15:05 - End Time 2025-02-08 01:15:05 [2025-02-08 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426283', 'tblTempUsageDetail_20' ) start [2025-02-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426283', 'tblTempUsageDetail_20' ) end [2025-02-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426283', 'tblTempVendorCDR_20' ) start [2025-02-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426283', 'tblTempVendorCDR_20' ) end [2025-02-08 01:15:18] Production.INFO: ProcessCDR(1,14426283,1,1,2) [2025-02-08 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426283', 'tblTempUsageDetail_20' ) start [2025-02-08 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426283', 'tblTempUsageDetail_20' ) end [2025-02-08 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:15:21] Production.INFO: ==5353== Releasing lock... [2025-02-08 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:16:05 [end_date_ymd] => 2025-02-08 01:16:05 [RateCDR] => 1 ) [2025-02-08 01:16: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` >= '2025-02-07 22:16:05' and `end` < '2025-02-08 01:16: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 ,'') [2025-02-08 01:16:19] Production.INFO: count ==387 [2025-02-08 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:16:05 - End Time 2025-02-08 01:16:05 [2025-02-08 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426288', 'tblTempUsageDetail_20' ) start [2025-02-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426288', 'tblTempUsageDetail_20' ) end [2025-02-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426288', 'tblTempVendorCDR_20' ) start [2025-02-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426288', 'tblTempVendorCDR_20' ) end [2025-02-08 01:16:19] Production.INFO: ProcessCDR(1,14426288,1,1,2) [2025-02-08 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426288', 'tblTempUsageDetail_20' ) start [2025-02-08 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426288', 'tblTempUsageDetail_20' ) end [2025-02-08 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:16:22] Production.INFO: ==5429== Releasing lock... [2025-02-08 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:17:05 [end_date_ymd] => 2025-02-08 01:17:05 [RateCDR] => 1 ) [2025-02-08 01:17: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` >= '2025-02-07 22:17:05' and `end` < '2025-02-08 01:17: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 ,'') [2025-02-08 01:17:18] Production.INFO: count ==383 [2025-02-08 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:17:05 - End Time 2025-02-08 01:17:05 [2025-02-08 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426293', 'tblTempUsageDetail_20' ) start [2025-02-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426293', 'tblTempUsageDetail_20' ) end [2025-02-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426293', 'tblTempVendorCDR_20' ) start [2025-02-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426293', 'tblTempVendorCDR_20' ) end [2025-02-08 01:17:18] Production.INFO: ProcessCDR(1,14426293,1,1,2) [2025-02-08 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426293', 'tblTempUsageDetail_20' ) start [2025-02-08 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426293', 'tblTempUsageDetail_20' ) end [2025-02-08 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:17:21] Production.INFO: ==5502== Releasing lock... [2025-02-08 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:18:05 [end_date_ymd] => 2025-02-08 01:18:05 [RateCDR] => 1 ) [2025-02-08 01:18: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` >= '2025-02-07 22:18:05' and `end` < '2025-02-08 01:18: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 ,'') [2025-02-08 01:18:19] Production.INFO: count ==383 [2025-02-08 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:18:05 - End Time 2025-02-08 01:18:05 [2025-02-08 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426298', 'tblTempUsageDetail_20' ) start [2025-02-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426298', 'tblTempUsageDetail_20' ) end [2025-02-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426298', 'tblTempVendorCDR_20' ) start [2025-02-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426298', 'tblTempVendorCDR_20' ) end [2025-02-08 01:18:19] Production.INFO: ProcessCDR(1,14426298,1,1,2) [2025-02-08 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426298', 'tblTempUsageDetail_20' ) start [2025-02-08 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426298', 'tblTempUsageDetail_20' ) end [2025-02-08 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:18:22] Production.INFO: ==5575== Releasing lock... [2025-02-08 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:19:05 [end_date_ymd] => 2025-02-08 01:19:05 [RateCDR] => 1 ) [2025-02-08 01:19: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` >= '2025-02-07 22:19:05' and `end` < '2025-02-08 01:19: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 ,'') [2025-02-08 01:19:19] Production.INFO: count ==383 [2025-02-08 01:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:19:05 - End Time 2025-02-08 01:19:05 [2025-02-08 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426303', 'tblTempUsageDetail_20' ) start [2025-02-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426303', 'tblTempUsageDetail_20' ) end [2025-02-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426303', 'tblTempVendorCDR_20' ) start [2025-02-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426303', 'tblTempVendorCDR_20' ) end [2025-02-08 01:19:19] Production.INFO: ProcessCDR(1,14426303,1,1,2) [2025-02-08 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426303', 'tblTempUsageDetail_20' ) start [2025-02-08 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426303', 'tblTempUsageDetail_20' ) end [2025-02-08 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:19:22] Production.INFO: ==5650== Releasing lock... [2025-02-08 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:20:06 [end_date_ymd] => 2025-02-08 01:20:06 [RateCDR] => 1 ) [2025-02-08 01:20: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-02-07 22:20:06' and `end` < '2025-02-08 01:20: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-02-08 01:20:19] Production.INFO: count ==391 [2025-02-08 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:20:06 - End Time 2025-02-08 01:20:06 [2025-02-08 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426308', 'tblTempUsageDetail_20' ) start [2025-02-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426308', 'tblTempUsageDetail_20' ) end [2025-02-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426308', 'tblTempVendorCDR_20' ) start [2025-02-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426308', 'tblTempVendorCDR_20' ) end [2025-02-08 01:20:19] Production.INFO: ProcessCDR(1,14426308,1,1,2) [2025-02-08 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426308', 'tblTempUsageDetail_20' ) start [2025-02-08 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426308', 'tblTempUsageDetail_20' ) end [2025-02-08 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:20:22] Production.INFO: ==5726== Releasing lock... [2025-02-08 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:21:05 [end_date_ymd] => 2025-02-08 01:21:05 [RateCDR] => 1 ) [2025-02-08 01:21: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` >= '2025-02-07 22:21:05' and `end` < '2025-02-08 01:21: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 ,'') [2025-02-08 01:21:18] Production.INFO: count ==400 [2025-02-08 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:21:05 - End Time 2025-02-08 01:21:05 [2025-02-08 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426314', 'tblTempUsageDetail_20' ) start [2025-02-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426314', 'tblTempUsageDetail_20' ) end [2025-02-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426314', 'tblTempVendorCDR_20' ) start [2025-02-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426314', 'tblTempVendorCDR_20' ) end [2025-02-08 01:21:18] Production.INFO: ProcessCDR(1,14426314,1,1,2) [2025-02-08 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426314', 'tblTempUsageDetail_20' ) start [2025-02-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426314', 'tblTempUsageDetail_20' ) end [2025-02-08 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:21:21] Production.INFO: ==5803== Releasing lock... [2025-02-08 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:22:05 [end_date_ymd] => 2025-02-08 01:22:05 [RateCDR] => 1 ) [2025-02-08 01:22: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` >= '2025-02-07 22:22:05' and `end` < '2025-02-08 01:22: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 ,'') [2025-02-08 01:22:19] Production.INFO: count ==398 [2025-02-08 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:22:05 - End Time 2025-02-08 01:22:05 [2025-02-08 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426319', 'tblTempUsageDetail_20' ) start [2025-02-08 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426319', 'tblTempUsageDetail_20' ) end [2025-02-08 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426319', 'tblTempVendorCDR_20' ) start [2025-02-08 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426319', 'tblTempVendorCDR_20' ) end [2025-02-08 01:22:19] Production.INFO: ProcessCDR(1,14426319,1,1,2) [2025-02-08 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426319', 'tblTempUsageDetail_20' ) start [2025-02-08 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426319', 'tblTempUsageDetail_20' ) end [2025-02-08 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:22:22] Production.INFO: ==5878== Releasing lock... [2025-02-08 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:22:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:23:06 [end_date_ymd] => 2025-02-08 01:23:06 [RateCDR] => 1 ) [2025-02-08 01:23: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-02-07 22:23:06' and `end` < '2025-02-08 01:23: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-02-08 01:23:19] Production.INFO: count ==400 [2025-02-08 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:23:06 - End Time 2025-02-08 01:23:06 [2025-02-08 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426324', 'tblTempUsageDetail_20' ) start [2025-02-08 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426324', 'tblTempUsageDetail_20' ) end [2025-02-08 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426324', 'tblTempVendorCDR_20' ) start [2025-02-08 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426324', 'tblTempVendorCDR_20' ) end [2025-02-08 01:23:19] Production.INFO: ProcessCDR(1,14426324,1,1,2) [2025-02-08 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426324', 'tblTempUsageDetail_20' ) start [2025-02-08 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426324', 'tblTempUsageDetail_20' ) end [2025-02-08 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:23:22] Production.INFO: ==5982== Releasing lock... [2025-02-08 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:24:05 [end_date_ymd] => 2025-02-08 01:24:05 [RateCDR] => 1 ) [2025-02-08 01:24: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` >= '2025-02-07 22:24:05' and `end` < '2025-02-08 01:24: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 ,'') [2025-02-08 01:24:18] Production.INFO: count ==398 [2025-02-08 01:24:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:24:05 - End Time 2025-02-08 01:24:05 [2025-02-08 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426329', 'tblTempUsageDetail_20' ) start [2025-02-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426329', 'tblTempUsageDetail_20' ) end [2025-02-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426329', 'tblTempVendorCDR_20' ) start [2025-02-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426329', 'tblTempVendorCDR_20' ) end [2025-02-08 01:24:18] Production.INFO: ProcessCDR(1,14426329,1,1,2) [2025-02-08 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426329', 'tblTempUsageDetail_20' ) start [2025-02-08 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426329', 'tblTempUsageDetail_20' ) end [2025-02-08 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:24:21] Production.INFO: ==6090== Releasing lock... [2025-02-08 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:24:21] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:25:05 [end_date_ymd] => 2025-02-08 01:25:05 [RateCDR] => 1 ) [2025-02-08 01:25: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` >= '2025-02-07 22:25:05' and `end` < '2025-02-08 01:25: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 ,'') [2025-02-08 01:25:18] Production.INFO: count ==397 [2025-02-08 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:25:05 - End Time 2025-02-08 01:25:05 [2025-02-08 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426333', 'tblTempUsageDetail_20' ) start [2025-02-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426333', 'tblTempUsageDetail_20' ) end [2025-02-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426333', 'tblTempVendorCDR_20' ) start [2025-02-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426333', 'tblTempVendorCDR_20' ) end [2025-02-08 01:25:18] Production.INFO: ProcessCDR(1,14426333,1,1,2) [2025-02-08 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426333', 'tblTempUsageDetail_20' ) start [2025-02-08 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426333', 'tblTempUsageDetail_20' ) end [2025-02-08 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:25:22] Production.INFO: ==6206== Releasing lock... [2025-02-08 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:25:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:26:05 [end_date_ymd] => 2025-02-08 01:26:05 [RateCDR] => 1 ) [2025-02-08 01:26: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` >= '2025-02-07 22:26:05' and `end` < '2025-02-08 01:26: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 ,'') [2025-02-08 01:26:18] Production.INFO: count ==397 [2025-02-08 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:26:05 - End Time 2025-02-08 01:26:05 [2025-02-08 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426336', 'tblTempUsageDetail_20' ) start [2025-02-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426336', 'tblTempUsageDetail_20' ) end [2025-02-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426336', 'tblTempVendorCDR_20' ) start [2025-02-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426336', 'tblTempVendorCDR_20' ) end [2025-02-08 01:26:18] Production.INFO: ProcessCDR(1,14426336,1,1,2) [2025-02-08 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426336', 'tblTempUsageDetail_20' ) start [2025-02-08 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426336', 'tblTempUsageDetail_20' ) end [2025-02-08 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:26:21] Production.INFO: ==6280== Releasing lock... [2025-02-08 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:27:06 [end_date_ymd] => 2025-02-08 01:27:06 [RateCDR] => 1 ) [2025-02-08 01:27: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-02-07 22:27:06' and `end` < '2025-02-08 01:27: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-02-08 01:27:18] Production.INFO: count ==394 [2025-02-08 01:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:27:06 - End Time 2025-02-08 01:27:06 [2025-02-08 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426344', 'tblTempUsageDetail_20' ) start [2025-02-08 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426344', 'tblTempUsageDetail_20' ) end [2025-02-08 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426344', 'tblTempVendorCDR_20' ) start [2025-02-08 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426344', 'tblTempVendorCDR_20' ) end [2025-02-08 01:27:19] Production.INFO: ProcessCDR(1,14426344,1,1,2) [2025-02-08 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426344', 'tblTempUsageDetail_20' ) start [2025-02-08 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426344', 'tblTempUsageDetail_20' ) end [2025-02-08 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:27:22] Production.INFO: ==6352== Releasing lock... [2025-02-08 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:28:05 [end_date_ymd] => 2025-02-08 01:28:05 [RateCDR] => 1 ) [2025-02-08 01:28: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` >= '2025-02-07 22:28:05' and `end` < '2025-02-08 01:28: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 ,'') [2025-02-08 01:28:21] Production.INFO: count ==395 [2025-02-08 01:28:21] Production.ERROR: pbx CDR StartTime 2025-02-07 22:28:05 - End Time 2025-02-08 01:28:05 [2025-02-08 01:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426349', 'tblTempUsageDetail_20' ) start [2025-02-08 01:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426349', 'tblTempUsageDetail_20' ) end [2025-02-08 01:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426349', 'tblTempVendorCDR_20' ) start [2025-02-08 01:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426349', 'tblTempVendorCDR_20' ) end [2025-02-08 01:28:21] Production.INFO: ProcessCDR(1,14426349,1,1,2) [2025-02-08 01:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426349', 'tblTempUsageDetail_20' ) start [2025-02-08 01:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426349', 'tblTempUsageDetail_20' ) end [2025-02-08 01:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:28:26] Production.INFO: ==6430== Releasing lock... [2025-02-08 01:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:28:26] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:29:05 [end_date_ymd] => 2025-02-08 01:29:05 [RateCDR] => 1 ) [2025-02-08 01:29: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` >= '2025-02-07 22:29:05' and `end` < '2025-02-08 01:29: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 ,'') [2025-02-08 01:29:18] Production.INFO: count ==395 [2025-02-08 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:29:05 - End Time 2025-02-08 01:29:05 [2025-02-08 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426354', 'tblTempUsageDetail_20' ) start [2025-02-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426354', 'tblTempUsageDetail_20' ) end [2025-02-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426354', 'tblTempVendorCDR_20' ) start [2025-02-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426354', 'tblTempVendorCDR_20' ) end [2025-02-08 01:29:18] Production.INFO: ProcessCDR(1,14426354,1,1,2) [2025-02-08 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426354', 'tblTempUsageDetail_20' ) start [2025-02-08 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426354', 'tblTempUsageDetail_20' ) end [2025-02-08 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:29:22] Production.INFO: ==6509== Releasing lock... [2025-02-08 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:29:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:30:06 [end_date_ymd] => 2025-02-08 01:30:06 [RateCDR] => 1 ) [2025-02-08 01:30: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-02-07 22:30:06' and `end` < '2025-02-08 01:30: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-02-08 01:30:19] Production.INFO: count ==398 [2025-02-08 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:30:06 - End Time 2025-02-08 01:30:06 [2025-02-08 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426360', 'tblTempUsageDetail_20' ) start [2025-02-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426360', 'tblTempUsageDetail_20' ) end [2025-02-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426360', 'tblTempVendorCDR_20' ) start [2025-02-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426360', 'tblTempVendorCDR_20' ) end [2025-02-08 01:30:19] Production.INFO: ProcessCDR(1,14426360,1,1,2) [2025-02-08 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426360', 'tblTempUsageDetail_20' ) start [2025-02-08 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426360', 'tblTempUsageDetail_20' ) end [2025-02-08 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:30:22] Production.INFO: ==6587== Releasing lock... [2025-02-08 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:31:05 [end_date_ymd] => 2025-02-08 01:31:05 [RateCDR] => 1 ) [2025-02-08 01:31: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` >= '2025-02-07 22:31:05' and `end` < '2025-02-08 01:31: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 ,'') [2025-02-08 01:31:19] Production.INFO: count ==427 [2025-02-08 01:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:31:05 - End Time 2025-02-08 01:31:05 [2025-02-08 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426365', 'tblTempUsageDetail_20' ) start [2025-02-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426365', 'tblTempUsageDetail_20' ) end [2025-02-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426365', 'tblTempVendorCDR_20' ) start [2025-02-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426365', 'tblTempVendorCDR_20' ) end [2025-02-08 01:31:19] Production.INFO: ProcessCDR(1,14426365,1,1,2) [2025-02-08 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426365', 'tblTempUsageDetail_20' ) start [2025-02-08 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426365', 'tblTempUsageDetail_20' ) end [2025-02-08 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:31:22] Production.INFO: ==6670== Releasing lock... [2025-02-08 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:32:05 [end_date_ymd] => 2025-02-08 01:32:05 [RateCDR] => 1 ) [2025-02-08 01:32: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` >= '2025-02-07 22:32:05' and `end` < '2025-02-08 01:32: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 ,'') [2025-02-08 01:32:18] Production.INFO: count ==426 [2025-02-08 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:32:05 - End Time 2025-02-08 01:32:05 [2025-02-08 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426370', 'tblTempUsageDetail_20' ) start [2025-02-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426370', 'tblTempUsageDetail_20' ) end [2025-02-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426370', 'tblTempVendorCDR_20' ) start [2025-02-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426370', 'tblTempVendorCDR_20' ) end [2025-02-08 01:32:18] Production.INFO: ProcessCDR(1,14426370,1,1,2) [2025-02-08 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426370', 'tblTempUsageDetail_20' ) start [2025-02-08 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426370', 'tblTempUsageDetail_20' ) end [2025-02-08 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:32:22] Production.INFO: ==6749== Releasing lock... [2025-02-08 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:33:05 [end_date_ymd] => 2025-02-08 01:33:05 [RateCDR] => 1 ) [2025-02-08 01:33: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` >= '2025-02-07 22:33:05' and `end` < '2025-02-08 01:33: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 ,'') [2025-02-08 01:33:18] Production.INFO: count ==424 [2025-02-08 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:33:05 - End Time 2025-02-08 01:33:05 [2025-02-08 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426375', 'tblTempUsageDetail_20' ) start [2025-02-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426375', 'tblTempUsageDetail_20' ) end [2025-02-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426375', 'tblTempVendorCDR_20' ) start [2025-02-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426375', 'tblTempVendorCDR_20' ) end [2025-02-08 01:33:18] Production.INFO: ProcessCDR(1,14426375,1,1,2) [2025-02-08 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426375', 'tblTempUsageDetail_20' ) start [2025-02-08 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426375', 'tblTempUsageDetail_20' ) end [2025-02-08 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:33:21] Production.INFO: ==6827== Releasing lock... [2025-02-08 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:34:05 [end_date_ymd] => 2025-02-08 01:34:05 [RateCDR] => 1 ) [2025-02-08 01:34: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` >= '2025-02-07 22:34:05' and `end` < '2025-02-08 01:34: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 ,'') [2025-02-08 01:34:19] Production.INFO: count ==424 [2025-02-08 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:34:05 - End Time 2025-02-08 01:34:05 [2025-02-08 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426380', 'tblTempUsageDetail_20' ) start [2025-02-08 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426380', 'tblTempUsageDetail_20' ) end [2025-02-08 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426380', 'tblTempVendorCDR_20' ) start [2025-02-08 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426380', 'tblTempVendorCDR_20' ) end [2025-02-08 01:34:19] Production.INFO: ProcessCDR(1,14426380,1,1,2) [2025-02-08 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426380', 'tblTempUsageDetail_20' ) start [2025-02-08 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426380', 'tblTempUsageDetail_20' ) end [2025-02-08 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:34:23] Production.INFO: ==6909== Releasing lock... [2025-02-08 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:34:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:35:06 [end_date_ymd] => 2025-02-08 01:35:06 [RateCDR] => 1 ) [2025-02-08 01:35: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-02-07 22:35:06' and `end` < '2025-02-08 01:35: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-02-08 01:35:19] Production.INFO: count ==424 [2025-02-08 01:35:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:35:06 - End Time 2025-02-08 01:35:06 [2025-02-08 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426385', 'tblTempUsageDetail_20' ) start [2025-02-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426385', 'tblTempUsageDetail_20' ) end [2025-02-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426385', 'tblTempVendorCDR_20' ) start [2025-02-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426385', 'tblTempVendorCDR_20' ) end [2025-02-08 01:35:19] Production.INFO: ProcessCDR(1,14426385,1,1,2) [2025-02-08 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426385', 'tblTempUsageDetail_20' ) start [2025-02-08 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426385', 'tblTempUsageDetail_20' ) end [2025-02-08 01:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:35:24] Production.INFO: ==6987== Releasing lock... [2025-02-08 01:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:35:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:36:05 [end_date_ymd] => 2025-02-08 01:36:05 [RateCDR] => 1 ) [2025-02-08 01:36: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` >= '2025-02-07 22:36:05' and `end` < '2025-02-08 01:36: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 ,'') [2025-02-08 01:36:21] Production.INFO: count ==424 [2025-02-08 01:36:21] Production.ERROR: pbx CDR StartTime 2025-02-07 22:36:05 - End Time 2025-02-08 01:36:05 [2025-02-08 01:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426390', 'tblTempUsageDetail_20' ) start [2025-02-08 01:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426390', 'tblTempUsageDetail_20' ) end [2025-02-08 01:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426390', 'tblTempVendorCDR_20' ) start [2025-02-08 01:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426390', 'tblTempVendorCDR_20' ) end [2025-02-08 01:36:21] Production.INFO: ProcessCDR(1,14426390,1,1,2) [2025-02-08 01:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426390', 'tblTempUsageDetail_20' ) start [2025-02-08 01:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426390', 'tblTempUsageDetail_20' ) end [2025-02-08 01:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:36:25] Production.INFO: ==7060== Releasing lock... [2025-02-08 01:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:36:25] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:37:06 [end_date_ymd] => 2025-02-08 01:37:06 [RateCDR] => 1 ) [2025-02-08 01:37: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-02-07 22:37:06' and `end` < '2025-02-08 01:37: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-02-08 01:37:20] Production.INFO: count ==424 [2025-02-08 01:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 22:37:06 - End Time 2025-02-08 01:37:06 [2025-02-08 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426395', 'tblTempUsageDetail_20' ) start [2025-02-08 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426395', 'tblTempUsageDetail_20' ) end [2025-02-08 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426395', 'tblTempVendorCDR_20' ) start [2025-02-08 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426395', 'tblTempVendorCDR_20' ) end [2025-02-08 01:37:20] Production.INFO: ProcessCDR(1,14426395,1,1,2) [2025-02-08 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426395', 'tblTempUsageDetail_20' ) start [2025-02-08 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426395', 'tblTempUsageDetail_20' ) end [2025-02-08 01:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:37:24] Production.INFO: ==7141== Releasing lock... [2025-02-08 01:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:37:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:38:06 [end_date_ymd] => 2025-02-08 01:38:06 [RateCDR] => 1 ) [2025-02-08 01:38: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-02-07 22:38:06' and `end` < '2025-02-08 01:38: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-02-08 01:38:18] Production.INFO: count ==422 [2025-02-08 01:38:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:38:06 - End Time 2025-02-08 01:38:06 [2025-02-08 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426400', 'tblTempUsageDetail_20' ) start [2025-02-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426400', 'tblTempUsageDetail_20' ) end [2025-02-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426400', 'tblTempVendorCDR_20' ) start [2025-02-08 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426400', 'tblTempVendorCDR_20' ) end [2025-02-08 01:38:19] Production.INFO: ProcessCDR(1,14426400,1,1,2) [2025-02-08 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426400', 'tblTempUsageDetail_20' ) start [2025-02-08 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426400', 'tblTempUsageDetail_20' ) end [2025-02-08 01:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:38:24] Production.INFO: ==7222== Releasing lock... [2025-02-08 01:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:38:24] Production.INFO: 31 MB #Memory Used# [2025-02-08 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:39:05 [end_date_ymd] => 2025-02-08 01:39:05 [RateCDR] => 1 ) [2025-02-08 01:39: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` >= '2025-02-07 22:39:05' and `end` < '2025-02-08 01:39: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 ,'') [2025-02-08 01:39:18] Production.INFO: count ==421 [2025-02-08 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:39:05 - End Time 2025-02-08 01:39:05 [2025-02-08 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426405', 'tblTempUsageDetail_20' ) start [2025-02-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426405', 'tblTempUsageDetail_20' ) end [2025-02-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426405', 'tblTempVendorCDR_20' ) start [2025-02-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426405', 'tblTempVendorCDR_20' ) end [2025-02-08 01:39:18] Production.INFO: ProcessCDR(1,14426405,1,1,2) [2025-02-08 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426405', 'tblTempUsageDetail_20' ) start [2025-02-08 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426405', 'tblTempUsageDetail_20' ) end [2025-02-08 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:39:21] Production.INFO: ==7301== Releasing lock... [2025-02-08 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:40:06 [end_date_ymd] => 2025-02-08 01:40:06 [RateCDR] => 1 ) [2025-02-08 01:40: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-02-07 22:40:06' and `end` < '2025-02-08 01:40: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-02-08 01:40:18] Production.INFO: count ==429 [2025-02-08 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:40:06 - End Time 2025-02-08 01:40:06 [2025-02-08 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426411', 'tblTempUsageDetail_20' ) start [2025-02-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426411', 'tblTempUsageDetail_20' ) end [2025-02-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426411', 'tblTempVendorCDR_20' ) start [2025-02-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426411', 'tblTempVendorCDR_20' ) end [2025-02-08 01:40:19] Production.INFO: ProcessCDR(1,14426411,1,1,2) [2025-02-08 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426411', 'tblTempUsageDetail_20' ) start [2025-02-08 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426411', 'tblTempUsageDetail_20' ) end [2025-02-08 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:40:22] Production.INFO: ==7380== Releasing lock... [2025-02-08 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:41:05 [end_date_ymd] => 2025-02-08 01:41:05 [RateCDR] => 1 ) [2025-02-08 01:41: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` >= '2025-02-07 22:41:05' and `end` < '2025-02-08 01:41: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 ,'') [2025-02-08 01:41:18] Production.INFO: count ==456 [2025-02-08 01:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:41:05 - End Time 2025-02-08 01:41:05 [2025-02-08 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426416', 'tblTempUsageDetail_20' ) start [2025-02-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426416', 'tblTempUsageDetail_20' ) end [2025-02-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426416', 'tblTempVendorCDR_20' ) start [2025-02-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426416', 'tblTempVendorCDR_20' ) end [2025-02-08 01:41:18] Production.INFO: ProcessCDR(1,14426416,1,1,2) [2025-02-08 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426416', 'tblTempUsageDetail_20' ) start [2025-02-08 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426416', 'tblTempUsageDetail_20' ) end [2025-02-08 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:41:23] Production.INFO: ==7498== Releasing lock... [2025-02-08 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:41:23] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:42:05 [end_date_ymd] => 2025-02-08 01:42:05 [RateCDR] => 1 ) [2025-02-08 01:42: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` >= '2025-02-07 22:42:05' and `end` < '2025-02-08 01:42: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 ,'') [2025-02-08 01:42:18] Production.INFO: count ==459 [2025-02-08 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:42:05 - End Time 2025-02-08 01:42:05 [2025-02-08 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426421', 'tblTempUsageDetail_20' ) start [2025-02-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426421', 'tblTempUsageDetail_20' ) end [2025-02-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426421', 'tblTempVendorCDR_20' ) start [2025-02-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426421', 'tblTempVendorCDR_20' ) end [2025-02-08 01:42:19] Production.INFO: ProcessCDR(1,14426421,1,1,2) [2025-02-08 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426421', 'tblTempUsageDetail_20' ) start [2025-02-08 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426421', 'tblTempUsageDetail_20' ) end [2025-02-08 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:42:22] Production.INFO: ==7576== Releasing lock... [2025-02-08 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:42:22] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:43:05 [end_date_ymd] => 2025-02-08 01:43:05 [RateCDR] => 1 ) [2025-02-08 01:43: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` >= '2025-02-07 22:43:05' and `end` < '2025-02-08 01:43: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 ,'') [2025-02-08 01:43:19] Production.INFO: count ==457 [2025-02-08 01:43:20] Production.ERROR: pbx CDR StartTime 2025-02-07 22:43:05 - End Time 2025-02-08 01:43:05 [2025-02-08 01:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426426', 'tblTempUsageDetail_20' ) start [2025-02-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426426', 'tblTempUsageDetail_20' ) end [2025-02-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426426', 'tblTempVendorCDR_20' ) start [2025-02-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426426', 'tblTempVendorCDR_20' ) end [2025-02-08 01:43:20] Production.INFO: ProcessCDR(1,14426426,1,1,2) [2025-02-08 01:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426426', 'tblTempUsageDetail_20' ) start [2025-02-08 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426426', 'tblTempUsageDetail_20' ) end [2025-02-08 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:43:23] Production.INFO: ==7655== Releasing lock... [2025-02-08 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:43:23] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:44:05 [end_date_ymd] => 2025-02-08 01:44:05 [RateCDR] => 1 ) [2025-02-08 01:44: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` >= '2025-02-07 22:44:05' and `end` < '2025-02-08 01:44: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 ,'') [2025-02-08 01:44:18] Production.INFO: count ==457 [2025-02-08 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:44:05 - End Time 2025-02-08 01:44:05 [2025-02-08 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426431', 'tblTempUsageDetail_20' ) start [2025-02-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426431', 'tblTempUsageDetail_20' ) end [2025-02-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426431', 'tblTempVendorCDR_20' ) start [2025-02-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426431', 'tblTempVendorCDR_20' ) end [2025-02-08 01:44:18] Production.INFO: ProcessCDR(1,14426431,1,1,2) [2025-02-08 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426431', 'tblTempUsageDetail_20' ) start [2025-02-08 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426431', 'tblTempUsageDetail_20' ) end [2025-02-08 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:44:21] Production.INFO: ==7737== Releasing lock... [2025-02-08 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:44:21] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:45:06 [end_date_ymd] => 2025-02-08 01:45:06 [RateCDR] => 1 ) [2025-02-08 01:45: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-02-07 22:45:06' and `end` < '2025-02-08 01:45: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-02-08 01:45:19] Production.INFO: count ==457 [2025-02-08 01:45:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:45:06 - End Time 2025-02-08 01:45:06 [2025-02-08 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426436', 'tblTempUsageDetail_20' ) start [2025-02-08 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426436', 'tblTempUsageDetail_20' ) end [2025-02-08 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426436', 'tblTempVendorCDR_20' ) start [2025-02-08 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426436', 'tblTempVendorCDR_20' ) end [2025-02-08 01:45:19] Production.INFO: ProcessCDR(1,14426436,1,1,2) [2025-02-08 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426436', 'tblTempUsageDetail_20' ) start [2025-02-08 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426436', 'tblTempUsageDetail_20' ) end [2025-02-08 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:45:23] Production.INFO: ==7818== Releasing lock... [2025-02-08 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:45:23] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:46:05 [end_date_ymd] => 2025-02-08 01:46:05 [RateCDR] => 1 ) [2025-02-08 01:46: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` >= '2025-02-07 22:46:05' and `end` < '2025-02-08 01:46: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 ,'') [2025-02-08 01:46:21] Production.INFO: count ==457 [2025-02-08 01:46:21] Production.ERROR: pbx CDR StartTime 2025-02-07 22:46:05 - End Time 2025-02-08 01:46:05 [2025-02-08 01:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426441', 'tblTempUsageDetail_20' ) start [2025-02-08 01:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426441', 'tblTempUsageDetail_20' ) end [2025-02-08 01:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426441', 'tblTempVendorCDR_20' ) start [2025-02-08 01:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426441', 'tblTempVendorCDR_20' ) end [2025-02-08 01:46:21] Production.INFO: ProcessCDR(1,14426441,1,1,2) [2025-02-08 01:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426441', 'tblTempUsageDetail_20' ) start [2025-02-08 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426441', 'tblTempUsageDetail_20' ) end [2025-02-08 01:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:46:24] Production.INFO: ==7897== Releasing lock... [2025-02-08 01:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:46:24] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:47:06 [end_date_ymd] => 2025-02-08 01:47:06 [RateCDR] => 1 ) [2025-02-08 01:47: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-02-07 22:47:06' and `end` < '2025-02-08 01:47: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-02-08 01:47:19] Production.INFO: count ==457 [2025-02-08 01:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:47:06 - End Time 2025-02-08 01:47:06 [2025-02-08 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426446', 'tblTempUsageDetail_20' ) start [2025-02-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426446', 'tblTempUsageDetail_20' ) end [2025-02-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426446', 'tblTempVendorCDR_20' ) start [2025-02-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426446', 'tblTempVendorCDR_20' ) end [2025-02-08 01:47:19] Production.INFO: ProcessCDR(1,14426446,1,1,2) [2025-02-08 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426446', 'tblTempUsageDetail_20' ) start [2025-02-08 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426446', 'tblTempUsageDetail_20' ) end [2025-02-08 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:47:23] Production.INFO: ==7975== Releasing lock... [2025-02-08 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:47:23] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:48:06 [end_date_ymd] => 2025-02-08 01:48:06 [RateCDR] => 1 ) [2025-02-08 01:48: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-02-07 22:48:06' and `end` < '2025-02-08 01:48: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-02-08 01:48:21] Production.INFO: count ==455 [2025-02-08 01:48:21] Production.ERROR: pbx CDR StartTime 2025-02-07 22:48:06 - End Time 2025-02-08 01:48:06 [2025-02-08 01:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426451', 'tblTempUsageDetail_20' ) start [2025-02-08 01:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426451', 'tblTempUsageDetail_20' ) end [2025-02-08 01:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426451', 'tblTempVendorCDR_20' ) start [2025-02-08 01:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426451', 'tblTempVendorCDR_20' ) end [2025-02-08 01:48:21] Production.INFO: ProcessCDR(1,14426451,1,1,2) [2025-02-08 01:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426451', 'tblTempUsageDetail_20' ) start [2025-02-08 01:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426451', 'tblTempUsageDetail_20' ) end [2025-02-08 01:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:48:25] Production.INFO: ==8048== Releasing lock... [2025-02-08 01:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:48:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:49:06 [end_date_ymd] => 2025-02-08 01:49:06 [RateCDR] => 1 ) [2025-02-08 01:49: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-02-07 22:49:06' and `end` < '2025-02-08 01:49: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-02-08 01:49:18] Production.INFO: count ==460 [2025-02-08 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:49:06 - End Time 2025-02-08 01:49:06 [2025-02-08 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426456', 'tblTempUsageDetail_20' ) start [2025-02-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426456', 'tblTempUsageDetail_20' ) end [2025-02-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426456', 'tblTempVendorCDR_20' ) start [2025-02-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426456', 'tblTempVendorCDR_20' ) end [2025-02-08 01:49:18] Production.INFO: ProcessCDR(1,14426456,1,1,2) [2025-02-08 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426456', 'tblTempUsageDetail_20' ) start [2025-02-08 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426456', 'tblTempUsageDetail_20' ) end [2025-02-08 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:49:22] Production.INFO: ==8128== Releasing lock... [2025-02-08 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:49:22] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:50:06 [end_date_ymd] => 2025-02-08 01:50:06 [RateCDR] => 1 ) [2025-02-08 01:50: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-02-07 22:50:06' and `end` < '2025-02-08 01:50: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-02-08 01:50:19] Production.INFO: count ==471 [2025-02-08 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:50:06 - End Time 2025-02-08 01:50:06 [2025-02-08 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426461', 'tblTempUsageDetail_20' ) start [2025-02-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426461', 'tblTempUsageDetail_20' ) end [2025-02-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426461', 'tblTempVendorCDR_20' ) start [2025-02-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426461', 'tblTempVendorCDR_20' ) end [2025-02-08 01:50:19] Production.INFO: ProcessCDR(1,14426461,1,1,2) [2025-02-08 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426461', 'tblTempUsageDetail_20' ) start [2025-02-08 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426461', 'tblTempUsageDetail_20' ) end [2025-02-08 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:50:24] Production.INFO: ==8213== Releasing lock... [2025-02-08 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:50:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:51:06 [end_date_ymd] => 2025-02-08 01:51:06 [RateCDR] => 1 ) [2025-02-08 01:51: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-02-07 22:51:06' and `end` < '2025-02-08 01:51: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-02-08 01:51:18] Production.INFO: count ==490 [2025-02-08 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:51:06 - End Time 2025-02-08 01:51:06 [2025-02-08 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426467', 'tblTempUsageDetail_20' ) start [2025-02-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426467', 'tblTempUsageDetail_20' ) end [2025-02-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426467', 'tblTempVendorCDR_20' ) start [2025-02-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426467', 'tblTempVendorCDR_20' ) end [2025-02-08 01:51:18] Production.INFO: ProcessCDR(1,14426467,1,1,2) [2025-02-08 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426467', 'tblTempUsageDetail_20' ) start [2025-02-08 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426467', 'tblTempUsageDetail_20' ) end [2025-02-08 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:51:22] Production.INFO: ==8300== Releasing lock... [2025-02-08 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:52:05 [end_date_ymd] => 2025-02-08 01:52:05 [RateCDR] => 1 ) [2025-02-08 01:52: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` >= '2025-02-07 22:52:05' and `end` < '2025-02-08 01:52: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 ,'') [2025-02-08 01:52:19] Production.INFO: count ==490 [2025-02-08 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:52:05 - End Time 2025-02-08 01:52:05 [2025-02-08 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426472', 'tblTempUsageDetail_20' ) start [2025-02-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426472', 'tblTempUsageDetail_20' ) end [2025-02-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426472', 'tblTempVendorCDR_20' ) start [2025-02-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426472', 'tblTempVendorCDR_20' ) end [2025-02-08 01:52:19] Production.INFO: ProcessCDR(1,14426472,1,1,2) [2025-02-08 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426472', 'tblTempUsageDetail_20' ) start [2025-02-08 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426472', 'tblTempUsageDetail_20' ) end [2025-02-08 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:52:22] Production.INFO: ==8382== Releasing lock... [2025-02-08 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:53:06 [end_date_ymd] => 2025-02-08 01:53:06 [RateCDR] => 1 ) [2025-02-08 01:53: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-02-07 22:53:06' and `end` < '2025-02-08 01:53: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-02-08 01:53:19] Production.INFO: count ==490 [2025-02-08 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:53:06 - End Time 2025-02-08 01:53:06 [2025-02-08 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426477', 'tblTempUsageDetail_20' ) start [2025-02-08 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426477', 'tblTempUsageDetail_20' ) end [2025-02-08 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426477', 'tblTempVendorCDR_20' ) start [2025-02-08 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426477', 'tblTempVendorCDR_20' ) end [2025-02-08 01:53:19] Production.INFO: ProcessCDR(1,14426477,1,1,2) [2025-02-08 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426477', 'tblTempUsageDetail_20' ) start [2025-02-08 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426477', 'tblTempUsageDetail_20' ) end [2025-02-08 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:53:22] Production.INFO: ==8462== Releasing lock... [2025-02-08 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:53:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:54:05 [end_date_ymd] => 2025-02-08 01:54:05 [RateCDR] => 1 ) [2025-02-08 01:54: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` >= '2025-02-07 22:54:05' and `end` < '2025-02-08 01:54: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 ,'') [2025-02-08 01:54:18] Production.INFO: count ==490 [2025-02-08 01:54:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:54:05 - End Time 2025-02-08 01:54:05 [2025-02-08 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426482', 'tblTempUsageDetail_20' ) start [2025-02-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426482', 'tblTempUsageDetail_20' ) end [2025-02-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426482', 'tblTempVendorCDR_20' ) start [2025-02-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426482', 'tblTempVendorCDR_20' ) end [2025-02-08 01:54:18] Production.INFO: ProcessCDR(1,14426482,1,1,2) [2025-02-08 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426482', 'tblTempUsageDetail_20' ) start [2025-02-08 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426482', 'tblTempUsageDetail_20' ) end [2025-02-08 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:54:21] Production.INFO: ==8548== Releasing lock... [2025-02-08 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:55:05 [end_date_ymd] => 2025-02-08 01:55:05 [RateCDR] => 1 ) [2025-02-08 01:55: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` >= '2025-02-07 22:55:05' and `end` < '2025-02-08 01:55: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 ,'') [2025-02-08 01:55:19] Production.INFO: count ==489 [2025-02-08 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:55:05 - End Time 2025-02-08 01:55:05 [2025-02-08 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426487', 'tblTempUsageDetail_20' ) start [2025-02-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426487', 'tblTempUsageDetail_20' ) end [2025-02-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426487', 'tblTempVendorCDR_20' ) start [2025-02-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426487', 'tblTempVendorCDR_20' ) end [2025-02-08 01:55:19] Production.INFO: ProcessCDR(1,14426487,1,1,2) [2025-02-08 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426487', 'tblTempUsageDetail_20' ) start [2025-02-08 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426487', 'tblTempUsageDetail_20' ) end [2025-02-08 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:55:22] Production.INFO: ==8630== Releasing lock... [2025-02-08 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:56:05 [end_date_ymd] => 2025-02-08 01:56:05 [RateCDR] => 1 ) [2025-02-08 01:56: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` >= '2025-02-07 22:56:05' and `end` < '2025-02-08 01:56: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 ,'') [2025-02-08 01:56:18] Production.INFO: count ==490 [2025-02-08 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:56:05 - End Time 2025-02-08 01:56:05 [2025-02-08 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426492', 'tblTempUsageDetail_20' ) start [2025-02-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426492', 'tblTempUsageDetail_20' ) end [2025-02-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426492', 'tblTempVendorCDR_20' ) start [2025-02-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426492', 'tblTempVendorCDR_20' ) end [2025-02-08 01:56:18] Production.INFO: ProcessCDR(1,14426492,1,1,2) [2025-02-08 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426492', 'tblTempUsageDetail_20' ) start [2025-02-08 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426492', 'tblTempUsageDetail_20' ) end [2025-02-08 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:56:22] Production.INFO: ==8750== Releasing lock... [2025-02-08 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:57:06 [end_date_ymd] => 2025-02-08 01:57:06 [RateCDR] => 1 ) [2025-02-08 01:57: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-02-07 22:57:06' and `end` < '2025-02-08 01:57: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-02-08 01:57:20] Production.INFO: count ==489 [2025-02-08 01:57:20] Production.ERROR: pbx CDR StartTime 2025-02-07 22:57:06 - End Time 2025-02-08 01:57:06 [2025-02-08 01:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426497', 'tblTempUsageDetail_20' ) start [2025-02-08 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426497', 'tblTempUsageDetail_20' ) end [2025-02-08 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426497', 'tblTempVendorCDR_20' ) start [2025-02-08 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426497', 'tblTempVendorCDR_20' ) end [2025-02-08 01:57:20] Production.INFO: ProcessCDR(1,14426497,1,1,2) [2025-02-08 01:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426497', 'tblTempUsageDetail_20' ) start [2025-02-08 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426497', 'tblTempUsageDetail_20' ) end [2025-02-08 01:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:57:24] Production.INFO: ==8834== Releasing lock... [2025-02-08 01:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:57:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:58:05 [end_date_ymd] => 2025-02-08 01:58:05 [RateCDR] => 1 ) [2025-02-08 01:58: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` >= '2025-02-07 22:58:05' and `end` < '2025-02-08 01:58: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 ,'') [2025-02-08 01:58:19] Production.INFO: count ==486 [2025-02-08 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-07 22:58:05 - End Time 2025-02-08 01:58:05 [2025-02-08 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426502', 'tblTempUsageDetail_20' ) start [2025-02-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426502', 'tblTempUsageDetail_20' ) end [2025-02-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426502', 'tblTempVendorCDR_20' ) start [2025-02-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426502', 'tblTempVendorCDR_20' ) end [2025-02-08 01:58:19] Production.INFO: ProcessCDR(1,14426502,1,1,2) [2025-02-08 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426502', 'tblTempUsageDetail_20' ) start [2025-02-08 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426502', 'tblTempUsageDetail_20' ) end [2025-02-08 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:58:22] Production.INFO: ==8917== Releasing lock... [2025-02-08 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:58:22] Production.INFO: 32 MB #Memory Used# [2025-02-08 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 22:59:05 [end_date_ymd] => 2025-02-08 01:59:05 [RateCDR] => 1 ) [2025-02-08 01:59: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` >= '2025-02-07 22:59:05' and `end` < '2025-02-08 01:59: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 ,'') [2025-02-08 01:59:18] Production.INFO: count ==484 [2025-02-08 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-07 22:59:05 - End Time 2025-02-08 01:59:05 [2025-02-08 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426507', 'tblTempUsageDetail_20' ) start [2025-02-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426507', 'tblTempUsageDetail_20' ) end [2025-02-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426507', 'tblTempVendorCDR_20' ) start [2025-02-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426507', 'tblTempVendorCDR_20' ) end [2025-02-08 01:59:18] Production.INFO: ProcessCDR(1,14426507,1,1,2) [2025-02-08 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426507', 'tblTempUsageDetail_20' ) start [2025-02-08 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426507', 'tblTempUsageDetail_20' ) end [2025-02-08 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 01:59:22] Production.INFO: ==8994== Releasing lock... [2025-02-08 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 01:59:22] Production.INFO: 32 MB #Memory Used# [2025-02-08 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:00:06 [end_date_ymd] => 2025-02-08 02:00:06 [RateCDR] => 1 ) [2025-02-08 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 23:00:06' and `end` < '2025-02-08 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 02:00:19] Production.INFO: count ==489 [2025-02-08 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:00:06 - End Time 2025-02-08 02:00:06 [2025-02-08 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426513', 'tblTempUsageDetail_20' ) start [2025-02-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426513', 'tblTempUsageDetail_20' ) end [2025-02-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426513', 'tblTempVendorCDR_20' ) start [2025-02-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426513', 'tblTempVendorCDR_20' ) end [2025-02-08 02:00:19] Production.INFO: ProcessCDR(1,14426513,1,1,2) [2025-02-08 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426513', 'tblTempUsageDetail_20' ) start [2025-02-08 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426513', 'tblTempUsageDetail_20' ) end [2025-02-08 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:00:24] Production.INFO: ==9078== Releasing lock... [2025-02-08 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:00:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:01:06 [end_date_ymd] => 2025-02-08 02:01:06 [RateCDR] => 1 ) [2025-02-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` >= '2025-02-07 23:01:06' and `end` < '2025-02-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 ,'') [2025-02-08 02:01:20] Production.INFO: count ==496 [2025-02-08 02:01:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:01:06 - End Time 2025-02-08 02:01:06 [2025-02-08 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426518', 'tblTempUsageDetail_20' ) start [2025-02-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426518', 'tblTempUsageDetail_20' ) end [2025-02-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426518', 'tblTempVendorCDR_20' ) start [2025-02-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426518', 'tblTempVendorCDR_20' ) end [2025-02-08 02:01:20] Production.INFO: ProcessCDR(1,14426518,1,1,2) [2025-02-08 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426518', 'tblTempUsageDetail_20' ) start [2025-02-08 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426518', 'tblTempUsageDetail_20' ) end [2025-02-08 02:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:01:24] Production.INFO: ==9258== Releasing lock... [2025-02-08 02:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:01:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:02:05 [end_date_ymd] => 2025-02-08 02:02:05 [RateCDR] => 1 ) [2025-02-08 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 23:02:05' and `end` < '2025-02-08 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 02:02:18] Production.INFO: count ==493 [2025-02-08 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:02:05 - End Time 2025-02-08 02:02:05 [2025-02-08 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426523', 'tblTempUsageDetail_20' ) start [2025-02-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426523', 'tblTempUsageDetail_20' ) end [2025-02-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426523', 'tblTempVendorCDR_20' ) start [2025-02-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426523', 'tblTempVendorCDR_20' ) end [2025-02-08 02:02:18] Production.INFO: ProcessCDR(1,14426523,1,1,2) [2025-02-08 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426523', 'tblTempUsageDetail_20' ) start [2025-02-08 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426523', 'tblTempUsageDetail_20' ) end [2025-02-08 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:02:22] Production.INFO: ==9336== Releasing lock... [2025-02-08 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:03:06 [end_date_ymd] => 2025-02-08 02:03:06 [RateCDR] => 1 ) [2025-02-08 02:03: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-02-07 23:03:06' and `end` < '2025-02-08 02:03: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-02-08 02:03:20] Production.INFO: count ==492 [2025-02-08 02:03:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:03:06 - End Time 2025-02-08 02:03:06 [2025-02-08 02:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426528', 'tblTempUsageDetail_20' ) start [2025-02-08 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426528', 'tblTempUsageDetail_20' ) end [2025-02-08 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426528', 'tblTempVendorCDR_20' ) start [2025-02-08 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426528', 'tblTempVendorCDR_20' ) end [2025-02-08 02:03:20] Production.INFO: ProcessCDR(1,14426528,1,1,2) [2025-02-08 02:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426528', 'tblTempUsageDetail_20' ) start [2025-02-08 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426528', 'tblTempUsageDetail_20' ) end [2025-02-08 02:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:03:24] Production.INFO: ==9420== Releasing lock... [2025-02-08 02:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:03:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:04:05 [end_date_ymd] => 2025-02-08 02:04:05 [RateCDR] => 1 ) [2025-02-08 02:04: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` >= '2025-02-07 23:04:05' and `end` < '2025-02-08 02:04: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 ,'') [2025-02-08 02:04:20] Production.INFO: count ==492 [2025-02-08 02:04:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:04:05 - End Time 2025-02-08 02:04:05 [2025-02-08 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426533', 'tblTempUsageDetail_20' ) start [2025-02-08 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426533', 'tblTempUsageDetail_20' ) end [2025-02-08 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426533', 'tblTempVendorCDR_20' ) start [2025-02-08 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426533', 'tblTempVendorCDR_20' ) end [2025-02-08 02:04:20] Production.INFO: ProcessCDR(1,14426533,1,1,2) [2025-02-08 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426533', 'tblTempUsageDetail_20' ) start [2025-02-08 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426533', 'tblTempUsageDetail_20' ) end [2025-02-08 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:04:23] Production.INFO: ==9510== Releasing lock... [2025-02-08 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:04:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:05:06 [end_date_ymd] => 2025-02-08 02:05:06 [RateCDR] => 1 ) [2025-02-08 02:05: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-02-07 23:05:06' and `end` < '2025-02-08 02:05: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-02-08 02:05:19] Production.INFO: count ==491 [2025-02-08 02:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:05:06 - End Time 2025-02-08 02:05:06 [2025-02-08 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426538', 'tblTempUsageDetail_20' ) start [2025-02-08 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426538', 'tblTempUsageDetail_20' ) end [2025-02-08 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426538', 'tblTempVendorCDR_20' ) start [2025-02-08 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426538', 'tblTempVendorCDR_20' ) end [2025-02-08 02:05:19] Production.INFO: ProcessCDR(1,14426538,1,1,2) [2025-02-08 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426538', 'tblTempUsageDetail_20' ) start [2025-02-08 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426538', 'tblTempUsageDetail_20' ) end [2025-02-08 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:05:22] Production.INFO: ==9592== Releasing lock... [2025-02-08 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:05:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:06:05 [end_date_ymd] => 2025-02-08 02:06:05 [RateCDR] => 1 ) [2025-02-08 02:06: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` >= '2025-02-07 23:06:05' and `end` < '2025-02-08 02:06: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 ,'') [2025-02-08 02:06:18] Production.INFO: count ==491 [2025-02-08 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:06:05 - End Time 2025-02-08 02:06:05 [2025-02-08 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426543', 'tblTempUsageDetail_20' ) start [2025-02-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426543', 'tblTempUsageDetail_20' ) end [2025-02-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426543', 'tblTempVendorCDR_20' ) start [2025-02-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426543', 'tblTempVendorCDR_20' ) end [2025-02-08 02:06:18] Production.INFO: ProcessCDR(1,14426543,1,1,2) [2025-02-08 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426543', 'tblTempUsageDetail_20' ) start [2025-02-08 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426543', 'tblTempUsageDetail_20' ) end [2025-02-08 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:06:22] Production.INFO: ==9666== Releasing lock... [2025-02-08 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:06:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:07:05 [end_date_ymd] => 2025-02-08 02:07:05 [RateCDR] => 1 ) [2025-02-08 02:07: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` >= '2025-02-07 23:07:05' and `end` < '2025-02-08 02:07: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 ,'') [2025-02-08 02:07:19] Production.INFO: count ==486 [2025-02-08 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:07:05 - End Time 2025-02-08 02:07:05 [2025-02-08 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426548', 'tblTempUsageDetail_20' ) start [2025-02-08 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426548', 'tblTempUsageDetail_20' ) end [2025-02-08 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426548', 'tblTempVendorCDR_20' ) start [2025-02-08 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426548', 'tblTempVendorCDR_20' ) end [2025-02-08 02:07:19] Production.INFO: ProcessCDR(1,14426548,1,1,2) [2025-02-08 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426548', 'tblTempUsageDetail_20' ) start [2025-02-08 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426548', 'tblTempUsageDetail_20' ) end [2025-02-08 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:07:23] Production.INFO: ==9742== Releasing lock... [2025-02-08 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:07:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:08:05 [end_date_ymd] => 2025-02-08 02:08:05 [RateCDR] => 1 ) [2025-02-08 02:08: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` >= '2025-02-07 23:08:05' and `end` < '2025-02-08 02:08: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 ,'') [2025-02-08 02:08:18] Production.INFO: count ==482 [2025-02-08 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:08:05 - End Time 2025-02-08 02:08:05 [2025-02-08 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426553', 'tblTempUsageDetail_20' ) start [2025-02-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426553', 'tblTempUsageDetail_20' ) end [2025-02-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426553', 'tblTempVendorCDR_20' ) start [2025-02-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426553', 'tblTempVendorCDR_20' ) end [2025-02-08 02:08:18] Production.INFO: ProcessCDR(1,14426553,1,1,2) [2025-02-08 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426553', 'tblTempUsageDetail_20' ) start [2025-02-08 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426553', 'tblTempUsageDetail_20' ) end [2025-02-08 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:08:21] Production.INFO: ==9820== Releasing lock... [2025-02-08 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:09:06 [end_date_ymd] => 2025-02-08 02:09:06 [RateCDR] => 1 ) [2025-02-08 02:09: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-02-07 23:09:06' and `end` < '2025-02-08 02:09: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-02-08 02:09:20] Production.INFO: count ==480 [2025-02-08 02:09:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:09:06 - End Time 2025-02-08 02:09:06 [2025-02-08 02:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426558', 'tblTempUsageDetail_20' ) start [2025-02-08 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426558', 'tblTempUsageDetail_20' ) end [2025-02-08 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426558', 'tblTempVendorCDR_20' ) start [2025-02-08 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426558', 'tblTempVendorCDR_20' ) end [2025-02-08 02:09:20] Production.INFO: ProcessCDR(1,14426558,1,1,2) [2025-02-08 02:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426558', 'tblTempUsageDetail_20' ) start [2025-02-08 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426558', 'tblTempUsageDetail_20' ) end [2025-02-08 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:09:23] Production.INFO: ==9896== Releasing lock... [2025-02-08 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:09:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:10:06 [end_date_ymd] => 2025-02-08 02:10:06 [RateCDR] => 1 ) [2025-02-08 02:10: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-02-07 23:10:06' and `end` < '2025-02-08 02:10: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-02-08 02:10:20] Production.INFO: count ==490 [2025-02-08 02:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:10:06 - End Time 2025-02-08 02:10:06 [2025-02-08 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426564', 'tblTempUsageDetail_20' ) start [2025-02-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426564', 'tblTempUsageDetail_20' ) end [2025-02-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426564', 'tblTempVendorCDR_20' ) start [2025-02-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426564', 'tblTempVendorCDR_20' ) end [2025-02-08 02:10:20] Production.INFO: ProcessCDR(1,14426564,1,1,2) [2025-02-08 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426564', 'tblTempUsageDetail_20' ) start [2025-02-08 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426564', 'tblTempUsageDetail_20' ) end [2025-02-08 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:10:24] Production.INFO: ==9973== Releasing lock... [2025-02-08 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:10:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:11:05 [end_date_ymd] => 2025-02-08 02:11:05 [RateCDR] => 1 ) [2025-02-08 02:11: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` >= '2025-02-07 23:11:05' and `end` < '2025-02-08 02:11: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 ,'') [2025-02-08 02:11:18] Production.INFO: count ==500 [2025-02-08 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:11:05 - End Time 2025-02-08 02:11:05 [2025-02-08 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426569', 'tblTempUsageDetail_20' ) start [2025-02-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426569', 'tblTempUsageDetail_20' ) end [2025-02-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426569', 'tblTempVendorCDR_20' ) start [2025-02-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426569', 'tblTempVendorCDR_20' ) end [2025-02-08 02:11:18] Production.INFO: ProcessCDR(1,14426569,1,1,2) [2025-02-08 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426569', 'tblTempUsageDetail_20' ) start [2025-02-08 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426569', 'tblTempUsageDetail_20' ) end [2025-02-08 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:11:21] Production.INFO: ==10090== Releasing lock... [2025-02-08 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:12:06 [end_date_ymd] => 2025-02-08 02:12:06 [RateCDR] => 1 ) [2025-02-08 02:12: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-02-07 23:12:06' and `end` < '2025-02-08 02:12: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-02-08 02:12:19] Production.INFO: count ==500 [2025-02-08 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:12:06 - End Time 2025-02-08 02:12:06 [2025-02-08 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426574', 'tblTempUsageDetail_20' ) start [2025-02-08 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426574', 'tblTempUsageDetail_20' ) end [2025-02-08 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426574', 'tblTempVendorCDR_20' ) start [2025-02-08 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426574', 'tblTempVendorCDR_20' ) end [2025-02-08 02:12:19] Production.INFO: ProcessCDR(1,14426574,1,1,2) [2025-02-08 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426574', 'tblTempUsageDetail_20' ) start [2025-02-08 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426574', 'tblTempUsageDetail_20' ) end [2025-02-08 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:12:23] Production.INFO: ==10164== Releasing lock... [2025-02-08 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:12:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:13:05 [end_date_ymd] => 2025-02-08 02:13:05 [RateCDR] => 1 ) [2025-02-08 02:13: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` >= '2025-02-07 23:13:05' and `end` < '2025-02-08 02:13: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 ,'') [2025-02-08 02:13:20] Production.INFO: count ==500 [2025-02-08 02:13:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:13:05 - End Time 2025-02-08 02:13:05 [2025-02-08 02:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426579', 'tblTempUsageDetail_20' ) start [2025-02-08 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426579', 'tblTempUsageDetail_20' ) end [2025-02-08 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426579', 'tblTempVendorCDR_20' ) start [2025-02-08 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426579', 'tblTempVendorCDR_20' ) end [2025-02-08 02:13:20] Production.INFO: ProcessCDR(1,14426579,1,1,2) [2025-02-08 02:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426579', 'tblTempUsageDetail_20' ) start [2025-02-08 02:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426579', 'tblTempUsageDetail_20' ) end [2025-02-08 02:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:13:24] Production.INFO: ==10237== Releasing lock... [2025-02-08 02:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:13:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:14:06 [end_date_ymd] => 2025-02-08 02:14:06 [RateCDR] => 1 ) [2025-02-08 02:14: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-02-07 23:14:06' and `end` < '2025-02-08 02:14: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-02-08 02:14:18] Production.INFO: count ==498 [2025-02-08 02:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:14:06 - End Time 2025-02-08 02:14:06 [2025-02-08 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426584', 'tblTempUsageDetail_20' ) start [2025-02-08 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426584', 'tblTempUsageDetail_20' ) end [2025-02-08 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426584', 'tblTempVendorCDR_20' ) start [2025-02-08 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426584', 'tblTempVendorCDR_20' ) end [2025-02-08 02:14:19] Production.INFO: ProcessCDR(1,14426584,1,1,2) [2025-02-08 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426584', 'tblTempUsageDetail_20' ) start [2025-02-08 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426584', 'tblTempUsageDetail_20' ) end [2025-02-08 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:14:22] Production.INFO: ==10310== Releasing lock... [2025-02-08 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:15:05 [end_date_ymd] => 2025-02-08 02:15:05 [RateCDR] => 1 ) [2025-02-08 02:15: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` >= '2025-02-07 23:15:05' and `end` < '2025-02-08 02:15: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 ,'') [2025-02-08 02:15:18] Production.INFO: count ==491 [2025-02-08 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:15:05 - End Time 2025-02-08 02:15:05 [2025-02-08 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426589', 'tblTempUsageDetail_20' ) start [2025-02-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426589', 'tblTempUsageDetail_20' ) end [2025-02-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426589', 'tblTempVendorCDR_20' ) start [2025-02-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426589', 'tblTempVendorCDR_20' ) end [2025-02-08 02:15:18] Production.INFO: ProcessCDR(1,14426589,1,1,2) [2025-02-08 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426589', 'tblTempUsageDetail_20' ) start [2025-02-08 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426589', 'tblTempUsageDetail_20' ) end [2025-02-08 02:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:15:23] Production.INFO: ==10384== Releasing lock... [2025-02-08 02:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:15:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:16:05 [end_date_ymd] => 2025-02-08 02:16:05 [RateCDR] => 1 ) [2025-02-08 02:16: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` >= '2025-02-07 23:16:05' and `end` < '2025-02-08 02:16: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 ,'') [2025-02-08 02:16:20] Production.INFO: count ==493 [2025-02-08 02:16:21] Production.ERROR: pbx CDR StartTime 2025-02-07 23:16:05 - End Time 2025-02-08 02:16:05 [2025-02-08 02:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426594', 'tblTempUsageDetail_20' ) start [2025-02-08 02:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426594', 'tblTempUsageDetail_20' ) end [2025-02-08 02:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426594', 'tblTempVendorCDR_20' ) start [2025-02-08 02:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426594', 'tblTempVendorCDR_20' ) end [2025-02-08 02:16:21] Production.INFO: ProcessCDR(1,14426594,1,1,2) [2025-02-08 02:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426594', 'tblTempUsageDetail_20' ) start [2025-02-08 02:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426594', 'tblTempUsageDetail_20' ) end [2025-02-08 02:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:16:24] Production.INFO: ==10461== Releasing lock... [2025-02-08 02:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:16:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:17:05 [end_date_ymd] => 2025-02-08 02:17:05 [RateCDR] => 1 ) [2025-02-08 02:17: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` >= '2025-02-07 23:17:05' and `end` < '2025-02-08 02:17: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 ,'') [2025-02-08 02:17:18] Production.INFO: count ==491 [2025-02-08 02:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:17:05 - End Time 2025-02-08 02:17:05 [2025-02-08 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426599', 'tblTempUsageDetail_20' ) start [2025-02-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426599', 'tblTempUsageDetail_20' ) end [2025-02-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426599', 'tblTempVendorCDR_20' ) start [2025-02-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426599', 'tblTempVendorCDR_20' ) end [2025-02-08 02:17:18] Production.INFO: ProcessCDR(1,14426599,1,1,2) [2025-02-08 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426599', 'tblTempUsageDetail_20' ) start [2025-02-08 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426599', 'tblTempUsageDetail_20' ) end [2025-02-08 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:17:22] Production.INFO: ==10536== Releasing lock... [2025-02-08 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:18:05 [end_date_ymd] => 2025-02-08 02:18:05 [RateCDR] => 1 ) [2025-02-08 02:18: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` >= '2025-02-07 23:18:05' and `end` < '2025-02-08 02:18: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 ,'') [2025-02-08 02:18:18] Production.INFO: count ==491 [2025-02-08 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:18:05 - End Time 2025-02-08 02:18:05 [2025-02-08 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426604', 'tblTempUsageDetail_20' ) start [2025-02-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426604', 'tblTempUsageDetail_20' ) end [2025-02-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426604', 'tblTempVendorCDR_20' ) start [2025-02-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426604', 'tblTempVendorCDR_20' ) end [2025-02-08 02:18:18] Production.INFO: ProcessCDR(1,14426604,1,1,2) [2025-02-08 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426604', 'tblTempUsageDetail_20' ) start [2025-02-08 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426604', 'tblTempUsageDetail_20' ) end [2025-02-08 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:18:21] Production.INFO: ==10614== Releasing lock... [2025-02-08 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:19:05 [end_date_ymd] => 2025-02-08 02:19:05 [RateCDR] => 1 ) [2025-02-08 02:19: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` >= '2025-02-07 23:19:05' and `end` < '2025-02-08 02:19: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 ,'') [2025-02-08 02:19:18] Production.INFO: count ==494 [2025-02-08 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:19:05 - End Time 2025-02-08 02:19:05 [2025-02-08 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426609', 'tblTempUsageDetail_20' ) start [2025-02-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426609', 'tblTempUsageDetail_20' ) end [2025-02-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426609', 'tblTempVendorCDR_20' ) start [2025-02-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426609', 'tblTempVendorCDR_20' ) end [2025-02-08 02:19:18] Production.INFO: ProcessCDR(1,14426609,1,1,2) [2025-02-08 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426609', 'tblTempUsageDetail_20' ) start [2025-02-08 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426609', 'tblTempUsageDetail_20' ) end [2025-02-08 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:19:21] Production.INFO: ==10690== Releasing lock... [2025-02-08 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:20:06 [end_date_ymd] => 2025-02-08 02:20:06 [RateCDR] => 1 ) [2025-02-08 02:20: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-02-07 23:20:06' and `end` < '2025-02-08 02:20: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-02-08 02:20:19] Production.INFO: count ==505 [2025-02-08 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:20:06 - End Time 2025-02-08 02:20:06 [2025-02-08 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426615', 'tblTempUsageDetail_20' ) start [2025-02-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426615', 'tblTempUsageDetail_20' ) end [2025-02-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426615', 'tblTempVendorCDR_20' ) start [2025-02-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426615', 'tblTempVendorCDR_20' ) end [2025-02-08 02:20:19] Production.INFO: ProcessCDR(1,14426615,1,1,2) [2025-02-08 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426615', 'tblTempUsageDetail_20' ) start [2025-02-08 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426615', 'tblTempUsageDetail_20' ) end [2025-02-08 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:20:23] Production.INFO: ==10766== Releasing lock... [2025-02-08 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:21:05 [end_date_ymd] => 2025-02-08 02:21:05 [RateCDR] => 1 ) [2025-02-08 02:21: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` >= '2025-02-07 23:21:05' and `end` < '2025-02-08 02:21: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 ,'') [2025-02-08 02:21:17] Production.INFO: count ==517 [2025-02-08 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-07 23:21:05 - End Time 2025-02-08 02:21:05 [2025-02-08 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426620', 'tblTempUsageDetail_20' ) start [2025-02-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426620', 'tblTempUsageDetail_20' ) end [2025-02-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426620', 'tblTempVendorCDR_20' ) start [2025-02-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426620', 'tblTempVendorCDR_20' ) end [2025-02-08 02:21:18] Production.INFO: ProcessCDR(1,14426620,1,1,2) [2025-02-08 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426620', 'tblTempUsageDetail_20' ) start [2025-02-08 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426620', 'tblTempUsageDetail_20' ) end [2025-02-08 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:21:21] Production.INFO: ==10842== Releasing lock... [2025-02-08 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:22:06 [end_date_ymd] => 2025-02-08 02:22:06 [RateCDR] => 1 ) [2025-02-08 02:22: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-02-07 23:22:06' and `end` < '2025-02-08 02:22: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-02-08 02:22:21] Production.INFO: count ==516 [2025-02-08 02:22:21] Production.ERROR: pbx CDR StartTime 2025-02-07 23:22:06 - End Time 2025-02-08 02:22:06 [2025-02-08 02:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426625', 'tblTempUsageDetail_20' ) start [2025-02-08 02:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426625', 'tblTempUsageDetail_20' ) end [2025-02-08 02:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426625', 'tblTempVendorCDR_20' ) start [2025-02-08 02:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426625', 'tblTempVendorCDR_20' ) end [2025-02-08 02:22:21] Production.INFO: ProcessCDR(1,14426625,1,1,2) [2025-02-08 02:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426625', 'tblTempUsageDetail_20' ) start [2025-02-08 02:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426625', 'tblTempUsageDetail_20' ) end [2025-02-08 02:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:22:25] Production.INFO: ==10915== Releasing lock... [2025-02-08 02:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:22:25] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:23:05 [end_date_ymd] => 2025-02-08 02:23:05 [RateCDR] => 1 ) [2025-02-08 02:23: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` >= '2025-02-07 23:23:05' and `end` < '2025-02-08 02:23: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 ,'') [2025-02-08 02:23:17] Production.INFO: count ==515 [2025-02-08 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:23:05 - End Time 2025-02-08 02:23:05 [2025-02-08 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426630', 'tblTempUsageDetail_20' ) start [2025-02-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426630', 'tblTempUsageDetail_20' ) end [2025-02-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426630', 'tblTempVendorCDR_20' ) start [2025-02-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426630', 'tblTempVendorCDR_20' ) end [2025-02-08 02:23:18] Production.INFO: ProcessCDR(1,14426630,1,1,2) [2025-02-08 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426630', 'tblTempUsageDetail_20' ) start [2025-02-08 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426630', 'tblTempUsageDetail_20' ) end [2025-02-08 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:23:21] Production.INFO: ==10992== Releasing lock... [2025-02-08 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:24:05 [end_date_ymd] => 2025-02-08 02:24:05 [RateCDR] => 1 ) [2025-02-08 02:24: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` >= '2025-02-07 23:24:05' and `end` < '2025-02-08 02:24: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 ,'') [2025-02-08 02:24:20] Production.INFO: count ==519 [2025-02-08 02:24:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:24:05 - End Time 2025-02-08 02:24:05 [2025-02-08 02:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426635', 'tblTempUsageDetail_20' ) start [2025-02-08 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426635', 'tblTempUsageDetail_20' ) end [2025-02-08 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426635', 'tblTempVendorCDR_20' ) start [2025-02-08 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426635', 'tblTempVendorCDR_20' ) end [2025-02-08 02:24:20] Production.INFO: ProcessCDR(1,14426635,1,1,2) [2025-02-08 02:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426635', 'tblTempUsageDetail_20' ) start [2025-02-08 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426635', 'tblTempUsageDetail_20' ) end [2025-02-08 02:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:24:23] Production.INFO: ==11067== Releasing lock... [2025-02-08 02:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:25:05 [end_date_ymd] => 2025-02-08 02:25:05 [RateCDR] => 1 ) [2025-02-08 02:25: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` >= '2025-02-07 23:25:05' and `end` < '2025-02-08 02:25: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 ,'') [2025-02-08 02:25:18] Production.INFO: count ==516 [2025-02-08 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:25:05 - End Time 2025-02-08 02:25:05 [2025-02-08 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426640', 'tblTempUsageDetail_20' ) start [2025-02-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426640', 'tblTempUsageDetail_20' ) end [2025-02-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426640', 'tblTempVendorCDR_20' ) start [2025-02-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426640', 'tblTempVendorCDR_20' ) end [2025-02-08 02:25:18] Production.INFO: ProcessCDR(1,14426640,1,1,2) [2025-02-08 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426640', 'tblTempUsageDetail_20' ) start [2025-02-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426640', 'tblTempUsageDetail_20' ) end [2025-02-08 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:25:21] Production.INFO: ==11141== Releasing lock... [2025-02-08 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:26:05 [end_date_ymd] => 2025-02-08 02:26:05 [RateCDR] => 1 ) [2025-02-08 02:26: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` >= '2025-02-07 23:26:05' and `end` < '2025-02-08 02:26: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 ,'') [2025-02-08 02:26:18] Production.INFO: count ==516 [2025-02-08 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:26:05 - End Time 2025-02-08 02:26:05 [2025-02-08 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426645', 'tblTempUsageDetail_20' ) start [2025-02-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426645', 'tblTempUsageDetail_20' ) end [2025-02-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426645', 'tblTempVendorCDR_20' ) start [2025-02-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426645', 'tblTempVendorCDR_20' ) end [2025-02-08 02:26:19] Production.INFO: ProcessCDR(1,14426645,1,1,2) [2025-02-08 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426645', 'tblTempUsageDetail_20' ) start [2025-02-08 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426645', 'tblTempUsageDetail_20' ) end [2025-02-08 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:26:22] Production.INFO: ==11244== Releasing lock... [2025-02-08 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:26:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:27:05 [end_date_ymd] => 2025-02-08 02:27:05 [RateCDR] => 1 ) [2025-02-08 02:27: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` >= '2025-02-07 23:27:05' and `end` < '2025-02-08 02:27: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 ,'') [2025-02-08 02:27:18] Production.INFO: count ==516 [2025-02-08 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:27:05 - End Time 2025-02-08 02:27:05 [2025-02-08 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426650', 'tblTempUsageDetail_20' ) start [2025-02-08 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426650', 'tblTempUsageDetail_20' ) end [2025-02-08 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426650', 'tblTempVendorCDR_20' ) start [2025-02-08 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426650', 'tblTempVendorCDR_20' ) end [2025-02-08 02:27:18] Production.INFO: ProcessCDR(1,14426650,1,1,2) [2025-02-08 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426650', 'tblTempUsageDetail_20' ) start [2025-02-08 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426650', 'tblTempUsageDetail_20' ) end [2025-02-08 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:27:22] Production.INFO: ==11384== Releasing lock... [2025-02-08 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:28:05 [end_date_ymd] => 2025-02-08 02:28:05 [RateCDR] => 1 ) [2025-02-08 02:28: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` >= '2025-02-07 23:28:05' and `end` < '2025-02-08 02:28: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 ,'') [2025-02-08 02:28:20] Production.INFO: count ==515 [2025-02-08 02:28:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:28:05 - End Time 2025-02-08 02:28:05 [2025-02-08 02:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426655', 'tblTempUsageDetail_20' ) start [2025-02-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426655', 'tblTempUsageDetail_20' ) end [2025-02-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426655', 'tblTempVendorCDR_20' ) start [2025-02-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426655', 'tblTempVendorCDR_20' ) end [2025-02-08 02:28:20] Production.INFO: ProcessCDR(1,14426655,1,1,2) [2025-02-08 02:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426655', 'tblTempUsageDetail_20' ) start [2025-02-08 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426655', 'tblTempUsageDetail_20' ) end [2025-02-08 02:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:28:23] Production.INFO: ==11491== Releasing lock... [2025-02-08 02:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:28:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:29:06 [end_date_ymd] => 2025-02-08 02:29:06 [RateCDR] => 1 ) [2025-02-08 02:29: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-02-07 23:29:06' and `end` < '2025-02-08 02:29: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-02-08 02:29:18] Production.INFO: count ==516 [2025-02-08 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:29:06 - End Time 2025-02-08 02:29:06 [2025-02-08 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426660', 'tblTempUsageDetail_20' ) start [2025-02-08 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426660', 'tblTempUsageDetail_20' ) end [2025-02-08 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426660', 'tblTempVendorCDR_20' ) start [2025-02-08 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426660', 'tblTempVendorCDR_20' ) end [2025-02-08 02:29:19] Production.INFO: ProcessCDR(1,14426660,1,1,2) [2025-02-08 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426660', 'tblTempUsageDetail_20' ) start [2025-02-08 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426660', 'tblTempUsageDetail_20' ) end [2025-02-08 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:29:22] Production.INFO: ==11598== Releasing lock... [2025-02-08 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:30:06 [end_date_ymd] => 2025-02-08 02:30:06 [RateCDR] => 1 ) [2025-02-08 02:30: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-02-07 23:30:06' and `end` < '2025-02-08 02:30: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-02-08 02:30:19] Production.INFO: count ==523 [2025-02-08 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:30:06 - End Time 2025-02-08 02:30:06 [2025-02-08 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426665', 'tblTempUsageDetail_20' ) start [2025-02-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426665', 'tblTempUsageDetail_20' ) end [2025-02-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426665', 'tblTempVendorCDR_20' ) start [2025-02-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426665', 'tblTempVendorCDR_20' ) end [2025-02-08 02:30:19] Production.INFO: ProcessCDR(1,14426665,1,1,2) [2025-02-08 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426665', 'tblTempUsageDetail_20' ) start [2025-02-08 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426665', 'tblTempUsageDetail_20' ) end [2025-02-08 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:30:23] Production.INFO: ==11706== Releasing lock... [2025-02-08 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:30:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:31:05 [end_date_ymd] => 2025-02-08 02:31:05 [RateCDR] => 1 ) [2025-02-08 02:31: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` >= '2025-02-07 23:31:05' and `end` < '2025-02-08 02:31: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 ,'') [2025-02-08 02:31:21] Production.INFO: count ==534 [2025-02-08 02:31:21] Production.ERROR: pbx CDR StartTime 2025-02-07 23:31:05 - End Time 2025-02-08 02:31:05 [2025-02-08 02:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426671', 'tblTempUsageDetail_20' ) start [2025-02-08 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426671', 'tblTempUsageDetail_20' ) end [2025-02-08 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426671', 'tblTempVendorCDR_20' ) start [2025-02-08 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426671', 'tblTempVendorCDR_20' ) end [2025-02-08 02:31:21] Production.INFO: ProcessCDR(1,14426671,1,1,2) [2025-02-08 02:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426671', 'tblTempUsageDetail_20' ) start [2025-02-08 02:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426671', 'tblTempUsageDetail_20' ) end [2025-02-08 02:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:31:24] Production.INFO: ==11815== Releasing lock... [2025-02-08 02:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:31:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:32:05 [end_date_ymd] => 2025-02-08 02:32:05 [RateCDR] => 1 ) [2025-02-08 02:32: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` >= '2025-02-07 23:32:05' and `end` < '2025-02-08 02:32: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 ,'') [2025-02-08 02:32:18] Production.INFO: count ==534 [2025-02-08 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:32:05 - End Time 2025-02-08 02:32:05 [2025-02-08 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426676', 'tblTempUsageDetail_20' ) start [2025-02-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426676', 'tblTempUsageDetail_20' ) end [2025-02-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426676', 'tblTempVendorCDR_20' ) start [2025-02-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426676', 'tblTempVendorCDR_20' ) end [2025-02-08 02:32:18] Production.INFO: ProcessCDR(1,14426676,1,1,2) [2025-02-08 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426676', 'tblTempUsageDetail_20' ) start [2025-02-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426676', 'tblTempUsageDetail_20' ) end [2025-02-08 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:32:21] Production.INFO: ==11920== Releasing lock... [2025-02-08 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:33:06 [end_date_ymd] => 2025-02-08 02:33:06 [RateCDR] => 1 ) [2025-02-08 02:33: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-02-07 23:33:06' and `end` < '2025-02-08 02:33: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-02-08 02:33:20] Production.INFO: count ==537 [2025-02-08 02:33:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:33:06 - End Time 2025-02-08 02:33:06 [2025-02-08 02:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426681', 'tblTempUsageDetail_20' ) start [2025-02-08 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426681', 'tblTempUsageDetail_20' ) end [2025-02-08 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426681', 'tblTempVendorCDR_20' ) start [2025-02-08 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426681', 'tblTempVendorCDR_20' ) end [2025-02-08 02:33:20] Production.INFO: ProcessCDR(1,14426681,1,1,2) [2025-02-08 02:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426681', 'tblTempUsageDetail_20' ) start [2025-02-08 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426681', 'tblTempUsageDetail_20' ) end [2025-02-08 02:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:33:23] Production.INFO: ==12020== Releasing lock... [2025-02-08 02:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:33:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:34:05 [end_date_ymd] => 2025-02-08 02:34:05 [RateCDR] => 1 ) [2025-02-08 02:34: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` >= '2025-02-07 23:34:05' and `end` < '2025-02-08 02:34: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 ,'') [2025-02-08 02:34:19] Production.INFO: count ==537 [2025-02-08 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:34:05 - End Time 2025-02-08 02:34:05 [2025-02-08 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426686', 'tblTempUsageDetail_20' ) start [2025-02-08 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426686', 'tblTempUsageDetail_20' ) end [2025-02-08 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426686', 'tblTempVendorCDR_20' ) start [2025-02-08 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426686', 'tblTempVendorCDR_20' ) end [2025-02-08 02:34:19] Production.INFO: ProcessCDR(1,14426686,1,1,2) [2025-02-08 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426686', 'tblTempUsageDetail_20' ) start [2025-02-08 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426686', 'tblTempUsageDetail_20' ) end [2025-02-08 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:34:22] Production.INFO: ==12118== Releasing lock... [2025-02-08 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:35:06 [end_date_ymd] => 2025-02-08 02:35:06 [RateCDR] => 1 ) [2025-02-08 02:35: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-02-07 23:35:06' and `end` < '2025-02-08 02:35: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-02-08 02:35:19] Production.INFO: count ==541 [2025-02-08 02:35:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:35:06 - End Time 2025-02-08 02:35:06 [2025-02-08 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426691', 'tblTempUsageDetail_20' ) start [2025-02-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426691', 'tblTempUsageDetail_20' ) end [2025-02-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426691', 'tblTempVendorCDR_20' ) start [2025-02-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426691', 'tblTempVendorCDR_20' ) end [2025-02-08 02:35:19] Production.INFO: ProcessCDR(1,14426691,1,1,2) [2025-02-08 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426691', 'tblTempUsageDetail_20' ) start [2025-02-08 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426691', 'tblTempUsageDetail_20' ) end [2025-02-08 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:35:22] Production.INFO: ==12209== Releasing lock... [2025-02-08 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:35:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:36:05 [end_date_ymd] => 2025-02-08 02:36:05 [RateCDR] => 1 ) [2025-02-08 02:36: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` >= '2025-02-07 23:36:05' and `end` < '2025-02-08 02:36: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 ,'') [2025-02-08 02:36:18] Production.INFO: count ==540 [2025-02-08 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:36:05 - End Time 2025-02-08 02:36:05 [2025-02-08 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426696', 'tblTempUsageDetail_20' ) start [2025-02-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426696', 'tblTempUsageDetail_20' ) end [2025-02-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426696', 'tblTempVendorCDR_20' ) start [2025-02-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426696', 'tblTempVendorCDR_20' ) end [2025-02-08 02:36:18] Production.INFO: ProcessCDR(1,14426696,1,1,2) [2025-02-08 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426696', 'tblTempUsageDetail_20' ) start [2025-02-08 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426696', 'tblTempUsageDetail_20' ) end [2025-02-08 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:36:22] Production.INFO: ==12312== Releasing lock... [2025-02-08 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:36:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:37:05 [end_date_ymd] => 2025-02-08 02:37:05 [RateCDR] => 1 ) [2025-02-08 02:37: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` >= '2025-02-07 23:37:05' and `end` < '2025-02-08 02:37: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 ,'') [2025-02-08 02:37:19] Production.INFO: count ==537 [2025-02-08 02:37:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:37:05 - End Time 2025-02-08 02:37:05 [2025-02-08 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426701', 'tblTempUsageDetail_20' ) start [2025-02-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426701', 'tblTempUsageDetail_20' ) end [2025-02-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426701', 'tblTempVendorCDR_20' ) start [2025-02-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426701', 'tblTempVendorCDR_20' ) end [2025-02-08 02:37:19] Production.INFO: ProcessCDR(1,14426701,1,1,2) [2025-02-08 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426701', 'tblTempUsageDetail_20' ) start [2025-02-08 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426701', 'tblTempUsageDetail_20' ) end [2025-02-08 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:37:22] Production.INFO: ==12415== Releasing lock... [2025-02-08 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:38:05 [end_date_ymd] => 2025-02-08 02:38:05 [RateCDR] => 1 ) [2025-02-08 02:38: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` >= '2025-02-07 23:38:05' and `end` < '2025-02-08 02:38: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 ,'') [2025-02-08 02:38:18] Production.INFO: count ==537 [2025-02-08 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:38:05 - End Time 2025-02-08 02:38:05 [2025-02-08 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426706', 'tblTempUsageDetail_20' ) start [2025-02-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426706', 'tblTempUsageDetail_20' ) end [2025-02-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426706', 'tblTempVendorCDR_20' ) start [2025-02-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426706', 'tblTempVendorCDR_20' ) end [2025-02-08 02:38:18] Production.INFO: ProcessCDR(1,14426706,1,1,2) [2025-02-08 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426706', 'tblTempUsageDetail_20' ) start [2025-02-08 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426706', 'tblTempUsageDetail_20' ) end [2025-02-08 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:38:21] Production.INFO: ==12521== Releasing lock... [2025-02-08 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:39:06 [end_date_ymd] => 2025-02-08 02:39:06 [RateCDR] => 1 ) [2025-02-08 02:39: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-02-07 23:39:06' and `end` < '2025-02-08 02:39: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-02-08 02:39:19] Production.INFO: count ==535 [2025-02-08 02:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:39:06 - End Time 2025-02-08 02:39:06 [2025-02-08 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426711', 'tblTempUsageDetail_20' ) start [2025-02-08 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426711', 'tblTempUsageDetail_20' ) end [2025-02-08 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426711', 'tblTempVendorCDR_20' ) start [2025-02-08 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426711', 'tblTempVendorCDR_20' ) end [2025-02-08 02:39:19] Production.INFO: ProcessCDR(1,14426711,1,1,2) [2025-02-08 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426711', 'tblTempUsageDetail_20' ) start [2025-02-08 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426711', 'tblTempUsageDetail_20' ) end [2025-02-08 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:39:22] Production.INFO: ==12611== Releasing lock... [2025-02-08 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:40:05 [end_date_ymd] => 2025-02-08 02:40:05 [RateCDR] => 1 ) [2025-02-08 02:40: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` >= '2025-02-07 23:40:05' and `end` < '2025-02-08 02:40: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 ,'') [2025-02-08 02:40:19] Production.INFO: count ==541 [2025-02-08 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:40:05 - End Time 2025-02-08 02:40:05 [2025-02-08 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426716', 'tblTempUsageDetail_20' ) start [2025-02-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426716', 'tblTempUsageDetail_20' ) end [2025-02-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426716', 'tblTempVendorCDR_20' ) start [2025-02-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426716', 'tblTempVendorCDR_20' ) end [2025-02-08 02:40:19] Production.INFO: ProcessCDR(1,14426716,1,1,2) [2025-02-08 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426716', 'tblTempUsageDetail_20' ) start [2025-02-08 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426716', 'tblTempUsageDetail_20' ) end [2025-02-08 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:40:22] Production.INFO: ==12683== Releasing lock... [2025-02-08 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:41:05 [end_date_ymd] => 2025-02-08 02:41:05 [RateCDR] => 1 ) [2025-02-08 02:41: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` >= '2025-02-07 23:41:05' and `end` < '2025-02-08 02:41: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 ,'') [2025-02-08 02:41:18] Production.INFO: count ==539 [2025-02-08 02:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:41:05 - End Time 2025-02-08 02:41:05 [2025-02-08 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426722', 'tblTempUsageDetail_20' ) start [2025-02-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426722', 'tblTempUsageDetail_20' ) end [2025-02-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426722', 'tblTempVendorCDR_20' ) start [2025-02-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426722', 'tblTempVendorCDR_20' ) end [2025-02-08 02:41:18] Production.INFO: ProcessCDR(1,14426722,1,1,2) [2025-02-08 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426722', 'tblTempUsageDetail_20' ) start [2025-02-08 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426722', 'tblTempUsageDetail_20' ) end [2025-02-08 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:41:21] Production.INFO: ==12759== Releasing lock... [2025-02-08 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:42:06 [end_date_ymd] => 2025-02-08 02:42:06 [RateCDR] => 1 ) [2025-02-08 02:42: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-02-07 23:42:06' and `end` < '2025-02-08 02:42: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-02-08 02:42:19] Production.INFO: count ==539 [2025-02-08 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:42:06 - End Time 2025-02-08 02:42:06 [2025-02-08 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426727', 'tblTempUsageDetail_20' ) start [2025-02-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426727', 'tblTempUsageDetail_20' ) end [2025-02-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426727', 'tblTempVendorCDR_20' ) start [2025-02-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426727', 'tblTempVendorCDR_20' ) end [2025-02-08 02:42:19] Production.INFO: ProcessCDR(1,14426727,1,1,2) [2025-02-08 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426727', 'tblTempUsageDetail_20' ) start [2025-02-08 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426727', 'tblTempUsageDetail_20' ) end [2025-02-08 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:42:22] Production.INFO: ==12871== Releasing lock... [2025-02-08 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:43:05 [end_date_ymd] => 2025-02-08 02:43:05 [RateCDR] => 1 ) [2025-02-08 02:43: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` >= '2025-02-07 23:43:05' and `end` < '2025-02-08 02:43: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 ,'') [2025-02-08 02:43:18] Production.INFO: count ==529 [2025-02-08 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:43:05 - End Time 2025-02-08 02:43:05 [2025-02-08 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426732', 'tblTempUsageDetail_20' ) start [2025-02-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426732', 'tblTempUsageDetail_20' ) end [2025-02-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426732', 'tblTempVendorCDR_20' ) start [2025-02-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426732', 'tblTempVendorCDR_20' ) end [2025-02-08 02:43:18] Production.INFO: ProcessCDR(1,14426732,1,1,2) [2025-02-08 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426732', 'tblTempUsageDetail_20' ) start [2025-02-08 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426732', 'tblTempUsageDetail_20' ) end [2025-02-08 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:43:22] Production.INFO: ==12945== Releasing lock... [2025-02-08 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:44:05 [end_date_ymd] => 2025-02-08 02:44:05 [RateCDR] => 1 ) [2025-02-08 02:44: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` >= '2025-02-07 23:44:05' and `end` < '2025-02-08 02:44: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 ,'') [2025-02-08 02:44:19] Production.INFO: count ==526 [2025-02-08 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:44:05 - End Time 2025-02-08 02:44:05 [2025-02-08 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426737', 'tblTempUsageDetail_20' ) start [2025-02-08 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426737', 'tblTempUsageDetail_20' ) end [2025-02-08 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426737', 'tblTempVendorCDR_20' ) start [2025-02-08 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426737', 'tblTempVendorCDR_20' ) end [2025-02-08 02:44:19] Production.INFO: ProcessCDR(1,14426737,1,1,2) [2025-02-08 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426737', 'tblTempUsageDetail_20' ) start [2025-02-08 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426737', 'tblTempUsageDetail_20' ) end [2025-02-08 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:44:23] Production.INFO: ==13016== Releasing lock... [2025-02-08 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:44:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:45:05 [end_date_ymd] => 2025-02-08 02:45:05 [RateCDR] => 1 ) [2025-02-08 02:45: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` >= '2025-02-07 23:45:05' and `end` < '2025-02-08 02:45: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 ,'') [2025-02-08 02:45:18] Production.INFO: count ==522 [2025-02-08 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:45:05 - End Time 2025-02-08 02:45:05 [2025-02-08 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426742', 'tblTempUsageDetail_20' ) start [2025-02-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426742', 'tblTempUsageDetail_20' ) end [2025-02-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426742', 'tblTempVendorCDR_20' ) start [2025-02-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426742', 'tblTempVendorCDR_20' ) end [2025-02-08 02:45:18] Production.INFO: ProcessCDR(1,14426742,1,1,2) [2025-02-08 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426742', 'tblTempUsageDetail_20' ) start [2025-02-08 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426742', 'tblTempUsageDetail_20' ) end [2025-02-08 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:45:21] Production.INFO: ==13087== Releasing lock... [2025-02-08 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:46:06 [end_date_ymd] => 2025-02-08 02:46:06 [RateCDR] => 1 ) [2025-02-08 02:46: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-02-07 23:46:06' and `end` < '2025-02-08 02:46: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-02-08 02:46:19] Production.INFO: count ==520 [2025-02-08 02:46:20] Production.ERROR: pbx CDR StartTime 2025-02-07 23:46:06 - End Time 2025-02-08 02:46:06 [2025-02-08 02:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426747', 'tblTempUsageDetail_20' ) start [2025-02-08 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426747', 'tblTempUsageDetail_20' ) end [2025-02-08 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426747', 'tblTempVendorCDR_20' ) start [2025-02-08 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426747', 'tblTempVendorCDR_20' ) end [2025-02-08 02:46:20] Production.INFO: ProcessCDR(1,14426747,1,1,2) [2025-02-08 02:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426747', 'tblTempUsageDetail_20' ) start [2025-02-08 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426747', 'tblTempUsageDetail_20' ) end [2025-02-08 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:46:23] Production.INFO: ==13160== Releasing lock... [2025-02-08 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:46:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:47:05 [end_date_ymd] => 2025-02-08 02:47:05 [RateCDR] => 1 ) [2025-02-08 02:47: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` >= '2025-02-07 23:47:05' and `end` < '2025-02-08 02:47: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 ,'') [2025-02-08 02:47:18] Production.INFO: count ==520 [2025-02-08 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:47:05 - End Time 2025-02-08 02:47:05 [2025-02-08 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426752', 'tblTempUsageDetail_20' ) start [2025-02-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426752', 'tblTempUsageDetail_20' ) end [2025-02-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426752', 'tblTempVendorCDR_20' ) start [2025-02-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426752', 'tblTempVendorCDR_20' ) end [2025-02-08 02:47:18] Production.INFO: ProcessCDR(1,14426752,1,1,2) [2025-02-08 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426752', 'tblTempUsageDetail_20' ) start [2025-02-08 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426752', 'tblTempUsageDetail_20' ) end [2025-02-08 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:47:21] Production.INFO: ==13237== Releasing lock... [2025-02-08 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:48:05 [end_date_ymd] => 2025-02-08 02:48:05 [RateCDR] => 1 ) [2025-02-08 02:48: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` >= '2025-02-07 23:48:05' and `end` < '2025-02-08 02:48: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 ,'') [2025-02-08 02:48:18] Production.INFO: count ==520 [2025-02-08 02:48:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:48:05 - End Time 2025-02-08 02:48:05 [2025-02-08 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426757', 'tblTempUsageDetail_20' ) start [2025-02-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426757', 'tblTempUsageDetail_20' ) end [2025-02-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426757', 'tblTempVendorCDR_20' ) start [2025-02-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426757', 'tblTempVendorCDR_20' ) end [2025-02-08 02:48:18] Production.INFO: ProcessCDR(1,14426757,1,1,2) [2025-02-08 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426757', 'tblTempUsageDetail_20' ) start [2025-02-08 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426757', 'tblTempUsageDetail_20' ) end [2025-02-08 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:48:21] Production.INFO: ==13307== Releasing lock... [2025-02-08 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:49:05 [end_date_ymd] => 2025-02-08 02:49:05 [RateCDR] => 1 ) [2025-02-08 02:49: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` >= '2025-02-07 23:49:05' and `end` < '2025-02-08 02:49: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 ,'') [2025-02-08 02:49:18] Production.INFO: count ==524 [2025-02-08 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:49:05 - End Time 2025-02-08 02:49:05 [2025-02-08 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426762', 'tblTempUsageDetail_20' ) start [2025-02-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426762', 'tblTempUsageDetail_20' ) end [2025-02-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426762', 'tblTempVendorCDR_20' ) start [2025-02-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426762', 'tblTempVendorCDR_20' ) end [2025-02-08 02:49:18] Production.INFO: ProcessCDR(1,14426762,1,1,2) [2025-02-08 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426762', 'tblTempUsageDetail_20' ) start [2025-02-08 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426762', 'tblTempUsageDetail_20' ) end [2025-02-08 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:49:21] Production.INFO: ==13377== Releasing lock... [2025-02-08 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:50:06 [end_date_ymd] => 2025-02-08 02:50:06 [RateCDR] => 1 ) [2025-02-08 02:50: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-02-07 23:50:06' and `end` < '2025-02-08 02:50: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-02-08 02:50:19] Production.INFO: count ==534 [2025-02-08 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:50:06 - End Time 2025-02-08 02:50:06 [2025-02-08 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426768', 'tblTempUsageDetail_20' ) start [2025-02-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426768', 'tblTempUsageDetail_20' ) end [2025-02-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426768', 'tblTempVendorCDR_20' ) start [2025-02-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426768', 'tblTempVendorCDR_20' ) end [2025-02-08 02:50:19] Production.INFO: ProcessCDR(1,14426768,1,1,2) [2025-02-08 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426768', 'tblTempUsageDetail_20' ) start [2025-02-08 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426768', 'tblTempUsageDetail_20' ) end [2025-02-08 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:50:22] Production.INFO: ==13451== Releasing lock... [2025-02-08 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:51:04 [end_date_ymd] => 2025-02-08 02:51:04 [RateCDR] => 1 ) [2025-02-08 02:51:04] 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-02-07 23:51:04' and `end` < '2025-02-08 02:51:04' 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-02-08 02:51:17] Production.INFO: count ==542 [2025-02-08 02:51:17] Production.ERROR: pbx CDR StartTime 2025-02-07 23:51:04 - End Time 2025-02-08 02:51:04 [2025-02-08 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426773', 'tblTempUsageDetail_20' ) start [2025-02-08 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426773', 'tblTempUsageDetail_20' ) end [2025-02-08 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426773', 'tblTempVendorCDR_20' ) start [2025-02-08 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426773', 'tblTempVendorCDR_20' ) end [2025-02-08 02:51:17] Production.INFO: ProcessCDR(1,14426773,1,1,2) [2025-02-08 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426773', 'tblTempUsageDetail_20' ) start [2025-02-08 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426773', 'tblTempUsageDetail_20' ) end [2025-02-08 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:51:22] Production.INFO: ==13525== Releasing lock... [2025-02-08 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:52:05 [end_date_ymd] => 2025-02-08 02:52:05 [RateCDR] => 1 ) [2025-02-08 02:52: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` >= '2025-02-07 23:52:05' and `end` < '2025-02-08 02:52: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 ,'') [2025-02-08 02:52:19] Production.INFO: count ==539 [2025-02-08 02:52:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:52:05 - End Time 2025-02-08 02:52:05 [2025-02-08 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426778', 'tblTempUsageDetail_20' ) start [2025-02-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426778', 'tblTempUsageDetail_20' ) end [2025-02-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426778', 'tblTempVendorCDR_20' ) start [2025-02-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426778', 'tblTempVendorCDR_20' ) end [2025-02-08 02:52:19] Production.INFO: ProcessCDR(1,14426778,1,1,2) [2025-02-08 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426778', 'tblTempUsageDetail_20' ) start [2025-02-08 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426778', 'tblTempUsageDetail_20' ) end [2025-02-08 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:52:22] Production.INFO: ==13599== Releasing lock... [2025-02-08 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:53:06 [end_date_ymd] => 2025-02-08 02:53:06 [RateCDR] => 1 ) [2025-02-08 02:53: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-02-07 23:53:06' and `end` < '2025-02-08 02:53: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-02-08 02:53:19] Production.INFO: count ==543 [2025-02-08 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:53:06 - End Time 2025-02-08 02:53:06 [2025-02-08 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426783', 'tblTempUsageDetail_20' ) start [2025-02-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426783', 'tblTempUsageDetail_20' ) end [2025-02-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426783', 'tblTempVendorCDR_20' ) start [2025-02-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426783', 'tblTempVendorCDR_20' ) end [2025-02-08 02:53:19] Production.INFO: ProcessCDR(1,14426783,1,1,2) [2025-02-08 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426783', 'tblTempUsageDetail_20' ) start [2025-02-08 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426783', 'tblTempUsageDetail_20' ) end [2025-02-08 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:53:22] Production.INFO: ==13670== Releasing lock... [2025-02-08 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:54:05 [end_date_ymd] => 2025-02-08 02:54:05 [RateCDR] => 1 ) [2025-02-08 02:54: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` >= '2025-02-07 23:54:05' and `end` < '2025-02-08 02:54: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 ,'') [2025-02-08 02:54:19] Production.INFO: count ==543 [2025-02-08 02:54:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:54:05 - End Time 2025-02-08 02:54:05 [2025-02-08 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426788', 'tblTempUsageDetail_20' ) start [2025-02-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426788', 'tblTempUsageDetail_20' ) end [2025-02-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426788', 'tblTempVendorCDR_20' ) start [2025-02-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426788', 'tblTempVendorCDR_20' ) end [2025-02-08 02:54:19] Production.INFO: ProcessCDR(1,14426788,1,1,2) [2025-02-08 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426788', 'tblTempUsageDetail_20' ) start [2025-02-08 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426788', 'tblTempUsageDetail_20' ) end [2025-02-08 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:54:22] Production.INFO: ==13741== Releasing lock... [2025-02-08 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:55:05 [end_date_ymd] => 2025-02-08 02:55:05 [RateCDR] => 1 ) [2025-02-08 02:55: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` >= '2025-02-07 23:55:05' and `end` < '2025-02-08 02:55: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 ,'') [2025-02-08 02:55:19] Production.INFO: count ==543 [2025-02-08 02:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:55:05 - End Time 2025-02-08 02:55:05 [2025-02-08 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426793', 'tblTempUsageDetail_20' ) start [2025-02-08 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426793', 'tblTempUsageDetail_20' ) end [2025-02-08 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426793', 'tblTempVendorCDR_20' ) start [2025-02-08 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426793', 'tblTempVendorCDR_20' ) end [2025-02-08 02:55:20] Production.INFO: ProcessCDR(1,14426793,1,1,2) [2025-02-08 02:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426793', 'tblTempUsageDetail_20' ) start [2025-02-08 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426793', 'tblTempUsageDetail_20' ) end [2025-02-08 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:55:22] Production.INFO: ==13812== Releasing lock... [2025-02-08 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:56:06 [end_date_ymd] => 2025-02-08 02:56:06 [RateCDR] => 1 ) [2025-02-08 02:56: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-02-07 23:56:06' and `end` < '2025-02-08 02:56: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-02-08 02:56:18] Production.INFO: count ==543 [2025-02-08 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:56:06 - End Time 2025-02-08 02:56:06 [2025-02-08 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426798', 'tblTempUsageDetail_20' ) start [2025-02-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426798', 'tblTempUsageDetail_20' ) end [2025-02-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426798', 'tblTempVendorCDR_20' ) start [2025-02-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426798', 'tblTempVendorCDR_20' ) end [2025-02-08 02:56:19] Production.INFO: ProcessCDR(1,14426798,1,1,2) [2025-02-08 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426798', 'tblTempUsageDetail_20' ) start [2025-02-08 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426798', 'tblTempUsageDetail_20' ) end [2025-02-08 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:56:22] Production.INFO: ==13883== Releasing lock... [2025-02-08 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:57:06 [end_date_ymd] => 2025-02-08 02:57:06 [RateCDR] => 1 ) [2025-02-08 02:57: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-02-07 23:57:06' and `end` < '2025-02-08 02:57: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-02-08 02:57:19] Production.INFO: count ==543 [2025-02-08 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:57:06 - End Time 2025-02-08 02:57:06 [2025-02-08 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426803', 'tblTempUsageDetail_20' ) start [2025-02-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426803', 'tblTempUsageDetail_20' ) end [2025-02-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426803', 'tblTempVendorCDR_20' ) start [2025-02-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426803', 'tblTempVendorCDR_20' ) end [2025-02-08 02:57:19] Production.INFO: ProcessCDR(1,14426803,1,1,2) [2025-02-08 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426803', 'tblTempUsageDetail_20' ) start [2025-02-08 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426803', 'tblTempUsageDetail_20' ) end [2025-02-08 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:57:22] Production.INFO: ==13958== Releasing lock... [2025-02-08 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:58:05 [end_date_ymd] => 2025-02-08 02:58:05 [RateCDR] => 1 ) [2025-02-08 02:58: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` >= '2025-02-07 23:58:05' and `end` < '2025-02-08 02:58: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 ,'') [2025-02-08 02:58:18] Production.INFO: count ==542 [2025-02-08 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 23:58:05 - End Time 2025-02-08 02:58:05 [2025-02-08 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426808', 'tblTempUsageDetail_20' ) start [2025-02-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426808', 'tblTempUsageDetail_20' ) end [2025-02-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426808', 'tblTempVendorCDR_20' ) start [2025-02-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426808', 'tblTempVendorCDR_20' ) end [2025-02-08 02:58:18] Production.INFO: ProcessCDR(1,14426808,1,1,2) [2025-02-08 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426808', 'tblTempUsageDetail_20' ) start [2025-02-08 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426808', 'tblTempUsageDetail_20' ) end [2025-02-08 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:58:22] Production.INFO: ==14067== Releasing lock... [2025-02-08 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 23:59:06 [end_date_ymd] => 2025-02-08 02:59:06 [RateCDR] => 1 ) [2025-02-08 02:59: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-02-07 23:59:06' and `end` < '2025-02-08 02:59: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-02-08 02:59:19] Production.INFO: count ==542 [2025-02-08 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 23:59:06 - End Time 2025-02-08 02:59:06 [2025-02-08 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426813', 'tblTempUsageDetail_20' ) start [2025-02-08 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426813', 'tblTempUsageDetail_20' ) end [2025-02-08 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426813', 'tblTempVendorCDR_20' ) start [2025-02-08 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426813', 'tblTempVendorCDR_20' ) end [2025-02-08 02:59:19] Production.INFO: ProcessCDR(1,14426813,1,1,2) [2025-02-08 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426813', 'tblTempUsageDetail_20' ) start [2025-02-08 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426813', 'tblTempUsageDetail_20' ) end [2025-02-08 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 02:59:22] Production.INFO: ==14140== Releasing lock... [2025-02-08 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 02:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:00:06 [end_date_ymd] => 2025-02-08 03:00:06 [RateCDR] => 1 ) [2025-02-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-02-08 00:00:06' and `end` < '2025-02-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-02-08 03:00:19] Production.INFO: count ==546 [2025-02-08 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:00:06 - End Time 2025-02-08 03:00:06 [2025-02-08 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426819', 'tblTempUsageDetail_20' ) start [2025-02-08 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426819', 'tblTempUsageDetail_20' ) end [2025-02-08 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426819', 'tblTempVendorCDR_20' ) start [2025-02-08 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426819', 'tblTempVendorCDR_20' ) end [2025-02-08 03:00:19] Production.INFO: ProcessCDR(1,14426819,1,1,2) [2025-02-08 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426819', 'tblTempUsageDetail_20' ) start [2025-02-08 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426819', 'tblTempUsageDetail_20' ) end [2025-02-08 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:00:23] Production.INFO: ==14215== Releasing lock... [2025-02-08 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:00:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:01:05 [end_date_ymd] => 2025-02-08 03:01:05 [RateCDR] => 1 ) [2025-02-08 03: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` >= '2025-02-08 00:01:05' and `end` < '2025-02-08 03: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 ,'') [2025-02-08 03:01:20] Production.INFO: count ==551 [2025-02-08 03:01:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:01:05 - End Time 2025-02-08 03:01:05 [2025-02-08 03:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426824', 'tblTempUsageDetail_20' ) start [2025-02-08 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426824', 'tblTempUsageDetail_20' ) end [2025-02-08 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426824', 'tblTempVendorCDR_20' ) start [2025-02-08 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426824', 'tblTempVendorCDR_20' ) end [2025-02-08 03:01:20] Production.INFO: ProcessCDR(1,14426824,1,1,2) [2025-02-08 03:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426824', 'tblTempUsageDetail_20' ) start [2025-02-08 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426824', 'tblTempUsageDetail_20' ) end [2025-02-08 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:01:23] Production.INFO: ==14305== Releasing lock... [2025-02-08 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:01:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:02:05 [end_date_ymd] => 2025-02-08 03:02:05 [RateCDR] => 1 ) [2025-02-08 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 00:02:05' and `end` < '2025-02-08 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 03:02:18] Production.INFO: count ==551 [2025-02-08 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:02:05 - End Time 2025-02-08 03:02:05 [2025-02-08 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426829', 'tblTempUsageDetail_20' ) start [2025-02-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426829', 'tblTempUsageDetail_20' ) end [2025-02-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426829', 'tblTempVendorCDR_20' ) start [2025-02-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426829', 'tblTempVendorCDR_20' ) end [2025-02-08 03:02:19] Production.INFO: ProcessCDR(1,14426829,1,1,2) [2025-02-08 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426829', 'tblTempUsageDetail_20' ) start [2025-02-08 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426829', 'tblTempUsageDetail_20' ) end [2025-02-08 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:02:22] Production.INFO: ==14458== Releasing lock... [2025-02-08 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:03:05 [end_date_ymd] => 2025-02-08 03:03:05 [RateCDR] => 1 ) [2025-02-08 03:03: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` >= '2025-02-08 00:03:05' and `end` < '2025-02-08 03:03: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 ,'') [2025-02-08 03:03:19] Production.INFO: count ==540 [2025-02-08 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:03:05 - End Time 2025-02-08 03:03:05 [2025-02-08 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426834', 'tblTempUsageDetail_20' ) start [2025-02-08 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426834', 'tblTempUsageDetail_20' ) end [2025-02-08 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426834', 'tblTempVendorCDR_20' ) start [2025-02-08 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426834', 'tblTempVendorCDR_20' ) end [2025-02-08 03:03:19] Production.INFO: ProcessCDR(1,14426834,1,1,2) [2025-02-08 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426834', 'tblTempUsageDetail_20' ) start [2025-02-08 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426834', 'tblTempUsageDetail_20' ) end [2025-02-08 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:03:22] Production.INFO: ==14528== Releasing lock... [2025-02-08 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:04:05 [end_date_ymd] => 2025-02-08 03:04:05 [RateCDR] => 1 ) [2025-02-08 03:04: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` >= '2025-02-08 00:04:05' and `end` < '2025-02-08 03:04: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 ,'') [2025-02-08 03:04:19] Production.INFO: count ==538 [2025-02-08 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:04:05 - End Time 2025-02-08 03:04:05 [2025-02-08 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426839', 'tblTempUsageDetail_20' ) start [2025-02-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426839', 'tblTempUsageDetail_20' ) end [2025-02-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426839', 'tblTempVendorCDR_20' ) start [2025-02-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426839', 'tblTempVendorCDR_20' ) end [2025-02-08 03:04:19] Production.INFO: ProcessCDR(1,14426839,1,1,2) [2025-02-08 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426839', 'tblTempUsageDetail_20' ) start [2025-02-08 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426839', 'tblTempUsageDetail_20' ) end [2025-02-08 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:04:22] Production.INFO: ==14598== Releasing lock... [2025-02-08 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:05:06 [end_date_ymd] => 2025-02-08 03:05:06 [RateCDR] => 1 ) [2025-02-08 03:05: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-02-08 00:05:06' and `end` < '2025-02-08 03:05: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-02-08 03:05:19] Production.INFO: count ==537 [2025-02-08 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:05:06 - End Time 2025-02-08 03:05:06 [2025-02-08 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426844', 'tblTempUsageDetail_20' ) start [2025-02-08 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426844', 'tblTempUsageDetail_20' ) end [2025-02-08 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426844', 'tblTempVendorCDR_20' ) start [2025-02-08 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426844', 'tblTempVendorCDR_20' ) end [2025-02-08 03:05:19] Production.INFO: ProcessCDR(1,14426844,1,1,2) [2025-02-08 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426844', 'tblTempUsageDetail_20' ) start [2025-02-08 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426844', 'tblTempUsageDetail_20' ) end [2025-02-08 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:05:22] Production.INFO: ==14666== Releasing lock... [2025-02-08 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:06:05 [end_date_ymd] => 2025-02-08 03:06:05 [RateCDR] => 1 ) [2025-02-08 03:06: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` >= '2025-02-08 00:06:05' and `end` < '2025-02-08 03:06: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 ,'') [2025-02-08 03:06:18] Production.INFO: count ==537 [2025-02-08 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:06:05 - End Time 2025-02-08 03:06:05 [2025-02-08 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426849', 'tblTempUsageDetail_20' ) start [2025-02-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426849', 'tblTempUsageDetail_20' ) end [2025-02-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426849', 'tblTempVendorCDR_20' ) start [2025-02-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426849', 'tblTempVendorCDR_20' ) end [2025-02-08 03:06:18] Production.INFO: ProcessCDR(1,14426849,1,1,2) [2025-02-08 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426849', 'tblTempUsageDetail_20' ) start [2025-02-08 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426849', 'tblTempUsageDetail_20' ) end [2025-02-08 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:06:22] Production.INFO: ==14815== Releasing lock... [2025-02-08 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:07:05 [end_date_ymd] => 2025-02-08 03:07:05 [RateCDR] => 1 ) [2025-02-08 03:07: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` >= '2025-02-08 00:07:05' and `end` < '2025-02-08 03:07: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 ,'') [2025-02-08 03:07:19] Production.INFO: count ==534 [2025-02-08 03:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:07:05 - End Time 2025-02-08 03:07:05 [2025-02-08 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426854', 'tblTempUsageDetail_20' ) start [2025-02-08 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426854', 'tblTempUsageDetail_20' ) end [2025-02-08 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426854', 'tblTempVendorCDR_20' ) start [2025-02-08 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426854', 'tblTempVendorCDR_20' ) end [2025-02-08 03:07:19] Production.INFO: ProcessCDR(1,14426854,1,1,2) [2025-02-08 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426854', 'tblTempUsageDetail_20' ) start [2025-02-08 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426854', 'tblTempUsageDetail_20' ) end [2025-02-08 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:07:22] Production.INFO: ==14890== Releasing lock... [2025-02-08 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:08:05 [end_date_ymd] => 2025-02-08 03:08:05 [RateCDR] => 1 ) [2025-02-08 03:08: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` >= '2025-02-08 00:08:05' and `end` < '2025-02-08 03:08: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 ,'') [2025-02-08 03:08:18] Production.INFO: count ==532 [2025-02-08 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:08:05 - End Time 2025-02-08 03:08:05 [2025-02-08 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426859', 'tblTempUsageDetail_20' ) start [2025-02-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426859', 'tblTempUsageDetail_20' ) end [2025-02-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426859', 'tblTempVendorCDR_20' ) start [2025-02-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426859', 'tblTempVendorCDR_20' ) end [2025-02-08 03:08:18] Production.INFO: ProcessCDR(1,14426859,1,1,2) [2025-02-08 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426859', 'tblTempUsageDetail_20' ) start [2025-02-08 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426859', 'tblTempUsageDetail_20' ) end [2025-02-08 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:08:21] Production.INFO: ==14960== Releasing lock... [2025-02-08 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:09:05 [end_date_ymd] => 2025-02-08 03:09:05 [RateCDR] => 1 ) [2025-02-08 03:09: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` >= '2025-02-08 00:09:05' and `end` < '2025-02-08 03:09: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 ,'') [2025-02-08 03:09:18] Production.INFO: count ==532 [2025-02-08 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:09:05 - End Time 2025-02-08 03:09:05 [2025-02-08 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426864', 'tblTempUsageDetail_20' ) start [2025-02-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426864', 'tblTempUsageDetail_20' ) end [2025-02-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426864', 'tblTempVendorCDR_20' ) start [2025-02-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426864', 'tblTempVendorCDR_20' ) end [2025-02-08 03:09:18] Production.INFO: ProcessCDR(1,14426864,1,1,2) [2025-02-08 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426864', 'tblTempUsageDetail_20' ) start [2025-02-08 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426864', 'tblTempUsageDetail_20' ) end [2025-02-08 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:09:21] Production.INFO: ==15113== Releasing lock... [2025-02-08 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:10:06 [end_date_ymd] => 2025-02-08 03:10:06 [RateCDR] => 1 ) [2025-02-08 03:10: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-02-08 00:10:06' and `end` < '2025-02-08 03:10: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-02-08 03:10:19] Production.INFO: count ==532 [2025-02-08 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:10:06 - End Time 2025-02-08 03:10:06 [2025-02-08 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426870', 'tblTempUsageDetail_20' ) start [2025-02-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426870', 'tblTempUsageDetail_20' ) end [2025-02-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426870', 'tblTempVendorCDR_20' ) start [2025-02-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426870', 'tblTempVendorCDR_20' ) end [2025-02-08 03:10:19] Production.INFO: ProcessCDR(1,14426870,1,1,2) [2025-02-08 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426870', 'tblTempUsageDetail_20' ) start [2025-02-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426870', 'tblTempUsageDetail_20' ) end [2025-02-08 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:10:22] Production.INFO: ==15200== Releasing lock... [2025-02-08 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:11:05 [end_date_ymd] => 2025-02-08 03:11:05 [RateCDR] => 1 ) [2025-02-08 03:11: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` >= '2025-02-08 00:11:05' and `end` < '2025-02-08 03:11: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 ,'') [2025-02-08 03:11:18] Production.INFO: count ==538 [2025-02-08 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:11:05 - End Time 2025-02-08 03:11:05 [2025-02-08 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426875', 'tblTempUsageDetail_20' ) start [2025-02-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426875', 'tblTempUsageDetail_20' ) end [2025-02-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426875', 'tblTempVendorCDR_20' ) start [2025-02-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426875', 'tblTempVendorCDR_20' ) end [2025-02-08 03:11:18] Production.INFO: ProcessCDR(1,14426875,1,1,2) [2025-02-08 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426875', 'tblTempUsageDetail_20' ) start [2025-02-08 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426875', 'tblTempUsageDetail_20' ) end [2025-02-08 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:11:21] Production.INFO: ==15285== Releasing lock... [2025-02-08 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:12:06 [end_date_ymd] => 2025-02-08 03:12:06 [RateCDR] => 1 ) [2025-02-08 03:12: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-02-08 00:12:06' and `end` < '2025-02-08 03:12: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-02-08 03:12:19] Production.INFO: count ==541 [2025-02-08 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:12:06 - End Time 2025-02-08 03:12:06 [2025-02-08 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426880', 'tblTempUsageDetail_20' ) start [2025-02-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426880', 'tblTempUsageDetail_20' ) end [2025-02-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426880', 'tblTempVendorCDR_20' ) start [2025-02-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426880', 'tblTempVendorCDR_20' ) end [2025-02-08 03:12:19] Production.INFO: ProcessCDR(1,14426880,1,1,2) [2025-02-08 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426880', 'tblTempUsageDetail_20' ) start [2025-02-08 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426880', 'tblTempUsageDetail_20' ) end [2025-02-08 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:12:22] Production.INFO: ==15371== Releasing lock... [2025-02-08 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:12:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:13:05 [end_date_ymd] => 2025-02-08 03:13:05 [RateCDR] => 1 ) [2025-02-08 03:13: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` >= '2025-02-08 00:13:05' and `end` < '2025-02-08 03:13: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 ,'') [2025-02-08 03:13:19] Production.INFO: count ==538 [2025-02-08 03:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:13:05 - End Time 2025-02-08 03:13:05 [2025-02-08 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426885', 'tblTempUsageDetail_20' ) start [2025-02-08 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426885', 'tblTempUsageDetail_20' ) end [2025-02-08 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426885', 'tblTempVendorCDR_20' ) start [2025-02-08 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426885', 'tblTempVendorCDR_20' ) end [2025-02-08 03:13:19] Production.INFO: ProcessCDR(1,14426885,1,1,2) [2025-02-08 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426885', 'tblTempUsageDetail_20' ) start [2025-02-08 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426885', 'tblTempUsageDetail_20' ) end [2025-02-08 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:13:22] Production.INFO: ==15571== Releasing lock... [2025-02-08 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:14:06 [end_date_ymd] => 2025-02-08 03:14:06 [RateCDR] => 1 ) [2025-02-08 03:14: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-02-08 00:14:06' and `end` < '2025-02-08 03:14: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-02-08 03:14:19] Production.INFO: count ==538 [2025-02-08 03:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:14:06 - End Time 2025-02-08 03:14:06 [2025-02-08 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426890', 'tblTempUsageDetail_20' ) start [2025-02-08 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426890', 'tblTempUsageDetail_20' ) end [2025-02-08 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426890', 'tblTempVendorCDR_20' ) start [2025-02-08 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426890', 'tblTempVendorCDR_20' ) end [2025-02-08 03:14:19] Production.INFO: ProcessCDR(1,14426890,1,1,2) [2025-02-08 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426890', 'tblTempUsageDetail_20' ) start [2025-02-08 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426890', 'tblTempUsageDetail_20' ) end [2025-02-08 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:14:22] Production.INFO: ==15658== Releasing lock... [2025-02-08 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:15:05 [end_date_ymd] => 2025-02-08 03:15:05 [RateCDR] => 1 ) [2025-02-08 03:15: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` >= '2025-02-08 00:15:05' and `end` < '2025-02-08 03:15: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 ,'') [2025-02-08 03:15:18] Production.INFO: count ==538 [2025-02-08 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:15:05 - End Time 2025-02-08 03:15:05 [2025-02-08 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426895', 'tblTempUsageDetail_20' ) start [2025-02-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426895', 'tblTempUsageDetail_20' ) end [2025-02-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426895', 'tblTempVendorCDR_20' ) start [2025-02-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426895', 'tblTempVendorCDR_20' ) end [2025-02-08 03:15:18] Production.INFO: ProcessCDR(1,14426895,1,1,2) [2025-02-08 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426895', 'tblTempUsageDetail_20' ) start [2025-02-08 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426895', 'tblTempUsageDetail_20' ) end [2025-02-08 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:15:21] Production.INFO: ==15743== Releasing lock... [2025-02-08 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:16:05 [end_date_ymd] => 2025-02-08 03:16:05 [RateCDR] => 1 ) [2025-02-08 03:16: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` >= '2025-02-08 00:16:05' and `end` < '2025-02-08 03:16: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 ,'') [2025-02-08 03:16:19] Production.INFO: count ==536 [2025-02-08 03:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:16:05 - End Time 2025-02-08 03:16:05 [2025-02-08 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426900', 'tblTempUsageDetail_20' ) start [2025-02-08 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426900', 'tblTempUsageDetail_20' ) end [2025-02-08 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426900', 'tblTempVendorCDR_20' ) start [2025-02-08 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426900', 'tblTempVendorCDR_20' ) end [2025-02-08 03:16:19] Production.INFO: ProcessCDR(1,14426900,1,1,2) [2025-02-08 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426900', 'tblTempUsageDetail_20' ) start [2025-02-08 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426900', 'tblTempUsageDetail_20' ) end [2025-02-08 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:16:22] Production.INFO: ==15826== Releasing lock... [2025-02-08 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:17:05 [end_date_ymd] => 2025-02-08 03:17:05 [RateCDR] => 1 ) [2025-02-08 03:17: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` >= '2025-02-08 00:17:05' and `end` < '2025-02-08 03:17: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 ,'') [2025-02-08 03:17:19] Production.INFO: count ==535 [2025-02-08 03:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:17:05 - End Time 2025-02-08 03:17:05 [2025-02-08 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426905', 'tblTempUsageDetail_20' ) start [2025-02-08 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426905', 'tblTempUsageDetail_20' ) end [2025-02-08 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426905', 'tblTempVendorCDR_20' ) start [2025-02-08 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426905', 'tblTempVendorCDR_20' ) end [2025-02-08 03:17:19] Production.INFO: ProcessCDR(1,14426905,1,1,2) [2025-02-08 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426905', 'tblTempUsageDetail_20' ) start [2025-02-08 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426905', 'tblTempUsageDetail_20' ) end [2025-02-08 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:17:22] Production.INFO: ==15989== Releasing lock... [2025-02-08 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:18:05 [end_date_ymd] => 2025-02-08 03:18:05 [RateCDR] => 1 ) [2025-02-08 03:18: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` >= '2025-02-08 00:18:05' and `end` < '2025-02-08 03:18: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 ,'') [2025-02-08 03:18:18] Production.INFO: count ==539 [2025-02-08 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:18:05 - End Time 2025-02-08 03:18:05 [2025-02-08 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426910', 'tblTempUsageDetail_20' ) start [2025-02-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426910', 'tblTempUsageDetail_20' ) end [2025-02-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426910', 'tblTempVendorCDR_20' ) start [2025-02-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426910', 'tblTempVendorCDR_20' ) end [2025-02-08 03:18:18] Production.INFO: ProcessCDR(1,14426910,1,1,2) [2025-02-08 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426910', 'tblTempUsageDetail_20' ) start [2025-02-08 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426910', 'tblTempUsageDetail_20' ) end [2025-02-08 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:18:22] Production.INFO: ==16071== Releasing lock... [2025-02-08 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:19:05 [end_date_ymd] => 2025-02-08 03:19:05 [RateCDR] => 1 ) [2025-02-08 03:19: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` >= '2025-02-08 00:19:05' and `end` < '2025-02-08 03:19: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 ,'') [2025-02-08 03:19:18] Production.INFO: count ==536 [2025-02-08 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:19:05 - End Time 2025-02-08 03:19:05 [2025-02-08 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426915', 'tblTempUsageDetail_20' ) start [2025-02-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426915', 'tblTempUsageDetail_20' ) end [2025-02-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426915', 'tblTempVendorCDR_20' ) start [2025-02-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426915', 'tblTempVendorCDR_20' ) end [2025-02-08 03:19:18] Production.INFO: ProcessCDR(1,14426915,1,1,2) [2025-02-08 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426915', 'tblTempUsageDetail_20' ) start [2025-02-08 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426915', 'tblTempUsageDetail_20' ) end [2025-02-08 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:19:21] Production.INFO: ==16157== Releasing lock... [2025-02-08 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:20:06 [end_date_ymd] => 2025-02-08 03:20:06 [RateCDR] => 1 ) [2025-02-08 03:20: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-02-08 00:20:06' and `end` < '2025-02-08 03:20: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-02-08 03:20:19] Production.INFO: count ==536 [2025-02-08 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:20:06 - End Time 2025-02-08 03:20:06 [2025-02-08 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426921', 'tblTempUsageDetail_20' ) start [2025-02-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426921', 'tblTempUsageDetail_20' ) end [2025-02-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426921', 'tblTempVendorCDR_20' ) start [2025-02-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426921', 'tblTempVendorCDR_20' ) end [2025-02-08 03:20:19] Production.INFO: ProcessCDR(1,14426921,1,1,2) [2025-02-08 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426921', 'tblTempUsageDetail_20' ) start [2025-02-08 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426921', 'tblTempUsageDetail_20' ) end [2025-02-08 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:20:23] Production.INFO: ==16240== Releasing lock... [2025-02-08 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:21:05 [end_date_ymd] => 2025-02-08 03:21:05 [RateCDR] => 1 ) [2025-02-08 03:21: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` >= '2025-02-08 00:21:05' and `end` < '2025-02-08 03:21: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 ,'') [2025-02-08 03:21:18] Production.INFO: count ==522 [2025-02-08 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:21:05 - End Time 2025-02-08 03:21:05 [2025-02-08 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426926', 'tblTempUsageDetail_20' ) start [2025-02-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426926', 'tblTempUsageDetail_20' ) end [2025-02-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426926', 'tblTempVendorCDR_20' ) start [2025-02-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426926', 'tblTempVendorCDR_20' ) end [2025-02-08 03:21:18] Production.INFO: ProcessCDR(1,14426926,1,1,2) [2025-02-08 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426926', 'tblTempUsageDetail_20' ) start [2025-02-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426926', 'tblTempUsageDetail_20' ) end [2025-02-08 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:21:21] Production.INFO: ==16333== Releasing lock... [2025-02-08 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:22:05 [end_date_ymd] => 2025-02-08 03:22:05 [RateCDR] => 1 ) [2025-02-08 03:22: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` >= '2025-02-08 00:22:05' and `end` < '2025-02-08 03:22: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 ,'') [2025-02-08 03:22:18] Production.INFO: count ==522 [2025-02-08 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:22:05 - End Time 2025-02-08 03:22:05 [2025-02-08 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426931', 'tblTempUsageDetail_20' ) start [2025-02-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426931', 'tblTempUsageDetail_20' ) end [2025-02-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426931', 'tblTempVendorCDR_20' ) start [2025-02-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426931', 'tblTempVendorCDR_20' ) end [2025-02-08 03:22:18] Production.INFO: ProcessCDR(1,14426931,1,1,2) [2025-02-08 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426931', 'tblTempUsageDetail_20' ) start [2025-02-08 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426931', 'tblTempUsageDetail_20' ) end [2025-02-08 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:22:22] Production.INFO: ==16417== Releasing lock... [2025-02-08 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:23:06 [end_date_ymd] => 2025-02-08 03:23:06 [RateCDR] => 1 ) [2025-02-08 03:23: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-02-08 00:23:06' and `end` < '2025-02-08 03:23: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-02-08 03:23:19] Production.INFO: count ==522 [2025-02-08 03:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:23:06 - End Time 2025-02-08 03:23:06 [2025-02-08 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426936', 'tblTempUsageDetail_20' ) start [2025-02-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426936', 'tblTempUsageDetail_20' ) end [2025-02-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426936', 'tblTempVendorCDR_20' ) start [2025-02-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426936', 'tblTempVendorCDR_20' ) end [2025-02-08 03:23:19] Production.INFO: ProcessCDR(1,14426936,1,1,2) [2025-02-08 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426936', 'tblTempUsageDetail_20' ) start [2025-02-08 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426936', 'tblTempUsageDetail_20' ) end [2025-02-08 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:23:22] Production.INFO: ==16501== Releasing lock... [2025-02-08 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:24:06 [end_date_ymd] => 2025-02-08 03:24:06 [RateCDR] => 1 ) [2025-02-08 03:24: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-02-08 00:24:06' and `end` < '2025-02-08 03:24: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-02-08 03:24:19] Production.INFO: count ==522 [2025-02-08 03:24:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:24:06 - End Time 2025-02-08 03:24:06 [2025-02-08 03:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426941', 'tblTempUsageDetail_20' ) start [2025-02-08 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426941', 'tblTempUsageDetail_20' ) end [2025-02-08 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426941', 'tblTempVendorCDR_20' ) start [2025-02-08 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426941', 'tblTempVendorCDR_20' ) end [2025-02-08 03:24:20] Production.INFO: ProcessCDR(1,14426941,1,1,2) [2025-02-08 03:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426941', 'tblTempUsageDetail_20' ) start [2025-02-08 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426941', 'tblTempUsageDetail_20' ) end [2025-02-08 03:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:24:23] Production.INFO: ==16584== Releasing lock... [2025-02-08 03:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:25:06 [end_date_ymd] => 2025-02-08 03:25:06 [RateCDR] => 1 ) [2025-02-08 03:25: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-02-08 00:25:06' and `end` < '2025-02-08 03:25: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-02-08 03:25:20] Production.INFO: count ==522 [2025-02-08 03:25:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:25:06 - End Time 2025-02-08 03:25:06 [2025-02-08 03:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426946', 'tblTempUsageDetail_20' ) start [2025-02-08 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426946', 'tblTempUsageDetail_20' ) end [2025-02-08 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426946', 'tblTempVendorCDR_20' ) start [2025-02-08 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426946', 'tblTempVendorCDR_20' ) end [2025-02-08 03:25:20] Production.INFO: ProcessCDR(1,14426946,1,1,2) [2025-02-08 03:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426946', 'tblTempUsageDetail_20' ) start [2025-02-08 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426946', 'tblTempUsageDetail_20' ) end [2025-02-08 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:25:25] Production.INFO: ==16671== Releasing lock... [2025-02-08 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:26:05 [end_date_ymd] => 2025-02-08 03:26:05 [RateCDR] => 1 ) [2025-02-08 03:26: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` >= '2025-02-08 00:26:05' and `end` < '2025-02-08 03:26: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 ,'') [2025-02-08 03:26:18] Production.INFO: count ==519 [2025-02-08 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:26:05 - End Time 2025-02-08 03:26:05 [2025-02-08 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426951', 'tblTempUsageDetail_20' ) start [2025-02-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426951', 'tblTempUsageDetail_20' ) end [2025-02-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426951', 'tblTempVendorCDR_20' ) start [2025-02-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426951', 'tblTempVendorCDR_20' ) end [2025-02-08 03:26:18] Production.INFO: ProcessCDR(1,14426951,1,1,2) [2025-02-08 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426951', 'tblTempUsageDetail_20' ) start [2025-02-08 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426951', 'tblTempUsageDetail_20' ) end [2025-02-08 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:26:21] Production.INFO: ==16757== Releasing lock... [2025-02-08 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:27:05 [end_date_ymd] => 2025-02-08 03:27:05 [RateCDR] => 1 ) [2025-02-08 03:27: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` >= '2025-02-08 00:27:05' and `end` < '2025-02-08 03:27: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 ,'') [2025-02-08 03:27:19] Production.INFO: count ==517 [2025-02-08 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:27:05 - End Time 2025-02-08 03:27:05 [2025-02-08 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426956', 'tblTempUsageDetail_20' ) start [2025-02-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426956', 'tblTempUsageDetail_20' ) end [2025-02-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426956', 'tblTempVendorCDR_20' ) start [2025-02-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426956', 'tblTempVendorCDR_20' ) end [2025-02-08 03:27:19] Production.INFO: ProcessCDR(1,14426956,1,1,2) [2025-02-08 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426956', 'tblTempUsageDetail_20' ) start [2025-02-08 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426956', 'tblTempUsageDetail_20' ) end [2025-02-08 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:27:22] Production.INFO: ==16842== Releasing lock... [2025-02-08 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:28:05 [end_date_ymd] => 2025-02-08 03:28:05 [RateCDR] => 1 ) [2025-02-08 03:28: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` >= '2025-02-08 00:28:05' and `end` < '2025-02-08 03:28: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 ,'') [2025-02-08 03:28:19] Production.INFO: count ==516 [2025-02-08 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:28:05 - End Time 2025-02-08 03:28:05 [2025-02-08 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426961', 'tblTempUsageDetail_20' ) start [2025-02-08 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426961', 'tblTempUsageDetail_20' ) end [2025-02-08 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426961', 'tblTempVendorCDR_20' ) start [2025-02-08 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426961', 'tblTempVendorCDR_20' ) end [2025-02-08 03:28:19] Production.INFO: ProcessCDR(1,14426961,1,1,2) [2025-02-08 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426961', 'tblTempUsageDetail_20' ) start [2025-02-08 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426961', 'tblTempUsageDetail_20' ) end [2025-02-08 03:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:28:23] Production.INFO: ==16941== Releasing lock... [2025-02-08 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:28:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:29:06 [end_date_ymd] => 2025-02-08 03:29:06 [RateCDR] => 1 ) [2025-02-08 03:29: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-02-08 00:29:06' and `end` < '2025-02-08 03:29: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-02-08 03:29:19] Production.INFO: count ==516 [2025-02-08 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:29:06 - End Time 2025-02-08 03:29:06 [2025-02-08 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426966', 'tblTempUsageDetail_20' ) start [2025-02-08 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426966', 'tblTempUsageDetail_20' ) end [2025-02-08 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426966', 'tblTempVendorCDR_20' ) start [2025-02-08 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426966', 'tblTempVendorCDR_20' ) end [2025-02-08 03:29:19] Production.INFO: ProcessCDR(1,14426966,1,1,2) [2025-02-08 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426966', 'tblTempUsageDetail_20' ) start [2025-02-08 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426966', 'tblTempUsageDetail_20' ) end [2025-02-08 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:29:22] Production.INFO: ==17037== Releasing lock... [2025-02-08 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:30:06 [end_date_ymd] => 2025-02-08 03:30:06 [RateCDR] => 1 ) [2025-02-08 03:30: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-02-08 00:30:06' and `end` < '2025-02-08 03:30: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-02-08 03:30:19] Production.INFO: count ==515 [2025-02-08 03:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:30:06 - End Time 2025-02-08 03:30:06 [2025-02-08 03:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426972', 'tblTempUsageDetail_20' ) start [2025-02-08 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426972', 'tblTempUsageDetail_20' ) end [2025-02-08 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426972', 'tblTempVendorCDR_20' ) start [2025-02-08 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426972', 'tblTempVendorCDR_20' ) end [2025-02-08 03:30:20] Production.INFO: ProcessCDR(1,14426972,1,1,2) [2025-02-08 03:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426972', 'tblTempUsageDetail_20' ) start [2025-02-08 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426972', 'tblTempUsageDetail_20' ) end [2025-02-08 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:30:23] Production.INFO: ==17178== Releasing lock... [2025-02-08 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:30:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:31:06 [end_date_ymd] => 2025-02-08 03:31:06 [RateCDR] => 1 ) [2025-02-08 03:31: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-02-08 00:31:06' and `end` < '2025-02-08 03:31: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-02-08 03:31:19] Production.INFO: count ==515 [2025-02-08 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:31:06 - End Time 2025-02-08 03:31:06 [2025-02-08 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426977', 'tblTempUsageDetail_20' ) start [2025-02-08 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426977', 'tblTempUsageDetail_20' ) end [2025-02-08 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426977', 'tblTempVendorCDR_20' ) start [2025-02-08 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426977', 'tblTempVendorCDR_20' ) end [2025-02-08 03:31:20] Production.INFO: ProcessCDR(1,14426977,1,1,2) [2025-02-08 03:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426977', 'tblTempUsageDetail_20' ) start [2025-02-08 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426977', 'tblTempUsageDetail_20' ) end [2025-02-08 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:31:23] Production.INFO: ==17280== Releasing lock... [2025-02-08 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:31:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:32:05 [end_date_ymd] => 2025-02-08 03:32:05 [RateCDR] => 1 ) [2025-02-08 03:32: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` >= '2025-02-08 00:32:05' and `end` < '2025-02-08 03:32: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 ,'') [2025-02-08 03:32:18] Production.INFO: count ==515 [2025-02-08 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:32:05 - End Time 2025-02-08 03:32:05 [2025-02-08 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426982', 'tblTempUsageDetail_20' ) start [2025-02-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426982', 'tblTempUsageDetail_20' ) end [2025-02-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426982', 'tblTempVendorCDR_20' ) start [2025-02-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426982', 'tblTempVendorCDR_20' ) end [2025-02-08 03:32:18] Production.INFO: ProcessCDR(1,14426982,1,1,2) [2025-02-08 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426982', 'tblTempUsageDetail_20' ) start [2025-02-08 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426982', 'tblTempUsageDetail_20' ) end [2025-02-08 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:32:22] Production.INFO: ==17383== Releasing lock... [2025-02-08 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:33:06 [end_date_ymd] => 2025-02-08 03:33:06 [RateCDR] => 1 ) [2025-02-08 03:33: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-02-08 00:33:06' and `end` < '2025-02-08 03:33: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-02-08 03:33:19] Production.INFO: count ==512 [2025-02-08 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:33:06 - End Time 2025-02-08 03:33:06 [2025-02-08 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426987', 'tblTempUsageDetail_20' ) start [2025-02-08 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426987', 'tblTempUsageDetail_20' ) end [2025-02-08 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426987', 'tblTempVendorCDR_20' ) start [2025-02-08 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426987', 'tblTempVendorCDR_20' ) end [2025-02-08 03:33:19] Production.INFO: ProcessCDR(1,14426987,1,1,2) [2025-02-08 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426987', 'tblTempUsageDetail_20' ) start [2025-02-08 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426987', 'tblTempUsageDetail_20' ) end [2025-02-08 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:33:23] Production.INFO: ==17509== Releasing lock... [2025-02-08 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:33:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:34:05 [end_date_ymd] => 2025-02-08 03:34:05 [RateCDR] => 1 ) [2025-02-08 03:34: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` >= '2025-02-08 00:34:05' and `end` < '2025-02-08 03:34: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 ,'') [2025-02-08 03:34:19] Production.INFO: count ==512 [2025-02-08 03:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:34:05 - End Time 2025-02-08 03:34:05 [2025-02-08 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426992', 'tblTempUsageDetail_20' ) start [2025-02-08 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426992', 'tblTempUsageDetail_20' ) end [2025-02-08 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426992', 'tblTempVendorCDR_20' ) start [2025-02-08 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426992', 'tblTempVendorCDR_20' ) end [2025-02-08 03:34:19] Production.INFO: ProcessCDR(1,14426992,1,1,2) [2025-02-08 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426992', 'tblTempUsageDetail_20' ) start [2025-02-08 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426992', 'tblTempUsageDetail_20' ) end [2025-02-08 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:34:22] Production.INFO: ==17608== Releasing lock... [2025-02-08 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:35:06 [end_date_ymd] => 2025-02-08 03:35:06 [RateCDR] => 1 ) [2025-02-08 03:35: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-02-08 00:35:06' and `end` < '2025-02-08 03:35: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-02-08 03:35:19] Production.INFO: count ==512 [2025-02-08 03:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:35:06 - End Time 2025-02-08 03:35:06 [2025-02-08 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426997', 'tblTempUsageDetail_20' ) start [2025-02-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14426997', 'tblTempUsageDetail_20' ) end [2025-02-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426997', 'tblTempVendorCDR_20' ) start [2025-02-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14426997', 'tblTempVendorCDR_20' ) end [2025-02-08 03:35:19] Production.INFO: ProcessCDR(1,14426997,1,1,2) [2025-02-08 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14426997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14426997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14426997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14426997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426997', 'tblTempUsageDetail_20' ) start [2025-02-08 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14426997', 'tblTempUsageDetail_20' ) end [2025-02-08 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:35:22] Production.INFO: ==17704== Releasing lock... [2025-02-08 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:36:05 [end_date_ymd] => 2025-02-08 03:36:05 [RateCDR] => 1 ) [2025-02-08 03:36: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` >= '2025-02-08 00:36:05' and `end` < '2025-02-08 03:36: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 ,'') [2025-02-08 03:36:19] Production.INFO: count ==511 [2025-02-08 03:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:36:05 - End Time 2025-02-08 03:36:05 [2025-02-08 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427002', 'tblTempUsageDetail_20' ) start [2025-02-08 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427002', 'tblTempUsageDetail_20' ) end [2025-02-08 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427002', 'tblTempVendorCDR_20' ) start [2025-02-08 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427002', 'tblTempVendorCDR_20' ) end [2025-02-08 03:36:19] Production.INFO: ProcessCDR(1,14427002,1,1,2) [2025-02-08 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427002', 'tblTempUsageDetail_20' ) start [2025-02-08 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427002', 'tblTempUsageDetail_20' ) end [2025-02-08 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:36:22] Production.INFO: ==17805== Releasing lock... [2025-02-08 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:37:06 [end_date_ymd] => 2025-02-08 03:37:06 [RateCDR] => 1 ) [2025-02-08 03:37: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-02-08 00:37:06' and `end` < '2025-02-08 03:37: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-02-08 03:37:20] Production.INFO: count ==510 [2025-02-08 03:37:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:37:06 - End Time 2025-02-08 03:37:06 [2025-02-08 03:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427007', 'tblTempUsageDetail_20' ) start [2025-02-08 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427007', 'tblTempUsageDetail_20' ) end [2025-02-08 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427007', 'tblTempVendorCDR_20' ) start [2025-02-08 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427007', 'tblTempVendorCDR_20' ) end [2025-02-08 03:37:20] Production.INFO: ProcessCDR(1,14427007,1,1,2) [2025-02-08 03:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427007', 'tblTempUsageDetail_20' ) start [2025-02-08 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427007', 'tblTempUsageDetail_20' ) end [2025-02-08 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:37:23] Production.INFO: ==17903== Releasing lock... [2025-02-08 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:37:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:38:05 [end_date_ymd] => 2025-02-08 03:38:05 [RateCDR] => 1 ) [2025-02-08 03:38: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` >= '2025-02-08 00:38:05' and `end` < '2025-02-08 03:38: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 ,'') [2025-02-08 03:38:18] Production.INFO: count ==510 [2025-02-08 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:38:05 - End Time 2025-02-08 03:38:05 [2025-02-08 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427012', 'tblTempUsageDetail_20' ) start [2025-02-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427012', 'tblTempUsageDetail_20' ) end [2025-02-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427012', 'tblTempVendorCDR_20' ) start [2025-02-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427012', 'tblTempVendorCDR_20' ) end [2025-02-08 03:38:18] Production.INFO: ProcessCDR(1,14427012,1,1,2) [2025-02-08 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427012', 'tblTempUsageDetail_20' ) start [2025-02-08 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427012', 'tblTempUsageDetail_20' ) end [2025-02-08 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:38:22] Production.INFO: ==18009== Releasing lock... [2025-02-08 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:39:06 [end_date_ymd] => 2025-02-08 03:39:06 [RateCDR] => 1 ) [2025-02-08 03:39: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-02-08 00:39:06' and `end` < '2025-02-08 03:39: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-02-08 03:39:19] Production.INFO: count ==510 [2025-02-08 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:39:06 - End Time 2025-02-08 03:39:06 [2025-02-08 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427017', 'tblTempUsageDetail_20' ) start [2025-02-08 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427017', 'tblTempUsageDetail_20' ) end [2025-02-08 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427017', 'tblTempVendorCDR_20' ) start [2025-02-08 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427017', 'tblTempVendorCDR_20' ) end [2025-02-08 03:39:19] Production.INFO: ProcessCDR(1,14427017,1,1,2) [2025-02-08 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427017', 'tblTempUsageDetail_20' ) start [2025-02-08 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427017', 'tblTempUsageDetail_20' ) end [2025-02-08 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:39:22] Production.INFO: ==18106== Releasing lock... [2025-02-08 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:40:06 [end_date_ymd] => 2025-02-08 03:40:06 [RateCDR] => 1 ) [2025-02-08 03:40: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-02-08 00:40:06' and `end` < '2025-02-08 03:40: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-02-08 03:40:20] Production.INFO: count ==505 [2025-02-08 03:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:40:06 - End Time 2025-02-08 03:40:06 [2025-02-08 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427022', 'tblTempUsageDetail_20' ) start [2025-02-08 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427022', 'tblTempUsageDetail_20' ) end [2025-02-08 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427022', 'tblTempVendorCDR_20' ) start [2025-02-08 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427022', 'tblTempVendorCDR_20' ) end [2025-02-08 03:40:20] Production.INFO: ProcessCDR(1,14427022,1,1,2) [2025-02-08 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427022', 'tblTempUsageDetail_20' ) start [2025-02-08 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427022', 'tblTempUsageDetail_20' ) end [2025-02-08 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:40:23] Production.INFO: ==18208== Releasing lock... [2025-02-08 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:40:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:41:06 [end_date_ymd] => 2025-02-08 03:41:06 [RateCDR] => 1 ) [2025-02-08 03:41: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-02-08 00:41:06' and `end` < '2025-02-08 03:41: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-02-08 03:41:19] Production.INFO: count ==491 [2025-02-08 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:41:06 - End Time 2025-02-08 03:41:06 [2025-02-08 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427028', 'tblTempUsageDetail_20' ) start [2025-02-08 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427028', 'tblTempUsageDetail_20' ) end [2025-02-08 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427028', 'tblTempVendorCDR_20' ) start [2025-02-08 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427028', 'tblTempVendorCDR_20' ) end [2025-02-08 03:41:19] Production.INFO: ProcessCDR(1,14427028,1,1,2) [2025-02-08 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427028', 'tblTempUsageDetail_20' ) start [2025-02-08 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427028', 'tblTempUsageDetail_20' ) end [2025-02-08 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:41:22] Production.INFO: ==18321== Releasing lock... [2025-02-08 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:41:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:42:05 [end_date_ymd] => 2025-02-08 03:42:05 [RateCDR] => 1 ) [2025-02-08 03:42: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` >= '2025-02-08 00:42:05' and `end` < '2025-02-08 03:42: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 ,'') [2025-02-08 03:42:19] Production.INFO: count ==491 [2025-02-08 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:42:05 - End Time 2025-02-08 03:42:05 [2025-02-08 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427033', 'tblTempUsageDetail_20' ) start [2025-02-08 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427033', 'tblTempUsageDetail_20' ) end [2025-02-08 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427033', 'tblTempVendorCDR_20' ) start [2025-02-08 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427033', 'tblTempVendorCDR_20' ) end [2025-02-08 03:42:19] Production.INFO: ProcessCDR(1,14427033,1,1,2) [2025-02-08 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427033', 'tblTempUsageDetail_20' ) start [2025-02-08 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427033', 'tblTempUsageDetail_20' ) end [2025-02-08 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:42:23] Production.INFO: ==18430== Releasing lock... [2025-02-08 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:42:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:43:06 [end_date_ymd] => 2025-02-08 03:43:06 [RateCDR] => 1 ) [2025-02-08 03:43: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-02-08 00:43:06' and `end` < '2025-02-08 03:43: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-02-08 03:43:19] Production.INFO: count ==491 [2025-02-08 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:43:06 - End Time 2025-02-08 03:43:06 [2025-02-08 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427038', 'tblTempUsageDetail_20' ) start [2025-02-08 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427038', 'tblTempUsageDetail_20' ) end [2025-02-08 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427038', 'tblTempVendorCDR_20' ) start [2025-02-08 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427038', 'tblTempVendorCDR_20' ) end [2025-02-08 03:43:19] Production.INFO: ProcessCDR(1,14427038,1,1,2) [2025-02-08 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427038', 'tblTempUsageDetail_20' ) start [2025-02-08 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427038', 'tblTempUsageDetail_20' ) end [2025-02-08 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:43:22] Production.INFO: ==18527== Releasing lock... [2025-02-08 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:43:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:44:06 [end_date_ymd] => 2025-02-08 03:44:06 [RateCDR] => 1 ) [2025-02-08 03:44: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-02-08 00:44:06' and `end` < '2025-02-08 03:44: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-02-08 03:44:19] Production.INFO: count ==486 [2025-02-08 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:44:06 - End Time 2025-02-08 03:44:06 [2025-02-08 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427043', 'tblTempUsageDetail_20' ) start [2025-02-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427043', 'tblTempUsageDetail_20' ) end [2025-02-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427043', 'tblTempVendorCDR_20' ) start [2025-02-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427043', 'tblTempVendorCDR_20' ) end [2025-02-08 03:44:19] Production.INFO: ProcessCDR(1,14427043,1,1,2) [2025-02-08 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427043', 'tblTempUsageDetail_20' ) start [2025-02-08 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427043', 'tblTempUsageDetail_20' ) end [2025-02-08 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:44:23] Production.INFO: ==18628== Releasing lock... [2025-02-08 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:44:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:45:06 [end_date_ymd] => 2025-02-08 03:45:06 [RateCDR] => 1 ) [2025-02-08 03:45: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-02-08 00:45:06' and `end` < '2025-02-08 03:45: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-02-08 03:45:19] Production.INFO: count ==486 [2025-02-08 03:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:45:06 - End Time 2025-02-08 03:45:06 [2025-02-08 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427048', 'tblTempUsageDetail_20' ) start [2025-02-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427048', 'tblTempUsageDetail_20' ) end [2025-02-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427048', 'tblTempVendorCDR_20' ) start [2025-02-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427048', 'tblTempVendorCDR_20' ) end [2025-02-08 03:45:19] Production.INFO: ProcessCDR(1,14427048,1,1,2) [2025-02-08 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427048', 'tblTempUsageDetail_20' ) start [2025-02-08 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427048', 'tblTempUsageDetail_20' ) end [2025-02-08 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:45:22] Production.INFO: ==18732== Releasing lock... [2025-02-08 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:45:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:46:05 [end_date_ymd] => 2025-02-08 03:46:05 [RateCDR] => 1 ) [2025-02-08 03:46: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` >= '2025-02-08 00:46:05' and `end` < '2025-02-08 03:46: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 ,'') [2025-02-08 03:46:19] Production.INFO: count ==486 [2025-02-08 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:46:05 - End Time 2025-02-08 03:46:05 [2025-02-08 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427053', 'tblTempUsageDetail_20' ) start [2025-02-08 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427053', 'tblTempUsageDetail_20' ) end [2025-02-08 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427053', 'tblTempVendorCDR_20' ) start [2025-02-08 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427053', 'tblTempVendorCDR_20' ) end [2025-02-08 03:46:19] Production.INFO: ProcessCDR(1,14427053,1,1,2) [2025-02-08 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427053', 'tblTempUsageDetail_20' ) start [2025-02-08 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427053', 'tblTempUsageDetail_20' ) end [2025-02-08 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:46:22] Production.INFO: ==18872== Releasing lock... [2025-02-08 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:46:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:47:06 [end_date_ymd] => 2025-02-08 03:47:06 [RateCDR] => 1 ) [2025-02-08 03:47: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-02-08 00:47:06' and `end` < '2025-02-08 03:47: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-02-08 03:47:19] Production.INFO: count ==485 [2025-02-08 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:47:06 - End Time 2025-02-08 03:47:06 [2025-02-08 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427058', 'tblTempUsageDetail_20' ) start [2025-02-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427058', 'tblTempUsageDetail_20' ) end [2025-02-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427058', 'tblTempVendorCDR_20' ) start [2025-02-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427058', 'tblTempVendorCDR_20' ) end [2025-02-08 03:47:19] Production.INFO: ProcessCDR(1,14427058,1,1,2) [2025-02-08 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427058', 'tblTempUsageDetail_20' ) start [2025-02-08 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427058', 'tblTempUsageDetail_20' ) end [2025-02-08 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:47:22] Production.INFO: ==18978== Releasing lock... [2025-02-08 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:47:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:48:05 [end_date_ymd] => 2025-02-08 03:48:05 [RateCDR] => 1 ) [2025-02-08 03:48: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` >= '2025-02-08 00:48:05' and `end` < '2025-02-08 03:48: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 ,'') [2025-02-08 03:48:18] Production.INFO: count ==484 [2025-02-08 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:48:05 - End Time 2025-02-08 03:48:05 [2025-02-08 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427063', 'tblTempUsageDetail_20' ) start [2025-02-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427063', 'tblTempUsageDetail_20' ) end [2025-02-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427063', 'tblTempVendorCDR_20' ) start [2025-02-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427063', 'tblTempVendorCDR_20' ) end [2025-02-08 03:48:18] Production.INFO: ProcessCDR(1,14427063,1,1,2) [2025-02-08 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427063', 'tblTempUsageDetail_20' ) start [2025-02-08 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427063', 'tblTempUsageDetail_20' ) end [2025-02-08 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:48:22] Production.INFO: ==19076== Releasing lock... [2025-02-08 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:48:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:49:05 [end_date_ymd] => 2025-02-08 03:49:05 [RateCDR] => 1 ) [2025-02-08 03:49: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` >= '2025-02-08 00:49:05' and `end` < '2025-02-08 03:49: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 ,'') [2025-02-08 03:49:18] Production.INFO: count ==484 [2025-02-08 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:49:05 - End Time 2025-02-08 03:49:05 [2025-02-08 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427068', 'tblTempUsageDetail_20' ) start [2025-02-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427068', 'tblTempUsageDetail_20' ) end [2025-02-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427068', 'tblTempVendorCDR_20' ) start [2025-02-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427068', 'tblTempVendorCDR_20' ) end [2025-02-08 03:49:18] Production.INFO: ProcessCDR(1,14427068,1,1,2) [2025-02-08 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427068', 'tblTempUsageDetail_20' ) start [2025-02-08 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427068', 'tblTempUsageDetail_20' ) end [2025-02-08 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:49:22] Production.INFO: ==19188== Releasing lock... [2025-02-08 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:49:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:50:06 [end_date_ymd] => 2025-02-08 03:50:06 [RateCDR] => 1 ) [2025-02-08 03:50: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-02-08 00:50:06' and `end` < '2025-02-08 03:50: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-02-08 03:50:20] Production.INFO: count ==480 [2025-02-08 03:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:50:06 - End Time 2025-02-08 03:50:06 [2025-02-08 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427074', 'tblTempUsageDetail_20' ) start [2025-02-08 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427074', 'tblTempUsageDetail_20' ) end [2025-02-08 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427074', 'tblTempVendorCDR_20' ) start [2025-02-08 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427074', 'tblTempVendorCDR_20' ) end [2025-02-08 03:50:20] Production.INFO: ProcessCDR(1,14427074,1,1,2) [2025-02-08 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427074', 'tblTempUsageDetail_20' ) start [2025-02-08 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427074', 'tblTempUsageDetail_20' ) end [2025-02-08 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:50:24] Production.INFO: ==19294== Releasing lock... [2025-02-08 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:50:24] Production.INFO: 31 MB #Memory Used# [2025-02-08 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:51:06 [end_date_ymd] => 2025-02-08 03:51:06 [RateCDR] => 1 ) [2025-02-08 03:51: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-02-08 00:51:06' and `end` < '2025-02-08 03:51: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-02-08 03:51:19] Production.INFO: count ==456 [2025-02-08 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:51:06 - End Time 2025-02-08 03:51:06 [2025-02-08 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427079', 'tblTempUsageDetail_20' ) start [2025-02-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427079', 'tblTempUsageDetail_20' ) end [2025-02-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427079', 'tblTempVendorCDR_20' ) start [2025-02-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427079', 'tblTempVendorCDR_20' ) end [2025-02-08 03:51:19] Production.INFO: ProcessCDR(1,14427079,1,1,2) [2025-02-08 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427079', 'tblTempUsageDetail_20' ) start [2025-02-08 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427079', 'tblTempUsageDetail_20' ) end [2025-02-08 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:51:23] Production.INFO: ==19398== Releasing lock... [2025-02-08 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:52:05 [end_date_ymd] => 2025-02-08 03:52:05 [RateCDR] => 1 ) [2025-02-08 03:52: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` >= '2025-02-08 00:52:05' and `end` < '2025-02-08 03:52: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 ,'') [2025-02-08 03:52:18] Production.INFO: count ==455 [2025-02-08 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:52:05 - End Time 2025-02-08 03:52:05 [2025-02-08 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427084', 'tblTempUsageDetail_20' ) start [2025-02-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427084', 'tblTempUsageDetail_20' ) end [2025-02-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427084', 'tblTempVendorCDR_20' ) start [2025-02-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427084', 'tblTempVendorCDR_20' ) end [2025-02-08 03:52:18] Production.INFO: ProcessCDR(1,14427084,1,1,2) [2025-02-08 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427084', 'tblTempUsageDetail_20' ) start [2025-02-08 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427084', 'tblTempUsageDetail_20' ) end [2025-02-08 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:52:22] Production.INFO: ==19494== Releasing lock... [2025-02-08 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:53:05 [end_date_ymd] => 2025-02-08 03:53:05 [RateCDR] => 1 ) [2025-02-08 03:53: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` >= '2025-02-08 00:53:05' and `end` < '2025-02-08 03:53: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 ,'') [2025-02-08 03:53:18] Production.INFO: count ==452 [2025-02-08 03:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:53:05 - End Time 2025-02-08 03:53:05 [2025-02-08 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427089', 'tblTempUsageDetail_20' ) start [2025-02-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427089', 'tblTempUsageDetail_20' ) end [2025-02-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427089', 'tblTempVendorCDR_20' ) start [2025-02-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427089', 'tblTempVendorCDR_20' ) end [2025-02-08 03:53:18] Production.INFO: ProcessCDR(1,14427089,1,1,2) [2025-02-08 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427089', 'tblTempUsageDetail_20' ) start [2025-02-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427089', 'tblTempUsageDetail_20' ) end [2025-02-08 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:53:22] Production.INFO: ==19598== Releasing lock... [2025-02-08 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:54:05 [end_date_ymd] => 2025-02-08 03:54:05 [RateCDR] => 1 ) [2025-02-08 03:54: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` >= '2025-02-08 00:54:05' and `end` < '2025-02-08 03:54: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 ,'') [2025-02-08 03:54:20] Production.INFO: count ==454 [2025-02-08 03:54:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:54:05 - End Time 2025-02-08 03:54:05 [2025-02-08 03:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427094', 'tblTempUsageDetail_20' ) start [2025-02-08 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427094', 'tblTempUsageDetail_20' ) end [2025-02-08 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427094', 'tblTempVendorCDR_20' ) start [2025-02-08 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427094', 'tblTempVendorCDR_20' ) end [2025-02-08 03:54:20] Production.INFO: ProcessCDR(1,14427094,1,1,2) [2025-02-08 03:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427094', 'tblTempUsageDetail_20' ) start [2025-02-08 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427094', 'tblTempUsageDetail_20' ) end [2025-02-08 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:54:23] Production.INFO: ==19702== Releasing lock... [2025-02-08 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:54:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:55:06 [end_date_ymd] => 2025-02-08 03:55:06 [RateCDR] => 1 ) [2025-02-08 03:55: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-02-08 00:55:06' and `end` < '2025-02-08 03:55: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-02-08 03:55:19] Production.INFO: count ==451 [2025-02-08 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 00:55:06 - End Time 2025-02-08 03:55:06 [2025-02-08 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427099', 'tblTempUsageDetail_20' ) start [2025-02-08 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427099', 'tblTempUsageDetail_20' ) end [2025-02-08 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427099', 'tblTempVendorCDR_20' ) start [2025-02-08 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427099', 'tblTempVendorCDR_20' ) end [2025-02-08 03:55:19] Production.INFO: ProcessCDR(1,14427099,1,1,2) [2025-02-08 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427099', 'tblTempUsageDetail_20' ) start [2025-02-08 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427099', 'tblTempUsageDetail_20' ) end [2025-02-08 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:55:22] Production.INFO: ==19803== Releasing lock... [2025-02-08 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:55:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:56:05 [end_date_ymd] => 2025-02-08 03:56:05 [RateCDR] => 1 ) [2025-02-08 03:56: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` >= '2025-02-08 00:56:05' and `end` < '2025-02-08 03:56: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 ,'') [2025-02-08 03:56:18] Production.INFO: count ==450 [2025-02-08 03:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:56:05 - End Time 2025-02-08 03:56:05 [2025-02-08 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427104', 'tblTempUsageDetail_20' ) start [2025-02-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427104', 'tblTempUsageDetail_20' ) end [2025-02-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427104', 'tblTempVendorCDR_20' ) start [2025-02-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427104', 'tblTempVendorCDR_20' ) end [2025-02-08 03:56:18] Production.INFO: ProcessCDR(1,14427104,1,1,2) [2025-02-08 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427104', 'tblTempUsageDetail_20' ) start [2025-02-08 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427104', 'tblTempUsageDetail_20' ) end [2025-02-08 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:56:21] Production.INFO: ==19911== Releasing lock... [2025-02-08 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:57:05 [end_date_ymd] => 2025-02-08 03:57:05 [RateCDR] => 1 ) [2025-02-08 03:57: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` >= '2025-02-08 00:57:05' and `end` < '2025-02-08 03:57: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 ,'') [2025-02-08 03:57:18] Production.INFO: count ==446 [2025-02-08 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:57:05 - End Time 2025-02-08 03:57:05 [2025-02-08 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427109', 'tblTempUsageDetail_20' ) start [2025-02-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427109', 'tblTempUsageDetail_20' ) end [2025-02-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427109', 'tblTempVendorCDR_20' ) start [2025-02-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427109', 'tblTempVendorCDR_20' ) end [2025-02-08 03:57:18] Production.INFO: ProcessCDR(1,14427109,1,1,2) [2025-02-08 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427109', 'tblTempUsageDetail_20' ) start [2025-02-08 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427109', 'tblTempUsageDetail_20' ) end [2025-02-08 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:57:22] Production.INFO: ==20013== Releasing lock... [2025-02-08 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:58:06 [end_date_ymd] => 2025-02-08 03:58:06 [RateCDR] => 1 ) [2025-02-08 03:58: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-02-08 00:58:06' and `end` < '2025-02-08 03:58: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-02-08 03:58:20] Production.INFO: count ==446 [2025-02-08 03:58:20] Production.ERROR: pbx CDR StartTime 2025-02-08 00:58:06 - End Time 2025-02-08 03:58:06 [2025-02-08 03:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427114', 'tblTempUsageDetail_20' ) start [2025-02-08 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427114', 'tblTempUsageDetail_20' ) end [2025-02-08 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427114', 'tblTempVendorCDR_20' ) start [2025-02-08 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427114', 'tblTempVendorCDR_20' ) end [2025-02-08 03:58:20] Production.INFO: ProcessCDR(1,14427114,1,1,2) [2025-02-08 03:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427114', 'tblTempUsageDetail_20' ) start [2025-02-08 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427114', 'tblTempUsageDetail_20' ) end [2025-02-08 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:58:23] Production.INFO: ==20113== Releasing lock... [2025-02-08 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:58:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 00:59:06 [end_date_ymd] => 2025-02-08 03:59:06 [RateCDR] => 1 ) [2025-02-08 03:59: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-02-08 00:59:06' and `end` < '2025-02-08 03:59: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-02-08 03:59:18] Production.INFO: count ==442 [2025-02-08 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 00:59:06 - End Time 2025-02-08 03:59:06 [2025-02-08 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427119', 'tblTempUsageDetail_20' ) start [2025-02-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427119', 'tblTempUsageDetail_20' ) end [2025-02-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427119', 'tblTempVendorCDR_20' ) start [2025-02-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427119', 'tblTempVendorCDR_20' ) end [2025-02-08 03:59:18] Production.INFO: ProcessCDR(1,14427119,1,1,2) [2025-02-08 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427119', 'tblTempUsageDetail_20' ) start [2025-02-08 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427119', 'tblTempUsageDetail_20' ) end [2025-02-08 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 03:59:22] Production.INFO: ==20214== Releasing lock... [2025-02-08 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 03:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:00:07 [end_date_ymd] => 2025-02-08 04:00:07 [RateCDR] => 1 ) [2025-02-08 04: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-02-08 01:00:07' and `end` < '2025-02-08 04: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-02-08 04:00:21] Production.INFO: count ==436 [2025-02-08 04:00:21] Production.ERROR: pbx CDR StartTime 2025-02-08 01:00:07 - End Time 2025-02-08 04:00:07 [2025-02-08 04:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427126', 'tblTempUsageDetail_20' ) start [2025-02-08 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427126', 'tblTempUsageDetail_20' ) end [2025-02-08 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427126', 'tblTempVendorCDR_20' ) start [2025-02-08 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427126', 'tblTempVendorCDR_20' ) end [2025-02-08 04:00:21] Production.INFO: ProcessCDR(1,14427126,1,1,2) [2025-02-08 04:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427126', 'tblTempUsageDetail_20' ) start [2025-02-08 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427126', 'tblTempUsageDetail_20' ) end [2025-02-08 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:00:25] Production.INFO: ==20330== Releasing lock... [2025-02-08 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:00:25] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:01:06 [end_date_ymd] => 2025-02-08 04:01:06 [RateCDR] => 1 ) [2025-02-08 04: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` >= '2025-02-08 01:01:06' and `end` < '2025-02-08 04: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 ,'') [2025-02-08 04:01:19] Production.INFO: count ==414 [2025-02-08 04:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:01:06 - End Time 2025-02-08 04:01:06 [2025-02-08 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427131', 'tblTempUsageDetail_20' ) start [2025-02-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427131', 'tblTempUsageDetail_20' ) end [2025-02-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427131', 'tblTempVendorCDR_20' ) start [2025-02-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427131', 'tblTempVendorCDR_20' ) end [2025-02-08 04:01:19] Production.INFO: ProcessCDR(1,14427131,1,1,2) [2025-02-08 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427131', 'tblTempUsageDetail_20' ) start [2025-02-08 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427131', 'tblTempUsageDetail_20' ) end [2025-02-08 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:01:22] Production.INFO: ==20487== Releasing lock... [2025-02-08 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:02:06 [end_date_ymd] => 2025-02-08 04:02:06 [RateCDR] => 1 ) [2025-02-08 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 01:02:06' and `end` < '2025-02-08 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 04:02:19] Production.INFO: count ==412 [2025-02-08 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:02:06 - End Time 2025-02-08 04:02:06 [2025-02-08 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427136', 'tblTempUsageDetail_20' ) start [2025-02-08 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427136', 'tblTempUsageDetail_20' ) end [2025-02-08 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427136', 'tblTempVendorCDR_20' ) start [2025-02-08 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427136', 'tblTempVendorCDR_20' ) end [2025-02-08 04:02:19] Production.INFO: ProcessCDR(1,14427136,1,1,2) [2025-02-08 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427136', 'tblTempUsageDetail_20' ) start [2025-02-08 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427136', 'tblTempUsageDetail_20' ) end [2025-02-08 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:02:22] Production.INFO: ==20575== Releasing lock... [2025-02-08 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:03:05 [end_date_ymd] => 2025-02-08 04:03:05 [RateCDR] => 1 ) [2025-02-08 04:03: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` >= '2025-02-08 01:03:05' and `end` < '2025-02-08 04:03: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 ,'') [2025-02-08 04:03:19] Production.INFO: count ==412 [2025-02-08 04:03:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:03:05 - End Time 2025-02-08 04:03:05 [2025-02-08 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427141', 'tblTempUsageDetail_20' ) start [2025-02-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427141', 'tblTempUsageDetail_20' ) end [2025-02-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427141', 'tblTempVendorCDR_20' ) start [2025-02-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427141', 'tblTempVendorCDR_20' ) end [2025-02-08 04:03:19] Production.INFO: ProcessCDR(1,14427141,1,1,2) [2025-02-08 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427141', 'tblTempUsageDetail_20' ) start [2025-02-08 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427141', 'tblTempUsageDetail_20' ) end [2025-02-08 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:03:22] Production.INFO: ==20662== Releasing lock... [2025-02-08 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:04:06 [end_date_ymd] => 2025-02-08 04:04:06 [RateCDR] => 1 ) [2025-02-08 04:04: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-02-08 01:04:06' and `end` < '2025-02-08 04:04: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-02-08 04:04:20] Production.INFO: count ==411 [2025-02-08 04:04:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:04:06 - End Time 2025-02-08 04:04:06 [2025-02-08 04:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427146', 'tblTempUsageDetail_20' ) start [2025-02-08 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427146', 'tblTempUsageDetail_20' ) end [2025-02-08 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427146', 'tblTempVendorCDR_20' ) start [2025-02-08 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427146', 'tblTempVendorCDR_20' ) end [2025-02-08 04:04:20] Production.INFO: ProcessCDR(1,14427146,1,1,2) [2025-02-08 04:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427146', 'tblTempUsageDetail_20' ) start [2025-02-08 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427146', 'tblTempUsageDetail_20' ) end [2025-02-08 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:04:23] Production.INFO: ==20755== Releasing lock... [2025-02-08 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:05:05 [end_date_ymd] => 2025-02-08 04:05:05 [RateCDR] => 1 ) [2025-02-08 04:05: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` >= '2025-02-08 01:05:05' and `end` < '2025-02-08 04:05: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 ,'') [2025-02-08 04:05:18] Production.INFO: count ==408 [2025-02-08 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:05:05 - End Time 2025-02-08 04:05:05 [2025-02-08 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427151', 'tblTempUsageDetail_20' ) start [2025-02-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427151', 'tblTempUsageDetail_20' ) end [2025-02-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427151', 'tblTempVendorCDR_20' ) start [2025-02-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427151', 'tblTempVendorCDR_20' ) end [2025-02-08 04:05:18] Production.INFO: ProcessCDR(1,14427151,1,1,2) [2025-02-08 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427151', 'tblTempUsageDetail_20' ) start [2025-02-08 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427151', 'tblTempUsageDetail_20' ) end [2025-02-08 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:05:21] Production.INFO: ==20847== Releasing lock... [2025-02-08 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:06:05 [end_date_ymd] => 2025-02-08 04:06:05 [RateCDR] => 1 ) [2025-02-08 04:06: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` >= '2025-02-08 01:06:05' and `end` < '2025-02-08 04:06: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 ,'') [2025-02-08 04:06:18] Production.INFO: count ==408 [2025-02-08 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:06:05 - End Time 2025-02-08 04:06:05 [2025-02-08 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427156', 'tblTempUsageDetail_20' ) start [2025-02-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427156', 'tblTempUsageDetail_20' ) end [2025-02-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427156', 'tblTempVendorCDR_20' ) start [2025-02-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427156', 'tblTempVendorCDR_20' ) end [2025-02-08 04:06:18] Production.INFO: ProcessCDR(1,14427156,1,1,2) [2025-02-08 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427156', 'tblTempUsageDetail_20' ) start [2025-02-08 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427156', 'tblTempUsageDetail_20' ) end [2025-02-08 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:06:21] Production.INFO: ==20936== Releasing lock... [2025-02-08 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:07:05 [end_date_ymd] => 2025-02-08 04:07:05 [RateCDR] => 1 ) [2025-02-08 04:07: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` >= '2025-02-08 01:07:05' and `end` < '2025-02-08 04:07: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 ,'') [2025-02-08 04:07:19] Production.INFO: count ==404 [2025-02-08 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:07:05 - End Time 2025-02-08 04:07:05 [2025-02-08 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427161', 'tblTempUsageDetail_20' ) start [2025-02-08 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427161', 'tblTempUsageDetail_20' ) end [2025-02-08 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427161', 'tblTempVendorCDR_20' ) start [2025-02-08 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427161', 'tblTempVendorCDR_20' ) end [2025-02-08 04:07:19] Production.INFO: ProcessCDR(1,14427161,1,1,2) [2025-02-08 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427161', 'tblTempUsageDetail_20' ) start [2025-02-08 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427161', 'tblTempUsageDetail_20' ) end [2025-02-08 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:07:22] Production.INFO: ==21024== Releasing lock... [2025-02-08 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:08:06 [end_date_ymd] => 2025-02-08 04:08:06 [RateCDR] => 1 ) [2025-02-08 04:08: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-02-08 01:08:06' and `end` < '2025-02-08 04:08: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-02-08 04:08:19] Production.INFO: count ==403 [2025-02-08 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:08:06 - End Time 2025-02-08 04:08:06 [2025-02-08 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427166', 'tblTempUsageDetail_20' ) start [2025-02-08 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427166', 'tblTempUsageDetail_20' ) end [2025-02-08 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427166', 'tblTempVendorCDR_20' ) start [2025-02-08 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427166', 'tblTempVendorCDR_20' ) end [2025-02-08 04:08:19] Production.INFO: ProcessCDR(1,14427166,1,1,2) [2025-02-08 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427166', 'tblTempUsageDetail_20' ) start [2025-02-08 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427166', 'tblTempUsageDetail_20' ) end [2025-02-08 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:08:22] Production.INFO: ==21117== Releasing lock... [2025-02-08 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:09:05 [end_date_ymd] => 2025-02-08 04:09:05 [RateCDR] => 1 ) [2025-02-08 04:09: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` >= '2025-02-08 01:09:05' and `end` < '2025-02-08 04:09: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 ,'') [2025-02-08 04:09:18] Production.INFO: count ==403 [2025-02-08 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:09:05 - End Time 2025-02-08 04:09:05 [2025-02-08 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427171', 'tblTempUsageDetail_20' ) start [2025-02-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427171', 'tblTempUsageDetail_20' ) end [2025-02-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427171', 'tblTempVendorCDR_20' ) start [2025-02-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427171', 'tblTempVendorCDR_20' ) end [2025-02-08 04:09:18] Production.INFO: ProcessCDR(1,14427171,1,1,2) [2025-02-08 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427171', 'tblTempUsageDetail_20' ) start [2025-02-08 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427171', 'tblTempUsageDetail_20' ) end [2025-02-08 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:09:21] Production.INFO: ==21210== Releasing lock... [2025-02-08 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:10:06 [end_date_ymd] => 2025-02-08 04:10:06 [RateCDR] => 1 ) [2025-02-08 04:10: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-02-08 01:10:06' and `end` < '2025-02-08 04:10: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-02-08 04:10:20] Production.INFO: count ==397 [2025-02-08 04:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:10:06 - End Time 2025-02-08 04:10:06 [2025-02-08 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427177', 'tblTempUsageDetail_20' ) start [2025-02-08 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427177', 'tblTempUsageDetail_20' ) end [2025-02-08 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427177', 'tblTempVendorCDR_20' ) start [2025-02-08 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427177', 'tblTempVendorCDR_20' ) end [2025-02-08 04:10:20] Production.INFO: ProcessCDR(1,14427177,1,1,2) [2025-02-08 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427177', 'tblTempUsageDetail_20' ) start [2025-02-08 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427177', 'tblTempUsageDetail_20' ) end [2025-02-08 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:10:23] Production.INFO: ==21309== Releasing lock... [2025-02-08 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:11:05 [end_date_ymd] => 2025-02-08 04:11:05 [RateCDR] => 1 ) [2025-02-08 04:11: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` >= '2025-02-08 01:11:05' and `end` < '2025-02-08 04:11: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 ,'') [2025-02-08 04:11:18] Production.INFO: count ==383 [2025-02-08 04:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:11:05 - End Time 2025-02-08 04:11:05 [2025-02-08 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427182', 'tblTempUsageDetail_20' ) start [2025-02-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427182', 'tblTempUsageDetail_20' ) end [2025-02-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427182', 'tblTempVendorCDR_20' ) start [2025-02-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427182', 'tblTempVendorCDR_20' ) end [2025-02-08 04:11:18] Production.INFO: ProcessCDR(1,14427182,1,1,2) [2025-02-08 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427182', 'tblTempUsageDetail_20' ) start [2025-02-08 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427182', 'tblTempUsageDetail_20' ) end [2025-02-08 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:11:22] Production.INFO: ==21404== Releasing lock... [2025-02-08 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:12:05 [end_date_ymd] => 2025-02-08 04:12:05 [RateCDR] => 1 ) [2025-02-08 04:12: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` >= '2025-02-08 01:12:05' and `end` < '2025-02-08 04:12: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 ,'') [2025-02-08 04:12:18] Production.INFO: count ==383 [2025-02-08 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:12:05 - End Time 2025-02-08 04:12:05 [2025-02-08 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427187', 'tblTempUsageDetail_20' ) start [2025-02-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427187', 'tblTempUsageDetail_20' ) end [2025-02-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427187', 'tblTempVendorCDR_20' ) start [2025-02-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427187', 'tblTempVendorCDR_20' ) end [2025-02-08 04:12:18] Production.INFO: ProcessCDR(1,14427187,1,1,2) [2025-02-08 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427187', 'tblTempUsageDetail_20' ) start [2025-02-08 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427187', 'tblTempUsageDetail_20' ) end [2025-02-08 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:12:21] Production.INFO: ==21493== Releasing lock... [2025-02-08 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:13:05 [end_date_ymd] => 2025-02-08 04:13:05 [RateCDR] => 1 ) [2025-02-08 04:13: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` >= '2025-02-08 01:13:05' and `end` < '2025-02-08 04:13: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 ,'') [2025-02-08 04:13:19] Production.INFO: count ==383 [2025-02-08 04:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:13:05 - End Time 2025-02-08 04:13:05 [2025-02-08 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427192', 'tblTempUsageDetail_20' ) start [2025-02-08 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427192', 'tblTempUsageDetail_20' ) end [2025-02-08 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427192', 'tblTempVendorCDR_20' ) start [2025-02-08 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427192', 'tblTempVendorCDR_20' ) end [2025-02-08 04:13:19] Production.INFO: ProcessCDR(1,14427192,1,1,2) [2025-02-08 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427192', 'tblTempUsageDetail_20' ) start [2025-02-08 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427192', 'tblTempUsageDetail_20' ) end [2025-02-08 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:13:22] Production.INFO: ==21580== Releasing lock... [2025-02-08 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:14:05 [end_date_ymd] => 2025-02-08 04:14:05 [RateCDR] => 1 ) [2025-02-08 04:14: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` >= '2025-02-08 01:14:05' and `end` < '2025-02-08 04:14: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 ,'') [2025-02-08 04:14:17] Production.INFO: count ==383 [2025-02-08 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:14:05 - End Time 2025-02-08 04:14:05 [2025-02-08 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427197', 'tblTempUsageDetail_20' ) start [2025-02-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427197', 'tblTempUsageDetail_20' ) end [2025-02-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427197', 'tblTempVendorCDR_20' ) start [2025-02-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427197', 'tblTempVendorCDR_20' ) end [2025-02-08 04:14:18] Production.INFO: ProcessCDR(1,14427197,1,1,2) [2025-02-08 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427197', 'tblTempUsageDetail_20' ) start [2025-02-08 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427197', 'tblTempUsageDetail_20' ) end [2025-02-08 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:14:21] Production.INFO: ==21670== Releasing lock... [2025-02-08 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:15:06 [end_date_ymd] => 2025-02-08 04:15:06 [RateCDR] => 1 ) [2025-02-08 04:15: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-02-08 01:15:06' and `end` < '2025-02-08 04:15: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-02-08 04:15:19] Production.INFO: count ==383 [2025-02-08 04:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:15:06 - End Time 2025-02-08 04:15:06 [2025-02-08 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427202', 'tblTempUsageDetail_20' ) start [2025-02-08 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427202', 'tblTempUsageDetail_20' ) end [2025-02-08 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427202', 'tblTempVendorCDR_20' ) start [2025-02-08 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427202', 'tblTempVendorCDR_20' ) end [2025-02-08 04:15:19] Production.INFO: ProcessCDR(1,14427202,1,1,2) [2025-02-08 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427202', 'tblTempUsageDetail_20' ) start [2025-02-08 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427202', 'tblTempUsageDetail_20' ) end [2025-02-08 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:15:22] Production.INFO: ==21761== Releasing lock... [2025-02-08 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:16:05 [end_date_ymd] => 2025-02-08 04:16:05 [RateCDR] => 1 ) [2025-02-08 04:16: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` >= '2025-02-08 01:16:05' and `end` < '2025-02-08 04:16: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 ,'') [2025-02-08 04:16:18] Production.INFO: count ==383 [2025-02-08 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:16:05 - End Time 2025-02-08 04:16:05 [2025-02-08 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427207', 'tblTempUsageDetail_20' ) start [2025-02-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427207', 'tblTempUsageDetail_20' ) end [2025-02-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427207', 'tblTempVendorCDR_20' ) start [2025-02-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427207', 'tblTempVendorCDR_20' ) end [2025-02-08 04:16:18] Production.INFO: ProcessCDR(1,14427207,1,1,2) [2025-02-08 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427207', 'tblTempUsageDetail_20' ) start [2025-02-08 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427207', 'tblTempUsageDetail_20' ) end [2025-02-08 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:16:21] Production.INFO: ==21886== Releasing lock... [2025-02-08 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:17:05 [end_date_ymd] => 2025-02-08 04:17:05 [RateCDR] => 1 ) [2025-02-08 04:17: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` >= '2025-02-08 01:17:05' and `end` < '2025-02-08 04:17: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 ,'') [2025-02-08 04:17:19] Production.INFO: count ==383 [2025-02-08 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:17:05 - End Time 2025-02-08 04:17:05 [2025-02-08 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427212', 'tblTempUsageDetail_20' ) start [2025-02-08 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427212', 'tblTempUsageDetail_20' ) end [2025-02-08 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427212', 'tblTempVendorCDR_20' ) start [2025-02-08 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427212', 'tblTempVendorCDR_20' ) end [2025-02-08 04:17:19] Production.INFO: ProcessCDR(1,14427212,1,1,2) [2025-02-08 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427212', 'tblTempUsageDetail_20' ) start [2025-02-08 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427212', 'tblTempUsageDetail_20' ) end [2025-02-08 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:17:22] Production.INFO: ==21974== Releasing lock... [2025-02-08 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:18:05 [end_date_ymd] => 2025-02-08 04:18:05 [RateCDR] => 1 ) [2025-02-08 04:18: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` >= '2025-02-08 01:18:05' and `end` < '2025-02-08 04:18: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 ,'') [2025-02-08 04:18:18] Production.INFO: count ==383 [2025-02-08 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:18:05 - End Time 2025-02-08 04:18:05 [2025-02-08 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427217', 'tblTempUsageDetail_20' ) start [2025-02-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427217', 'tblTempUsageDetail_20' ) end [2025-02-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427217', 'tblTempVendorCDR_20' ) start [2025-02-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427217', 'tblTempVendorCDR_20' ) end [2025-02-08 04:18:18] Production.INFO: ProcessCDR(1,14427217,1,1,2) [2025-02-08 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427217', 'tblTempUsageDetail_20' ) start [2025-02-08 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427217', 'tblTempUsageDetail_20' ) end [2025-02-08 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:18:21] Production.INFO: ==22072== Releasing lock... [2025-02-08 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:19:05 [end_date_ymd] => 2025-02-08 04:19:05 [RateCDR] => 1 ) [2025-02-08 04:19: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` >= '2025-02-08 01:19:05' and `end` < '2025-02-08 04:19: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 ,'') [2025-02-08 04:19:20] Production.INFO: count ==383 [2025-02-08 04:19:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:19:05 - End Time 2025-02-08 04:19:05 [2025-02-08 04:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427222', 'tblTempUsageDetail_20' ) start [2025-02-08 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427222', 'tblTempUsageDetail_20' ) end [2025-02-08 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427222', 'tblTempVendorCDR_20' ) start [2025-02-08 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427222', 'tblTempVendorCDR_20' ) end [2025-02-08 04:19:20] Production.INFO: ProcessCDR(1,14427222,1,1,2) [2025-02-08 04:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427222', 'tblTempUsageDetail_20' ) start [2025-02-08 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427222', 'tblTempUsageDetail_20' ) end [2025-02-08 04:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:19:23] Production.INFO: ==22164== Releasing lock... [2025-02-08 04:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:19:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:20:06 [end_date_ymd] => 2025-02-08 04:20:06 [RateCDR] => 1 ) [2025-02-08 04:20: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-02-08 01:20:06' and `end` < '2025-02-08 04:20: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-02-08 04:20:19] Production.INFO: count ==378 [2025-02-08 04:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:20:06 - End Time 2025-02-08 04:20:06 [2025-02-08 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427228', 'tblTempUsageDetail_20' ) start [2025-02-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427228', 'tblTempUsageDetail_20' ) end [2025-02-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427228', 'tblTempVendorCDR_20' ) start [2025-02-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427228', 'tblTempVendorCDR_20' ) end [2025-02-08 04:20:19] Production.INFO: ProcessCDR(1,14427228,1,1,2) [2025-02-08 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427228', 'tblTempUsageDetail_20' ) start [2025-02-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427228', 'tblTempUsageDetail_20' ) end [2025-02-08 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:20:22] Production.INFO: ==22255== Releasing lock... [2025-02-08 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:20:22] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:21:05 [end_date_ymd] => 2025-02-08 04:21:05 [RateCDR] => 1 ) [2025-02-08 04:21: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` >= '2025-02-08 01:21:05' and `end` < '2025-02-08 04:21: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 ,'') [2025-02-08 04:21:18] Production.INFO: count ==368 [2025-02-08 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:21:05 - End Time 2025-02-08 04:21:05 [2025-02-08 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427233', 'tblTempUsageDetail_20' ) start [2025-02-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427233', 'tblTempUsageDetail_20' ) end [2025-02-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427233', 'tblTempVendorCDR_20' ) start [2025-02-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427233', 'tblTempVendorCDR_20' ) end [2025-02-08 04:21:18] Production.INFO: ProcessCDR(1,14427233,1,1,2) [2025-02-08 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427233', 'tblTempUsageDetail_20' ) start [2025-02-08 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427233', 'tblTempUsageDetail_20' ) end [2025-02-08 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:21:22] Production.INFO: ==22346== Releasing lock... [2025-02-08 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:22:05 [end_date_ymd] => 2025-02-08 04:22:05 [RateCDR] => 1 ) [2025-02-08 04:22: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` >= '2025-02-08 01:22:05' and `end` < '2025-02-08 04:22: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 ,'') [2025-02-08 04:22:19] Production.INFO: count ==368 [2025-02-08 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:22:05 - End Time 2025-02-08 04:22:05 [2025-02-08 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427234', 'tblTempUsageDetail_20' ) start [2025-02-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427234', 'tblTempUsageDetail_20' ) end [2025-02-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427234', 'tblTempVendorCDR_20' ) start [2025-02-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427234', 'tblTempVendorCDR_20' ) end [2025-02-08 04:22:19] Production.INFO: ProcessCDR(1,14427234,1,1,2) [2025-02-08 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427234', 'tblTempUsageDetail_20' ) start [2025-02-08 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427234', 'tblTempUsageDetail_20' ) end [2025-02-08 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:22:22] Production.INFO: ==22432== Releasing lock... [2025-02-08 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:23:05 [end_date_ymd] => 2025-02-08 04:23:05 [RateCDR] => 1 ) [2025-02-08 04:23: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` >= '2025-02-08 01:23:05' and `end` < '2025-02-08 04:23: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 ,'') [2025-02-08 04:23:18] Production.INFO: count ==368 [2025-02-08 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:23:05 - End Time 2025-02-08 04:23:05 [2025-02-08 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427243', 'tblTempUsageDetail_20' ) start [2025-02-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427243', 'tblTempUsageDetail_20' ) end [2025-02-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427243', 'tblTempVendorCDR_20' ) start [2025-02-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427243', 'tblTempVendorCDR_20' ) end [2025-02-08 04:23:18] Production.INFO: ProcessCDR(1,14427243,1,1,2) [2025-02-08 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427243', 'tblTempUsageDetail_20' ) start [2025-02-08 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427243', 'tblTempUsageDetail_20' ) end [2025-02-08 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:23:21] Production.INFO: ==22524== Releasing lock... [2025-02-08 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:24:05 [end_date_ymd] => 2025-02-08 04:24:05 [RateCDR] => 1 ) [2025-02-08 04:24: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` >= '2025-02-08 01:24:05' and `end` < '2025-02-08 04:24: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 ,'') [2025-02-08 04:24:19] Production.INFO: count ==368 [2025-02-08 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:24:05 - End Time 2025-02-08 04:24:05 [2025-02-08 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427248', 'tblTempUsageDetail_20' ) start [2025-02-08 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427248', 'tblTempUsageDetail_20' ) end [2025-02-08 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427248', 'tblTempVendorCDR_20' ) start [2025-02-08 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427248', 'tblTempVendorCDR_20' ) end [2025-02-08 04:24:19] Production.INFO: ProcessCDR(1,14427248,1,1,2) [2025-02-08 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427248', 'tblTempUsageDetail_20' ) start [2025-02-08 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427248', 'tblTempUsageDetail_20' ) end [2025-02-08 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:24:22] Production.INFO: ==22607== Releasing lock... [2025-02-08 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:25:05 [end_date_ymd] => 2025-02-08 04:25:05 [RateCDR] => 1 ) [2025-02-08 04:25: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` >= '2025-02-08 01:25:05' and `end` < '2025-02-08 04:25: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 ,'') [2025-02-08 04:25:18] Production.INFO: count ==368 [2025-02-08 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:25:05 - End Time 2025-02-08 04:25:05 [2025-02-08 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427253', 'tblTempUsageDetail_20' ) start [2025-02-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427253', 'tblTempUsageDetail_20' ) end [2025-02-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427253', 'tblTempVendorCDR_20' ) start [2025-02-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427253', 'tblTempVendorCDR_20' ) end [2025-02-08 04:25:18] Production.INFO: ProcessCDR(1,14427253,1,1,2) [2025-02-08 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427253', 'tblTempUsageDetail_20' ) start [2025-02-08 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427253', 'tblTempUsageDetail_20' ) end [2025-02-08 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:25:21] Production.INFO: ==22694== Releasing lock... [2025-02-08 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:26:05 [end_date_ymd] => 2025-02-08 04:26:05 [RateCDR] => 1 ) [2025-02-08 04:26: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` >= '2025-02-08 01:26:05' and `end` < '2025-02-08 04:26: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 ,'') [2025-02-08 04:26:18] Production.INFO: count ==368 [2025-02-08 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:26:05 - End Time 2025-02-08 04:26:05 [2025-02-08 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427258', 'tblTempUsageDetail_20' ) start [2025-02-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427258', 'tblTempUsageDetail_20' ) end [2025-02-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427258', 'tblTempVendorCDR_20' ) start [2025-02-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427258', 'tblTempVendorCDR_20' ) end [2025-02-08 04:26:18] Production.INFO: ProcessCDR(1,14427258,1,1,2) [2025-02-08 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427258', 'tblTempUsageDetail_20' ) start [2025-02-08 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427258', 'tblTempUsageDetail_20' ) end [2025-02-08 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:26:21] Production.INFO: ==22778== Releasing lock... [2025-02-08 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:27:05 [end_date_ymd] => 2025-02-08 04:27:05 [RateCDR] => 1 ) [2025-02-08 04:27: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` >= '2025-02-08 01:27:05' and `end` < '2025-02-08 04:27: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 ,'') [2025-02-08 04:27:17] Production.INFO: count ==368 [2025-02-08 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:27:05 - End Time 2025-02-08 04:27:05 [2025-02-08 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427263', 'tblTempUsageDetail_20' ) start [2025-02-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427263', 'tblTempUsageDetail_20' ) end [2025-02-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427263', 'tblTempVendorCDR_20' ) start [2025-02-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427263', 'tblTempVendorCDR_20' ) end [2025-02-08 04:27:18] Production.INFO: ProcessCDR(1,14427263,1,1,2) [2025-02-08 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427263', 'tblTempUsageDetail_20' ) start [2025-02-08 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427263', 'tblTempUsageDetail_20' ) end [2025-02-08 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:27:21] Production.INFO: ==22863== Releasing lock... [2025-02-08 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:28:05 [end_date_ymd] => 2025-02-08 04:28:05 [RateCDR] => 1 ) [2025-02-08 04:28: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` >= '2025-02-08 01:28:05' and `end` < '2025-02-08 04:28: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 ,'') [2025-02-08 04:28:19] Production.INFO: count ==366 [2025-02-08 04:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:28:05 - End Time 2025-02-08 04:28:05 [2025-02-08 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427268', 'tblTempUsageDetail_20' ) start [2025-02-08 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427268', 'tblTempUsageDetail_20' ) end [2025-02-08 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427268', 'tblTempVendorCDR_20' ) start [2025-02-08 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427268', 'tblTempVendorCDR_20' ) end [2025-02-08 04:28:19] Production.INFO: ProcessCDR(1,14427268,1,1,2) [2025-02-08 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427268', 'tblTempUsageDetail_20' ) start [2025-02-08 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427268', 'tblTempUsageDetail_20' ) end [2025-02-08 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:28:22] Production.INFO: ==22951== Releasing lock... [2025-02-08 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:29:06 [end_date_ymd] => 2025-02-08 04:29:06 [RateCDR] => 1 ) [2025-02-08 04:29: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-02-08 01:29:06' and `end` < '2025-02-08 04:29: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-02-08 04:29:19] Production.INFO: count ==366 [2025-02-08 04:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:29:06 - End Time 2025-02-08 04:29:06 [2025-02-08 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427273', 'tblTempUsageDetail_20' ) start [2025-02-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427273', 'tblTempUsageDetail_20' ) end [2025-02-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427273', 'tblTempVendorCDR_20' ) start [2025-02-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427273', 'tblTempVendorCDR_20' ) end [2025-02-08 04:29:19] Production.INFO: ProcessCDR(1,14427273,1,1,2) [2025-02-08 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427273', 'tblTempUsageDetail_20' ) start [2025-02-08 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427273', 'tblTempUsageDetail_20' ) end [2025-02-08 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:29:22] Production.INFO: ==23036== Releasing lock... [2025-02-08 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:30:06 [end_date_ymd] => 2025-02-08 04:30:06 [RateCDR] => 1 ) [2025-02-08 04:30: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-02-08 01:30:06' and `end` < '2025-02-08 04:30: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-02-08 04:30:19] Production.INFO: count ==364 [2025-02-08 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:30:06 - End Time 2025-02-08 04:30:06 [2025-02-08 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427279', 'tblTempUsageDetail_20' ) start [2025-02-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427279', 'tblTempUsageDetail_20' ) end [2025-02-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427279', 'tblTempVendorCDR_20' ) start [2025-02-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427279', 'tblTempVendorCDR_20' ) end [2025-02-08 04:30:19] Production.INFO: ProcessCDR(1,14427279,1,1,2) [2025-02-08 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427279', 'tblTempUsageDetail_20' ) start [2025-02-08 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427279', 'tblTempUsageDetail_20' ) end [2025-02-08 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:30:22] Production.INFO: ==23125== Releasing lock... [2025-02-08 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:31:06 [end_date_ymd] => 2025-02-08 04:31:06 [RateCDR] => 1 ) [2025-02-08 04:31: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-02-08 01:31:06' and `end` < '2025-02-08 04:31: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-02-08 04:31:20] Production.INFO: count ==335 [2025-02-08 04:31:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:31:06 - End Time 2025-02-08 04:31:06 [2025-02-08 04:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427285', 'tblTempUsageDetail_20' ) start [2025-02-08 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427285', 'tblTempUsageDetail_20' ) end [2025-02-08 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427285', 'tblTempVendorCDR_20' ) start [2025-02-08 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427285', 'tblTempVendorCDR_20' ) end [2025-02-08 04:31:20] Production.INFO: ProcessCDR(1,14427285,1,1,2) [2025-02-08 04:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427285', 'tblTempUsageDetail_20' ) start [2025-02-08 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427285', 'tblTempUsageDetail_20' ) end [2025-02-08 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:31:23] Production.INFO: ==23213== Releasing lock... [2025-02-08 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:31:23] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:32:05 [end_date_ymd] => 2025-02-08 04:32:05 [RateCDR] => 1 ) [2025-02-08 04:32: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` >= '2025-02-08 01:32:05' and `end` < '2025-02-08 04:32: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 ,'') [2025-02-08 04:32:18] Production.INFO: count ==333 [2025-02-08 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:32:05 - End Time 2025-02-08 04:32:05 [2025-02-08 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427290', 'tblTempUsageDetail_20' ) start [2025-02-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427290', 'tblTempUsageDetail_20' ) end [2025-02-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427290', 'tblTempVendorCDR_20' ) start [2025-02-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427290', 'tblTempVendorCDR_20' ) end [2025-02-08 04:32:18] Production.INFO: ProcessCDR(1,14427290,1,1,2) [2025-02-08 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427290', 'tblTempUsageDetail_20' ) start [2025-02-08 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427290', 'tblTempUsageDetail_20' ) end [2025-02-08 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:32:22] Production.INFO: ==23648== Releasing lock... [2025-02-08 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:32:22] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:33:05 [end_date_ymd] => 2025-02-08 04:33:05 [RateCDR] => 1 ) [2025-02-08 04:33: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` >= '2025-02-08 01:33:05' and `end` < '2025-02-08 04:33: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 ,'') [2025-02-08 04:33:18] Production.INFO: count ==333 [2025-02-08 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:33:05 - End Time 2025-02-08 04:33:05 [2025-02-08 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427295', 'tblTempUsageDetail_20' ) start [2025-02-08 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427295', 'tblTempUsageDetail_20' ) end [2025-02-08 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427295', 'tblTempVendorCDR_20' ) start [2025-02-08 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427295', 'tblTempVendorCDR_20' ) end [2025-02-08 04:33:18] Production.INFO: ProcessCDR(1,14427295,1,1,2) [2025-02-08 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427295', 'tblTempUsageDetail_20' ) start [2025-02-08 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427295', 'tblTempUsageDetail_20' ) end [2025-02-08 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:33:21] Production.INFO: ==23778== Releasing lock... [2025-02-08 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:34:04 [end_date_ymd] => 2025-02-08 04:34:04 [RateCDR] => 1 ) [2025-02-08 04:34:04] 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-02-08 01:34:04' and `end` < '2025-02-08 04:34:04' 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-02-08 04:34:17] Production.INFO: count ==333 [2025-02-08 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-08 01:34:04 - End Time 2025-02-08 04:34:04 [2025-02-08 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427300', 'tblTempUsageDetail_20' ) start [2025-02-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427300', 'tblTempUsageDetail_20' ) end [2025-02-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427300', 'tblTempVendorCDR_20' ) start [2025-02-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427300', 'tblTempVendorCDR_20' ) end [2025-02-08 04:34:17] Production.INFO: ProcessCDR(1,14427300,1,1,2) [2025-02-08 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427300', 'tblTempUsageDetail_20' ) start [2025-02-08 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427300', 'tblTempUsageDetail_20' ) end [2025-02-08 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:34:20] Production.INFO: ==23860== Releasing lock... [2025-02-08 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:34:20] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:35:05 [end_date_ymd] => 2025-02-08 04:35:05 [RateCDR] => 1 ) [2025-02-08 04:35: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` >= '2025-02-08 01:35:05' and `end` < '2025-02-08 04:35: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 ,'') [2025-02-08 04:35:18] Production.INFO: count ==331 [2025-02-08 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:35:05 - End Time 2025-02-08 04:35:05 [2025-02-08 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427305', 'tblTempUsageDetail_20' ) start [2025-02-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427305', 'tblTempUsageDetail_20' ) end [2025-02-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427305', 'tblTempVendorCDR_20' ) start [2025-02-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427305', 'tblTempVendorCDR_20' ) end [2025-02-08 04:35:18] Production.INFO: ProcessCDR(1,14427305,1,1,2) [2025-02-08 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427305', 'tblTempUsageDetail_20' ) start [2025-02-08 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427305', 'tblTempUsageDetail_20' ) end [2025-02-08 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:35:21] Production.INFO: ==23944== Releasing lock... [2025-02-08 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:36:05 [end_date_ymd] => 2025-02-08 04:36:05 [RateCDR] => 1 ) [2025-02-08 04:36: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` >= '2025-02-08 01:36:05' and `end` < '2025-02-08 04:36: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 ,'') [2025-02-08 04:36:18] Production.INFO: count ==332 [2025-02-08 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:36:05 - End Time 2025-02-08 04:36:05 [2025-02-08 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427310', 'tblTempUsageDetail_20' ) start [2025-02-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427310', 'tblTempUsageDetail_20' ) end [2025-02-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427310', 'tblTempVendorCDR_20' ) start [2025-02-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427310', 'tblTempVendorCDR_20' ) end [2025-02-08 04:36:18] Production.INFO: ProcessCDR(1,14427310,1,1,2) [2025-02-08 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427310', 'tblTempUsageDetail_20' ) start [2025-02-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427310', 'tblTempUsageDetail_20' ) end [2025-02-08 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:36:21] Production.INFO: ==24029== Releasing lock... [2025-02-08 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:36:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:37:05 [end_date_ymd] => 2025-02-08 04:37:05 [RateCDR] => 1 ) [2025-02-08 04:37: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` >= '2025-02-08 01:37:05' and `end` < '2025-02-08 04:37: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 ,'') [2025-02-08 04:37:19] Production.INFO: count ==334 [2025-02-08 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:37:05 - End Time 2025-02-08 04:37:05 [2025-02-08 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427315', 'tblTempUsageDetail_20' ) start [2025-02-08 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427315', 'tblTempUsageDetail_20' ) end [2025-02-08 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427315', 'tblTempVendorCDR_20' ) start [2025-02-08 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427315', 'tblTempVendorCDR_20' ) end [2025-02-08 04:37:19] Production.INFO: ProcessCDR(1,14427315,1,1,2) [2025-02-08 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427315', 'tblTempUsageDetail_20' ) start [2025-02-08 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427315', 'tblTempUsageDetail_20' ) end [2025-02-08 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:37:22] Production.INFO: ==24119== Releasing lock... [2025-02-08 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:37:22] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:38:05 [end_date_ymd] => 2025-02-08 04:38:05 [RateCDR] => 1 ) [2025-02-08 04:38: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` >= '2025-02-08 01:38:05' and `end` < '2025-02-08 04:38: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 ,'') [2025-02-08 04:38:18] Production.INFO: count ==333 [2025-02-08 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:38:05 - End Time 2025-02-08 04:38:05 [2025-02-08 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427320', 'tblTempUsageDetail_20' ) start [2025-02-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427320', 'tblTempUsageDetail_20' ) end [2025-02-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427320', 'tblTempVendorCDR_20' ) start [2025-02-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427320', 'tblTempVendorCDR_20' ) end [2025-02-08 04:38:18] Production.INFO: ProcessCDR(1,14427320,1,1,2) [2025-02-08 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427320', 'tblTempUsageDetail_20' ) start [2025-02-08 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427320', 'tblTempUsageDetail_20' ) end [2025-02-08 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:38:21] Production.INFO: ==24204== Releasing lock... [2025-02-08 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:39:05 [end_date_ymd] => 2025-02-08 04:39:05 [RateCDR] => 1 ) [2025-02-08 04:39: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` >= '2025-02-08 01:39:05' and `end` < '2025-02-08 04:39: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 ,'') [2025-02-08 04:39:18] Production.INFO: count ==333 [2025-02-08 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:39:05 - End Time 2025-02-08 04:39:05 [2025-02-08 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427325', 'tblTempUsageDetail_20' ) start [2025-02-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427325', 'tblTempUsageDetail_20' ) end [2025-02-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427325', 'tblTempVendorCDR_20' ) start [2025-02-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427325', 'tblTempVendorCDR_20' ) end [2025-02-08 04:39:18] Production.INFO: ProcessCDR(1,14427325,1,1,2) [2025-02-08 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427325', 'tblTempUsageDetail_20' ) start [2025-02-08 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427325', 'tblTempUsageDetail_20' ) end [2025-02-08 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:39:21] Production.INFO: ==24293== Releasing lock... [2025-02-08 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:39:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:40:06 [end_date_ymd] => 2025-02-08 04:40:06 [RateCDR] => 1 ) [2025-02-08 04:40: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-02-08 01:40:06' and `end` < '2025-02-08 04:40: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-02-08 04:40:20] Production.INFO: count ==331 [2025-02-08 04:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:40:06 - End Time 2025-02-08 04:40:06 [2025-02-08 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427331', 'tblTempUsageDetail_20' ) start [2025-02-08 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427331', 'tblTempUsageDetail_20' ) end [2025-02-08 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427331', 'tblTempVendorCDR_20' ) start [2025-02-08 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427331', 'tblTempVendorCDR_20' ) end [2025-02-08 04:40:20] Production.INFO: ProcessCDR(1,14427331,1,1,2) [2025-02-08 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427331', 'tblTempUsageDetail_20' ) start [2025-02-08 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427331', 'tblTempUsageDetail_20' ) end [2025-02-08 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:40:23] Production.INFO: ==24365== Releasing lock... [2025-02-08 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:40:23] Production.INFO: 30 MB #Memory Used# [2025-02-08 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:41:04 [end_date_ymd] => 2025-02-08 04:41:04 [RateCDR] => 1 ) [2025-02-08 04:41:04] 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-02-08 01:41:04' and `end` < '2025-02-08 04:41:04' 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-02-08 04:41:17] Production.INFO: count ==307 [2025-02-08 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-08 01:41:04 - End Time 2025-02-08 04:41:04 [2025-02-08 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427336', 'tblTempUsageDetail_20' ) start [2025-02-08 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427336', 'tblTempUsageDetail_20' ) end [2025-02-08 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427336', 'tblTempVendorCDR_20' ) start [2025-02-08 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427336', 'tblTempVendorCDR_20' ) end [2025-02-08 04:41:17] Production.INFO: ProcessCDR(1,14427336,1,1,2) [2025-02-08 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427336', 'tblTempUsageDetail_20' ) start [2025-02-08 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427336', 'tblTempUsageDetail_20' ) end [2025-02-08 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:41:20] Production.INFO: ==24438== Releasing lock... [2025-02-08 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:41:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:42:06 [end_date_ymd] => 2025-02-08 04:42:06 [RateCDR] => 1 ) [2025-02-08 04:42: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-02-08 01:42:06' and `end` < '2025-02-08 04:42: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-02-08 04:42:18] Production.INFO: count ==306 [2025-02-08 04:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:42:06 - End Time 2025-02-08 04:42:06 [2025-02-08 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427341', 'tblTempUsageDetail_20' ) start [2025-02-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427341', 'tblTempUsageDetail_20' ) end [2025-02-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427341', 'tblTempVendorCDR_20' ) start [2025-02-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427341', 'tblTempVendorCDR_20' ) end [2025-02-08 04:42:19] Production.INFO: ProcessCDR(1,14427341,1,1,2) [2025-02-08 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427341', 'tblTempUsageDetail_20' ) start [2025-02-08 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427341', 'tblTempUsageDetail_20' ) end [2025-02-08 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:42:21] Production.INFO: ==24512== Releasing lock... [2025-02-08 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:43:05 [end_date_ymd] => 2025-02-08 04:43:05 [RateCDR] => 1 ) [2025-02-08 04:43: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` >= '2025-02-08 01:43:05' and `end` < '2025-02-08 04:43: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 ,'') [2025-02-08 04:43:19] Production.INFO: count ==303 [2025-02-08 04:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:43:05 - End Time 2025-02-08 04:43:05 [2025-02-08 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427346', 'tblTempUsageDetail_20' ) start [2025-02-08 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427346', 'tblTempUsageDetail_20' ) end [2025-02-08 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427346', 'tblTempVendorCDR_20' ) start [2025-02-08 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427346', 'tblTempVendorCDR_20' ) end [2025-02-08 04:43:19] Production.INFO: ProcessCDR(1,14427346,1,1,2) [2025-02-08 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427346', 'tblTempUsageDetail_20' ) start [2025-02-08 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427346', 'tblTempUsageDetail_20' ) end [2025-02-08 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:43:22] Production.INFO: ==24583== Releasing lock... [2025-02-08 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:44:05 [end_date_ymd] => 2025-02-08 04:44:05 [RateCDR] => 1 ) [2025-02-08 04:44: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` >= '2025-02-08 01:44:05' and `end` < '2025-02-08 04:44: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 ,'') [2025-02-08 04:44:18] Production.INFO: count ==303 [2025-02-08 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:44:05 - End Time 2025-02-08 04:44:05 [2025-02-08 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427351', 'tblTempUsageDetail_20' ) start [2025-02-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427351', 'tblTempUsageDetail_20' ) end [2025-02-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427351', 'tblTempVendorCDR_20' ) start [2025-02-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427351', 'tblTempVendorCDR_20' ) end [2025-02-08 04:44:18] Production.INFO: ProcessCDR(1,14427351,1,1,2) [2025-02-08 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427351', 'tblTempUsageDetail_20' ) start [2025-02-08 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427351', 'tblTempUsageDetail_20' ) end [2025-02-08 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:44:21] Production.INFO: ==24654== Releasing lock... [2025-02-08 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:45:05 [end_date_ymd] => 2025-02-08 04:45:05 [RateCDR] => 1 ) [2025-02-08 04:45: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` >= '2025-02-08 01:45:05' and `end` < '2025-02-08 04:45: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 ,'') [2025-02-08 04:45:18] Production.INFO: count ==303 [2025-02-08 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:45:05 - End Time 2025-02-08 04:45:05 [2025-02-08 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427356', 'tblTempUsageDetail_20' ) start [2025-02-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427356', 'tblTempUsageDetail_20' ) end [2025-02-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427356', 'tblTempVendorCDR_20' ) start [2025-02-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427356', 'tblTempVendorCDR_20' ) end [2025-02-08 04:45:18] Production.INFO: ProcessCDR(1,14427356,1,1,2) [2025-02-08 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427356', 'tblTempUsageDetail_20' ) start [2025-02-08 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427356', 'tblTempUsageDetail_20' ) end [2025-02-08 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:45:21] Production.INFO: ==24726== Releasing lock... [2025-02-08 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:46:05 [end_date_ymd] => 2025-02-08 04:46:05 [RateCDR] => 1 ) [2025-02-08 04:46: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` >= '2025-02-08 01:46:05' and `end` < '2025-02-08 04:46: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 ,'') [2025-02-08 04:46:59] Production.INFO: count ==303 [2025-02-08 04:46:59] Production.ERROR: pbx CDR StartTime 2025-02-08 01:46:05 - End Time 2025-02-08 04:46:05 [2025-02-08 04:46:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427361', 'tblTempUsageDetail_20' ) start [2025-02-08 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427361', 'tblTempUsageDetail_20' ) end [2025-02-08 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427361', 'tblTempVendorCDR_20' ) start [2025-02-08 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427361', 'tblTempVendorCDR_20' ) end [2025-02-08 04:46:59] Production.INFO: ProcessCDR(1,14427361,1,1,2) [2025-02-08 04:46:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:47:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:47:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:47:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:47:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427361', 'tblTempUsageDetail_20' ) start [2025-02-08 04:47:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427361', 'tblTempUsageDetail_20' ) end [2025-02-08 04:47:04] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:47:05] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:47:05] Production.INFO: ==24797== Releasing lock... [2025-02-08 04:47:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:47:05] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:48:05 [end_date_ymd] => 2025-02-08 04:48:05 [RateCDR] => 1 ) [2025-02-08 04:48: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` >= '2025-02-08 01:48:05' and `end` < '2025-02-08 04:48: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 ,'') [2025-02-08 04:48:20] Production.INFO: count ==301 [2025-02-08 04:48:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:48:05 - End Time 2025-02-08 04:48:05 [2025-02-08 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427370', 'tblTempUsageDetail_20' ) start [2025-02-08 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427370', 'tblTempUsageDetail_20' ) end [2025-02-08 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427370', 'tblTempVendorCDR_20' ) start [2025-02-08 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427370', 'tblTempVendorCDR_20' ) end [2025-02-08 04:48:20] Production.INFO: ProcessCDR(1,14427370,1,1,2) [2025-02-08 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427370', 'tblTempUsageDetail_20' ) start [2025-02-08 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427370', 'tblTempUsageDetail_20' ) end [2025-02-08 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:48:23] Production.INFO: ==24978== Releasing lock... [2025-02-08 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:48:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:49:05 [end_date_ymd] => 2025-02-08 04:49:05 [RateCDR] => 1 ) [2025-02-08 04:49: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` >= '2025-02-08 01:49:05' and `end` < '2025-02-08 04:49: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 ,'') [2025-02-08 04:49:21] Production.INFO: count ==300 [2025-02-08 04:49:21] Production.ERROR: pbx CDR StartTime 2025-02-08 01:49:05 - End Time 2025-02-08 04:49:05 [2025-02-08 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427375', 'tblTempUsageDetail_20' ) start [2025-02-08 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427375', 'tblTempUsageDetail_20' ) end [2025-02-08 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427375', 'tblTempVendorCDR_20' ) start [2025-02-08 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427375', 'tblTempVendorCDR_20' ) end [2025-02-08 04:49:21] Production.INFO: ProcessCDR(1,14427375,1,1,2) [2025-02-08 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427375', 'tblTempUsageDetail_20' ) start [2025-02-08 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427375', 'tblTempUsageDetail_20' ) end [2025-02-08 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:49:24] Production.INFO: ==25053== Releasing lock... [2025-02-08 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:49:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:50:06 [end_date_ymd] => 2025-02-08 04:50:06 [RateCDR] => 1 ) [2025-02-08 04:50: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-02-08 01:50:06' and `end` < '2025-02-08 04:50: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-02-08 04:50:19] Production.INFO: count ==295 [2025-02-08 04:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:50:06 - End Time 2025-02-08 04:50:06 [2025-02-08 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427381', 'tblTempUsageDetail_20' ) start [2025-02-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427381', 'tblTempUsageDetail_20' ) end [2025-02-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427381', 'tblTempVendorCDR_20' ) start [2025-02-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427381', 'tblTempVendorCDR_20' ) end [2025-02-08 04:50:19] Production.INFO: ProcessCDR(1,14427381,1,1,2) [2025-02-08 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427381', 'tblTempUsageDetail_20' ) start [2025-02-08 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427381', 'tblTempUsageDetail_20' ) end [2025-02-08 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:50:23] Production.INFO: ==25132== Releasing lock... [2025-02-08 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:51:05 [end_date_ymd] => 2025-02-08 04:51:05 [RateCDR] => 1 ) [2025-02-08 04:51: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` >= '2025-02-08 01:51:05' and `end` < '2025-02-08 04:51: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 ,'') [2025-02-08 04:51:19] Production.INFO: count ==273 [2025-02-08 04:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:51:05 - End Time 2025-02-08 04:51:05 [2025-02-08 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427386', 'tblTempUsageDetail_20' ) start [2025-02-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427386', 'tblTempUsageDetail_20' ) end [2025-02-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427386', 'tblTempVendorCDR_20' ) start [2025-02-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427386', 'tblTempVendorCDR_20' ) end [2025-02-08 04:51:19] Production.INFO: ProcessCDR(1,14427386,1,1,2) [2025-02-08 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427386', 'tblTempUsageDetail_20' ) start [2025-02-08 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427386', 'tblTempUsageDetail_20' ) end [2025-02-08 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:51:22] Production.INFO: ==25209== Releasing lock... [2025-02-08 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:52:06 [end_date_ymd] => 2025-02-08 04:52:06 [RateCDR] => 1 ) [2025-02-08 04:52: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-02-08 01:52:06' and `end` < '2025-02-08 04:52: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-02-08 04:52:19] Production.INFO: count ==273 [2025-02-08 04:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:52:06 - End Time 2025-02-08 04:52:06 [2025-02-08 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427391', 'tblTempUsageDetail_20' ) start [2025-02-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427391', 'tblTempUsageDetail_20' ) end [2025-02-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427391', 'tblTempVendorCDR_20' ) start [2025-02-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427391', 'tblTempVendorCDR_20' ) end [2025-02-08 04:52:19] Production.INFO: ProcessCDR(1,14427391,1,1,2) [2025-02-08 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427391', 'tblTempUsageDetail_20' ) start [2025-02-08 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427391', 'tblTempUsageDetail_20' ) end [2025-02-08 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:52:23] Production.INFO: ==25282== Releasing lock... [2025-02-08 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:52:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:53:04 [end_date_ymd] => 2025-02-08 04:53:04 [RateCDR] => 1 ) [2025-02-08 04:53:04] 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-02-08 01:53:04' and `end` < '2025-02-08 04:53:04' 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-02-08 04:53:19] Production.INFO: count ==273 [2025-02-08 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:53:04 - End Time 2025-02-08 04:53:04 [2025-02-08 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427396', 'tblTempUsageDetail_20' ) start [2025-02-08 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427396', 'tblTempUsageDetail_20' ) end [2025-02-08 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427396', 'tblTempVendorCDR_20' ) start [2025-02-08 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427396', 'tblTempVendorCDR_20' ) end [2025-02-08 04:53:19] Production.INFO: ProcessCDR(1,14427396,1,1,2) [2025-02-08 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427396', 'tblTempUsageDetail_20' ) start [2025-02-08 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427396', 'tblTempUsageDetail_20' ) end [2025-02-08 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:53:22] Production.INFO: ==25354== Releasing lock... [2025-02-08 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:54:05 [end_date_ymd] => 2025-02-08 04:54:05 [RateCDR] => 1 ) [2025-02-08 04:54: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` >= '2025-02-08 01:54:05' and `end` < '2025-02-08 04:54: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 ,'') [2025-02-08 04:54:19] Production.INFO: count ==273 [2025-02-08 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:54:05 - End Time 2025-02-08 04:54:05 [2025-02-08 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427401', 'tblTempUsageDetail_20' ) start [2025-02-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427401', 'tblTempUsageDetail_20' ) end [2025-02-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427401', 'tblTempVendorCDR_20' ) start [2025-02-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427401', 'tblTempVendorCDR_20' ) end [2025-02-08 04:54:19] Production.INFO: ProcessCDR(1,14427401,1,1,2) [2025-02-08 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427401', 'tblTempUsageDetail_20' ) start [2025-02-08 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427401', 'tblTempUsageDetail_20' ) end [2025-02-08 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:54:23] Production.INFO: ==25429== Releasing lock... [2025-02-08 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:54:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:55:04 [end_date_ymd] => 2025-02-08 04:55:04 [RateCDR] => 1 ) [2025-02-08 04:55:04] 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-02-08 01:55:04' and `end` < '2025-02-08 04:55:04' 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-02-08 04:55:18] Production.INFO: count ==273 [2025-02-08 04:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:55:04 - End Time 2025-02-08 04:55:04 [2025-02-08 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427406', 'tblTempUsageDetail_20' ) start [2025-02-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427406', 'tblTempUsageDetail_20' ) end [2025-02-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427406', 'tblTempVendorCDR_20' ) start [2025-02-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427406', 'tblTempVendorCDR_20' ) end [2025-02-08 04:55:18] Production.INFO: ProcessCDR(1,14427406,1,1,2) [2025-02-08 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427406', 'tblTempUsageDetail_20' ) start [2025-02-08 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427406', 'tblTempUsageDetail_20' ) end [2025-02-08 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:55:22] Production.INFO: ==25502== Releasing lock... [2025-02-08 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:56:05 [end_date_ymd] => 2025-02-08 04:56:05 [RateCDR] => 1 ) [2025-02-08 04:56: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` >= '2025-02-08 01:56:05' and `end` < '2025-02-08 04:56: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 ,'') [2025-02-08 04:56:20] Production.INFO: count ==270 [2025-02-08 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-08 01:56:05 - End Time 2025-02-08 04:56:05 [2025-02-08 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427411', 'tblTempUsageDetail_20' ) start [2025-02-08 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427411', 'tblTempUsageDetail_20' ) end [2025-02-08 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427411', 'tblTempVendorCDR_20' ) start [2025-02-08 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427411', 'tblTempVendorCDR_20' ) end [2025-02-08 04:56:20] Production.INFO: ProcessCDR(1,14427411,1,1,2) [2025-02-08 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427411', 'tblTempUsageDetail_20' ) start [2025-02-08 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427411', 'tblTempUsageDetail_20' ) end [2025-02-08 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:56:23] Production.INFO: ==25577== Releasing lock... [2025-02-08 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:56:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:57:05 [end_date_ymd] => 2025-02-08 04:57:05 [RateCDR] => 1 ) [2025-02-08 04:57: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` >= '2025-02-08 01:57:05' and `end` < '2025-02-08 04:57: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 ,'') [2025-02-08 04:57:18] Production.INFO: count ==270 [2025-02-08 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:57:05 - End Time 2025-02-08 04:57:05 [2025-02-08 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427416', 'tblTempUsageDetail_20' ) start [2025-02-08 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427416', 'tblTempUsageDetail_20' ) end [2025-02-08 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427416', 'tblTempVendorCDR_20' ) start [2025-02-08 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427416', 'tblTempVendorCDR_20' ) end [2025-02-08 04:57:19] Production.INFO: ProcessCDR(1,14427416,1,1,2) [2025-02-08 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427416', 'tblTempUsageDetail_20' ) start [2025-02-08 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427416', 'tblTempUsageDetail_20' ) end [2025-02-08 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:57:21] Production.INFO: ==25650== Releasing lock... [2025-02-08 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:58:05 [end_date_ymd] => 2025-02-08 04:58:05 [RateCDR] => 1 ) [2025-02-08 04:58: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` >= '2025-02-08 01:58:05' and `end` < '2025-02-08 04:58: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 ,'') [2025-02-08 04:58:18] Production.INFO: count ==270 [2025-02-08 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 01:58:05 - End Time 2025-02-08 04:58:05 [2025-02-08 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427421', 'tblTempUsageDetail_20' ) start [2025-02-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427421', 'tblTempUsageDetail_20' ) end [2025-02-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427421', 'tblTempVendorCDR_20' ) start [2025-02-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427421', 'tblTempVendorCDR_20' ) end [2025-02-08 04:58:18] Production.INFO: ProcessCDR(1,14427421,1,1,2) [2025-02-08 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427421', 'tblTempUsageDetail_20' ) start [2025-02-08 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427421', 'tblTempUsageDetail_20' ) end [2025-02-08 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:58:21] Production.INFO: ==25728== Releasing lock... [2025-02-08 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 01:59:05 [end_date_ymd] => 2025-02-08 04:59:05 [RateCDR] => 1 ) [2025-02-08 04:59: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` >= '2025-02-08 01:59:05' and `end` < '2025-02-08 04:59: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 ,'') [2025-02-08 04:59:19] Production.INFO: count ==270 [2025-02-08 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 01:59:05 - End Time 2025-02-08 04:59:05 [2025-02-08 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427426', 'tblTempUsageDetail_20' ) start [2025-02-08 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427426', 'tblTempUsageDetail_20' ) end [2025-02-08 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427426', 'tblTempVendorCDR_20' ) start [2025-02-08 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427426', 'tblTempVendorCDR_20' ) end [2025-02-08 04:59:19] Production.INFO: ProcessCDR(1,14427426,1,1,2) [2025-02-08 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427426', 'tblTempUsageDetail_20' ) start [2025-02-08 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427426', 'tblTempUsageDetail_20' ) end [2025-02-08 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 04:59:22] Production.INFO: ==25800== Releasing lock... [2025-02-08 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 04:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:00:06 [end_date_ymd] => 2025-02-08 05:00:06 [RateCDR] => 1 ) [2025-02-08 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 02:00:06' and `end` < '2025-02-08 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 05:00:20] Production.INFO: count ==261 [2025-02-08 05:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 02:00:06 - End Time 2025-02-08 05:00:06 [2025-02-08 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427432', 'tblTempUsageDetail_20' ) start [2025-02-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427432', 'tblTempUsageDetail_20' ) end [2025-02-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427432', 'tblTempVendorCDR_20' ) start [2025-02-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427432', 'tblTempVendorCDR_20' ) end [2025-02-08 05:00:20] Production.INFO: ProcessCDR(1,14427432,1,1,2) [2025-02-08 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427432', 'tblTempUsageDetail_20' ) start [2025-02-08 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427432', 'tblTempUsageDetail_20' ) end [2025-02-08 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:00:23] Production.INFO: ==25876== Releasing lock... [2025-02-08 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:01:06 [end_date_ymd] => 2025-02-08 05:01:06 [RateCDR] => 1 ) [2025-02-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` >= '2025-02-08 02:01:06' and `end` < '2025-02-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 ,'') [2025-02-08 05:01:22] Production.INFO: count ==261 [2025-02-08 05:01:22] Production.ERROR: pbx CDR StartTime 2025-02-08 02:01:06 - End Time 2025-02-08 05:01:06 [2025-02-08 05:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427437', 'tblTempUsageDetail_20' ) start [2025-02-08 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427437', 'tblTempUsageDetail_20' ) end [2025-02-08 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427437', 'tblTempVendorCDR_20' ) start [2025-02-08 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427437', 'tblTempVendorCDR_20' ) end [2025-02-08 05:01:22] Production.INFO: ProcessCDR(1,14427437,1,1,2) [2025-02-08 05:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427437', 'tblTempUsageDetail_20' ) start [2025-02-08 05:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427437', 'tblTempUsageDetail_20' ) end [2025-02-08 05:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:01:25] Production.INFO: ==25963== Releasing lock... [2025-02-08 05:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:01:25] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:02:06 [end_date_ymd] => 2025-02-08 05:02:06 [RateCDR] => 1 ) [2025-02-08 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 02:02:06' and `end` < '2025-02-08 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 05:02:19] Production.INFO: count ==261 [2025-02-08 05:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 02:02:06 - End Time 2025-02-08 05:02:06 [2025-02-08 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427442', 'tblTempUsageDetail_20' ) start [2025-02-08 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427442', 'tblTempUsageDetail_20' ) end [2025-02-08 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427442', 'tblTempVendorCDR_20' ) start [2025-02-08 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427442', 'tblTempVendorCDR_20' ) end [2025-02-08 05:02:20] Production.INFO: ProcessCDR(1,14427442,1,1,2) [2025-02-08 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427442', 'tblTempUsageDetail_20' ) start [2025-02-08 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427442', 'tblTempUsageDetail_20' ) end [2025-02-08 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:02:23] Production.INFO: ==26037== Releasing lock... [2025-02-08 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:03:05 [end_date_ymd] => 2025-02-08 05:03:05 [RateCDR] => 1 ) [2025-02-08 05:03: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` >= '2025-02-08 02:03:05' and `end` < '2025-02-08 05:03: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 ,'') [2025-02-08 05:03:20] Production.INFO: count ==261 [2025-02-08 05:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 02:03:05 - End Time 2025-02-08 05:03:05 [2025-02-08 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427447', 'tblTempUsageDetail_20' ) start [2025-02-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427447', 'tblTempUsageDetail_20' ) end [2025-02-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427447', 'tblTempVendorCDR_20' ) start [2025-02-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427447', 'tblTempVendorCDR_20' ) end [2025-02-08 05:03:20] Production.INFO: ProcessCDR(1,14427447,1,1,2) [2025-02-08 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427447', 'tblTempUsageDetail_20' ) start [2025-02-08 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427447', 'tblTempUsageDetail_20' ) end [2025-02-08 05:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:03:24] Production.INFO: ==26149== Releasing lock... [2025-02-08 05:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:03:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:04:05 [end_date_ymd] => 2025-02-08 05:04:05 [RateCDR] => 1 ) [2025-02-08 05:04: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` >= '2025-02-08 02:04:05' and `end` < '2025-02-08 05:04: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 ,'') [2025-02-08 05:04:18] Production.INFO: count ==261 [2025-02-08 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:04:05 - End Time 2025-02-08 05:04:05 [2025-02-08 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427452', 'tblTempUsageDetail_20' ) start [2025-02-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427452', 'tblTempUsageDetail_20' ) end [2025-02-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427452', 'tblTempVendorCDR_20' ) start [2025-02-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427452', 'tblTempVendorCDR_20' ) end [2025-02-08 05:04:19] Production.INFO: ProcessCDR(1,14427452,1,1,2) [2025-02-08 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427452', 'tblTempUsageDetail_20' ) start [2025-02-08 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427452', 'tblTempUsageDetail_20' ) end [2025-02-08 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:04:22] Production.INFO: ==26227== Releasing lock... [2025-02-08 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:05:05 [end_date_ymd] => 2025-02-08 05:05:05 [RateCDR] => 1 ) [2025-02-08 05:05: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` >= '2025-02-08 02:05:05' and `end` < '2025-02-08 05:05: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 ,'') [2025-02-08 05:05:18] Production.INFO: count ==261 [2025-02-08 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:05:05 - End Time 2025-02-08 05:05:05 [2025-02-08 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427457', 'tblTempUsageDetail_20' ) start [2025-02-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427457', 'tblTempUsageDetail_20' ) end [2025-02-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427457', 'tblTempVendorCDR_20' ) start [2025-02-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427457', 'tblTempVendorCDR_20' ) end [2025-02-08 05:05:18] Production.INFO: ProcessCDR(1,14427457,1,1,2) [2025-02-08 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427457', 'tblTempUsageDetail_20' ) start [2025-02-08 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427457', 'tblTempUsageDetail_20' ) end [2025-02-08 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:05:21] Production.INFO: ==26302== Releasing lock... [2025-02-08 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:06:06 [end_date_ymd] => 2025-02-08 05:06:06 [RateCDR] => 1 ) [2025-02-08 05:06: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-02-08 02:06:06' and `end` < '2025-02-08 05:06: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-02-08 05:06:19] Production.INFO: count ==261 [2025-02-08 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:06:06 - End Time 2025-02-08 05:06:06 [2025-02-08 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427462', 'tblTempUsageDetail_20' ) start [2025-02-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427462', 'tblTempUsageDetail_20' ) end [2025-02-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427462', 'tblTempVendorCDR_20' ) start [2025-02-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427462', 'tblTempVendorCDR_20' ) end [2025-02-08 05:06:19] Production.INFO: ProcessCDR(1,14427462,1,1,2) [2025-02-08 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427462', 'tblTempUsageDetail_20' ) start [2025-02-08 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427462', 'tblTempUsageDetail_20' ) end [2025-02-08 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:06:22] Production.INFO: ==26373== Releasing lock... [2025-02-08 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:07:05 [end_date_ymd] => 2025-02-08 05:07:05 [RateCDR] => 1 ) [2025-02-08 05:07: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` >= '2025-02-08 02:07:05' and `end` < '2025-02-08 05:07: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 ,'') [2025-02-08 05:07:19] Production.INFO: count ==262 [2025-02-08 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:07:05 - End Time 2025-02-08 05:07:05 [2025-02-08 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427467', 'tblTempUsageDetail_20' ) start [2025-02-08 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427467', 'tblTempUsageDetail_20' ) end [2025-02-08 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427467', 'tblTempVendorCDR_20' ) start [2025-02-08 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427467', 'tblTempVendorCDR_20' ) end [2025-02-08 05:07:19] Production.INFO: ProcessCDR(1,14427467,1,1,2) [2025-02-08 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427467', 'tblTempUsageDetail_20' ) start [2025-02-08 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427467', 'tblTempUsageDetail_20' ) end [2025-02-08 05:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:07:24] Production.INFO: ==26448== Releasing lock... [2025-02-08 05:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:07:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:08:06 [end_date_ymd] => 2025-02-08 05:08:06 [RateCDR] => 1 ) [2025-02-08 05:08: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-02-08 02:08:06' and `end` < '2025-02-08 05:08: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-02-08 05:08:19] Production.INFO: count ==262 [2025-02-08 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:08:06 - End Time 2025-02-08 05:08:06 [2025-02-08 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427472', 'tblTempUsageDetail_20' ) start [2025-02-08 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427472', 'tblTempUsageDetail_20' ) end [2025-02-08 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427472', 'tblTempVendorCDR_20' ) start [2025-02-08 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427472', 'tblTempVendorCDR_20' ) end [2025-02-08 05:08:19] Production.INFO: ProcessCDR(1,14427472,1,1,2) [2025-02-08 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427472', 'tblTempUsageDetail_20' ) start [2025-02-08 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427472', 'tblTempUsageDetail_20' ) end [2025-02-08 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:08:22] Production.INFO: ==26521== Releasing lock... [2025-02-08 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:09:05 [end_date_ymd] => 2025-02-08 05:09:05 [RateCDR] => 1 ) [2025-02-08 05:09: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` >= '2025-02-08 02:09:05' and `end` < '2025-02-08 05:09: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 ,'') [2025-02-08 05:09:17] Production.INFO: count ==262 [2025-02-08 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-08 02:09:05 - End Time 2025-02-08 05:09:05 [2025-02-08 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427477', 'tblTempUsageDetail_20' ) start [2025-02-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427477', 'tblTempUsageDetail_20' ) end [2025-02-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427477', 'tblTempVendorCDR_20' ) start [2025-02-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427477', 'tblTempVendorCDR_20' ) end [2025-02-08 05:09:17] Production.INFO: ProcessCDR(1,14427477,1,1,2) [2025-02-08 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427477', 'tblTempUsageDetail_20' ) start [2025-02-08 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427477', 'tblTempUsageDetail_20' ) end [2025-02-08 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:09:21] Production.INFO: ==26595== Releasing lock... [2025-02-08 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:10:06 [end_date_ymd] => 2025-02-08 05:10:06 [RateCDR] => 1 ) [2025-02-08 05:10: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-02-08 02:10:06' and `end` < '2025-02-08 05:10: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-02-08 05:10:20] Production.INFO: count ==255 [2025-02-08 05:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 02:10:06 - End Time 2025-02-08 05:10:06 [2025-02-08 05:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427482', 'tblTempUsageDetail_20' ) start [2025-02-08 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427482', 'tblTempUsageDetail_20' ) end [2025-02-08 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427482', 'tblTempVendorCDR_20' ) start [2025-02-08 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427482', 'tblTempVendorCDR_20' ) end [2025-02-08 05:10:20] Production.INFO: ProcessCDR(1,14427482,1,1,2) [2025-02-08 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427482', 'tblTempUsageDetail_20' ) start [2025-02-08 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427482', 'tblTempUsageDetail_20' ) end [2025-02-08 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:10:23] Production.INFO: ==26669== Releasing lock... [2025-02-08 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:11:05 [end_date_ymd] => 2025-02-08 05:11:05 [RateCDR] => 1 ) [2025-02-08 05:11: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` >= '2025-02-08 02:11:05' and `end` < '2025-02-08 05:11: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 ,'') [2025-02-08 05:11:19] Production.INFO: count ==245 [2025-02-08 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:11:05 - End Time 2025-02-08 05:11:05 [2025-02-08 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427488', 'tblTempUsageDetail_20' ) start [2025-02-08 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427488', 'tblTempUsageDetail_20' ) end [2025-02-08 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427488', 'tblTempVendorCDR_20' ) start [2025-02-08 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427488', 'tblTempVendorCDR_20' ) end [2025-02-08 05:11:19] Production.INFO: ProcessCDR(1,14427488,1,1,2) [2025-02-08 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427488', 'tblTempUsageDetail_20' ) start [2025-02-08 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427488', 'tblTempUsageDetail_20' ) end [2025-02-08 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:11:22] Production.INFO: ==26748== Releasing lock... [2025-02-08 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:12:05 [end_date_ymd] => 2025-02-08 05:12:05 [RateCDR] => 1 ) [2025-02-08 05:12: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` >= '2025-02-08 02:12:05' and `end` < '2025-02-08 05:12: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 ,'') [2025-02-08 05:12:20] Production.INFO: count ==242 [2025-02-08 05:12:20] Production.ERROR: pbx CDR StartTime 2025-02-08 02:12:05 - End Time 2025-02-08 05:12:05 [2025-02-08 05:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427493', 'tblTempUsageDetail_20' ) start [2025-02-08 05:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427493', 'tblTempUsageDetail_20' ) end [2025-02-08 05:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427493', 'tblTempVendorCDR_20' ) start [2025-02-08 05:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427493', 'tblTempVendorCDR_20' ) end [2025-02-08 05:12:20] Production.INFO: ProcessCDR(1,14427493,1,1,2) [2025-02-08 05:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427493', 'tblTempUsageDetail_20' ) start [2025-02-08 05:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427493', 'tblTempUsageDetail_20' ) end [2025-02-08 05:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:12:23] Production.INFO: ==26822== Releasing lock... [2025-02-08 05:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:13:06 [end_date_ymd] => 2025-02-08 05:13:06 [RateCDR] => 1 ) [2025-02-08 05:13: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-02-08 02:13:06' and `end` < '2025-02-08 05:13: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-02-08 05:13:19] Production.INFO: count ==242 [2025-02-08 05:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:13:06 - End Time 2025-02-08 05:13:06 [2025-02-08 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427498', 'tblTempUsageDetail_20' ) start [2025-02-08 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427498', 'tblTempUsageDetail_20' ) end [2025-02-08 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427498', 'tblTempVendorCDR_20' ) start [2025-02-08 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427498', 'tblTempVendorCDR_20' ) end [2025-02-08 05:13:19] Production.INFO: ProcessCDR(1,14427498,1,1,2) [2025-02-08 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427498', 'tblTempUsageDetail_20' ) start [2025-02-08 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427498', 'tblTempUsageDetail_20' ) end [2025-02-08 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:13:22] Production.INFO: ==26898== Releasing lock... [2025-02-08 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:14:05 [end_date_ymd] => 2025-02-08 05:14:05 [RateCDR] => 1 ) [2025-02-08 05:14: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` >= '2025-02-08 02:14:05' and `end` < '2025-02-08 05:14: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 ,'') [2025-02-08 05:14:18] Production.INFO: count ==242 [2025-02-08 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:14:05 - End Time 2025-02-08 05:14:05 [2025-02-08 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427503', 'tblTempUsageDetail_20' ) start [2025-02-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427503', 'tblTempUsageDetail_20' ) end [2025-02-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427503', 'tblTempVendorCDR_20' ) start [2025-02-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427503', 'tblTempVendorCDR_20' ) end [2025-02-08 05:14:18] Production.INFO: ProcessCDR(1,14427503,1,1,2) [2025-02-08 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427503', 'tblTempUsageDetail_20' ) start [2025-02-08 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427503', 'tblTempUsageDetail_20' ) end [2025-02-08 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:14:21] Production.INFO: ==26969== Releasing lock... [2025-02-08 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:15:06 [end_date_ymd] => 2025-02-08 05:15:06 [RateCDR] => 1 ) [2025-02-08 05:15: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-02-08 02:15:06' and `end` < '2025-02-08 05:15: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-02-08 05:15:18] Production.INFO: count ==241 [2025-02-08 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:15:06 - End Time 2025-02-08 05:15:06 [2025-02-08 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427508', 'tblTempUsageDetail_20' ) start [2025-02-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427508', 'tblTempUsageDetail_20' ) end [2025-02-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427508', 'tblTempVendorCDR_20' ) start [2025-02-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427508', 'tblTempVendorCDR_20' ) end [2025-02-08 05:15:18] Production.INFO: ProcessCDR(1,14427508,1,1,2) [2025-02-08 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427508', 'tblTempUsageDetail_20' ) start [2025-02-08 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427508', 'tblTempUsageDetail_20' ) end [2025-02-08 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:15:22] Production.INFO: ==27044== Releasing lock... [2025-02-08 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:16:05 [end_date_ymd] => 2025-02-08 05:16:05 [RateCDR] => 1 ) [2025-02-08 05:16: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` >= '2025-02-08 02:16:05' and `end` < '2025-02-08 05:16: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 ,'') [2025-02-08 05:16:18] Production.INFO: count ==238 [2025-02-08 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:16:05 - End Time 2025-02-08 05:16:05 [2025-02-08 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427513', 'tblTempUsageDetail_20' ) start [2025-02-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427513', 'tblTempUsageDetail_20' ) end [2025-02-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427513', 'tblTempVendorCDR_20' ) start [2025-02-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427513', 'tblTempVendorCDR_20' ) end [2025-02-08 05:16:18] Production.INFO: ProcessCDR(1,14427513,1,1,2) [2025-02-08 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427513', 'tblTempUsageDetail_20' ) start [2025-02-08 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427513', 'tblTempUsageDetail_20' ) end [2025-02-08 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:16:21] Production.INFO: ==27117== Releasing lock... [2025-02-08 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:17:06 [end_date_ymd] => 2025-02-08 05:17:06 [RateCDR] => 1 ) [2025-02-08 05:17: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-02-08 02:17:06' and `end` < '2025-02-08 05:17: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-02-08 05:17:19] Production.INFO: count ==238 [2025-02-08 05:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:17:06 - End Time 2025-02-08 05:17:06 [2025-02-08 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427518', 'tblTempUsageDetail_20' ) start [2025-02-08 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427518', 'tblTempUsageDetail_20' ) end [2025-02-08 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427518', 'tblTempVendorCDR_20' ) start [2025-02-08 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427518', 'tblTempVendorCDR_20' ) end [2025-02-08 05:17:19] Production.INFO: ProcessCDR(1,14427518,1,1,2) [2025-02-08 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427518', 'tblTempUsageDetail_20' ) start [2025-02-08 05:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427518', 'tblTempUsageDetail_20' ) end [2025-02-08 05:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:17:23] Production.INFO: ==27201== Releasing lock... [2025-02-08 05:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:17:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:18:05 [end_date_ymd] => 2025-02-08 05:18:05 [RateCDR] => 1 ) [2025-02-08 05:18: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` >= '2025-02-08 02:18:05' and `end` < '2025-02-08 05:18: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 ,'') [2025-02-08 05:18:19] Production.INFO: count ==238 [2025-02-08 05:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:18:05 - End Time 2025-02-08 05:18:05 [2025-02-08 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427523', 'tblTempUsageDetail_20' ) start [2025-02-08 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427523', 'tblTempUsageDetail_20' ) end [2025-02-08 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427523', 'tblTempVendorCDR_20' ) start [2025-02-08 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427523', 'tblTempVendorCDR_20' ) end [2025-02-08 05:18:19] Production.INFO: ProcessCDR(1,14427523,1,1,2) [2025-02-08 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427523', 'tblTempUsageDetail_20' ) start [2025-02-08 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427523', 'tblTempUsageDetail_20' ) end [2025-02-08 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:18:22] Production.INFO: ==27311== Releasing lock... [2025-02-08 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:19:05 [end_date_ymd] => 2025-02-08 05:19:05 [RateCDR] => 1 ) [2025-02-08 05:19: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` >= '2025-02-08 02:19:05' and `end` < '2025-02-08 05:19: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 ,'') [2025-02-08 05:19:18] Production.INFO: count ==237 [2025-02-08 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:19:05 - End Time 2025-02-08 05:19:05 [2025-02-08 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427528', 'tblTempUsageDetail_20' ) start [2025-02-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427528', 'tblTempUsageDetail_20' ) end [2025-02-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427528', 'tblTempVendorCDR_20' ) start [2025-02-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427528', 'tblTempVendorCDR_20' ) end [2025-02-08 05:19:18] Production.INFO: ProcessCDR(1,14427528,1,1,2) [2025-02-08 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427528', 'tblTempUsageDetail_20' ) start [2025-02-08 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427528', 'tblTempUsageDetail_20' ) end [2025-02-08 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:19:22] Production.INFO: ==27385== Releasing lock... [2025-02-08 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:20:06 [end_date_ymd] => 2025-02-08 05:20:06 [RateCDR] => 1 ) [2025-02-08 05:20: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-02-08 02:20:06' and `end` < '2025-02-08 05:20: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-02-08 05:20:19] Production.INFO: count ==230 [2025-02-08 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:20:06 - End Time 2025-02-08 05:20:06 [2025-02-08 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427534', 'tblTempUsageDetail_20' ) start [2025-02-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427534', 'tblTempUsageDetail_20' ) end [2025-02-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427534', 'tblTempVendorCDR_20' ) start [2025-02-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427534', 'tblTempVendorCDR_20' ) end [2025-02-08 05:20:19] Production.INFO: ProcessCDR(1,14427534,1,1,2) [2025-02-08 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427534', 'tblTempUsageDetail_20' ) start [2025-02-08 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427534', 'tblTempUsageDetail_20' ) end [2025-02-08 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:20:23] Production.INFO: ==27458== Releasing lock... [2025-02-08 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:20:23] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:21:06 [end_date_ymd] => 2025-02-08 05:21:06 [RateCDR] => 1 ) [2025-02-08 05:21: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-02-08 02:21:06' and `end` < '2025-02-08 05:21: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-02-08 05:21:19] Production.INFO: count ==218 [2025-02-08 05:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:21:06 - End Time 2025-02-08 05:21:06 [2025-02-08 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427539', 'tblTempUsageDetail_20' ) start [2025-02-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427539', 'tblTempUsageDetail_20' ) end [2025-02-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427539', 'tblTempVendorCDR_20' ) start [2025-02-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427539', 'tblTempVendorCDR_20' ) end [2025-02-08 05:21:19] Production.INFO: ProcessCDR(1,14427539,1,1,2) [2025-02-08 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427539', 'tblTempUsageDetail_20' ) start [2025-02-08 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427539', 'tblTempUsageDetail_20' ) end [2025-02-08 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:21:22] Production.INFO: ==27529== Releasing lock... [2025-02-08 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:21:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:22:05 [end_date_ymd] => 2025-02-08 05:22:05 [RateCDR] => 1 ) [2025-02-08 05:22: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` >= '2025-02-08 02:22:05' and `end` < '2025-02-08 05:22: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 ,'') [2025-02-08 05:22:19] Production.INFO: count ==218 [2025-02-08 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:22:05 - End Time 2025-02-08 05:22:05 [2025-02-08 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427544', 'tblTempUsageDetail_20' ) start [2025-02-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427544', 'tblTempUsageDetail_20' ) end [2025-02-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427544', 'tblTempVendorCDR_20' ) start [2025-02-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427544', 'tblTempVendorCDR_20' ) end [2025-02-08 05:22:19] Production.INFO: ProcessCDR(1,14427544,1,1,2) [2025-02-08 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427544', 'tblTempUsageDetail_20' ) start [2025-02-08 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427544', 'tblTempUsageDetail_20' ) end [2025-02-08 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:22:22] Production.INFO: ==27599== Releasing lock... [2025-02-08 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:22:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:23:05 [end_date_ymd] => 2025-02-08 05:23:05 [RateCDR] => 1 ) [2025-02-08 05:23: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` >= '2025-02-08 02:23:05' and `end` < '2025-02-08 05:23: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 ,'') [2025-02-08 05:23:19] Production.INFO: count ==215 [2025-02-08 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:23:05 - End Time 2025-02-08 05:23:05 [2025-02-08 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427549', 'tblTempUsageDetail_20' ) start [2025-02-08 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427549', 'tblTempUsageDetail_20' ) end [2025-02-08 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427549', 'tblTempVendorCDR_20' ) start [2025-02-08 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427549', 'tblTempVendorCDR_20' ) end [2025-02-08 05:23:19] Production.INFO: ProcessCDR(1,14427549,1,1,2) [2025-02-08 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427549', 'tblTempUsageDetail_20' ) start [2025-02-08 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427549', 'tblTempUsageDetail_20' ) end [2025-02-08 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:23:22] Production.INFO: ==27671== Releasing lock... [2025-02-08 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:23:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:24:05 [end_date_ymd] => 2025-02-08 05:24:05 [RateCDR] => 1 ) [2025-02-08 05:24: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` >= '2025-02-08 02:24:05' and `end` < '2025-02-08 05:24: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 ,'') [2025-02-08 05:24:18] Production.INFO: count ==214 [2025-02-08 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:24:05 - End Time 2025-02-08 05:24:05 [2025-02-08 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427554', 'tblTempUsageDetail_20' ) start [2025-02-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427554', 'tblTempUsageDetail_20' ) end [2025-02-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427554', 'tblTempVendorCDR_20' ) start [2025-02-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427554', 'tblTempVendorCDR_20' ) end [2025-02-08 05:24:18] Production.INFO: ProcessCDR(1,14427554,1,1,2) [2025-02-08 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427554', 'tblTempUsageDetail_20' ) start [2025-02-08 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427554', 'tblTempUsageDetail_20' ) end [2025-02-08 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:24:21] Production.INFO: ==27744== Releasing lock... [2025-02-08 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:25:06 [end_date_ymd] => 2025-02-08 05:25:06 [RateCDR] => 1 ) [2025-02-08 05:25: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-02-08 02:25:06' and `end` < '2025-02-08 05:25: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-02-08 05:25:19] Production.INFO: count ==214 [2025-02-08 05:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:25:06 - End Time 2025-02-08 05:25:06 [2025-02-08 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427559', 'tblTempUsageDetail_20' ) start [2025-02-08 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427559', 'tblTempUsageDetail_20' ) end [2025-02-08 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427559', 'tblTempVendorCDR_20' ) start [2025-02-08 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427559', 'tblTempVendorCDR_20' ) end [2025-02-08 05:25:19] Production.INFO: ProcessCDR(1,14427559,1,1,2) [2025-02-08 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427559', 'tblTempUsageDetail_20' ) start [2025-02-08 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427559', 'tblTempUsageDetail_20' ) end [2025-02-08 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:25:22] Production.INFO: ==27814== Releasing lock... [2025-02-08 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:25:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:26:05 [end_date_ymd] => 2025-02-08 05:26:05 [RateCDR] => 1 ) [2025-02-08 05:26: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` >= '2025-02-08 02:26:05' and `end` < '2025-02-08 05:26: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 ,'') [2025-02-08 05:26:18] Production.INFO: count ==214 [2025-02-08 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:26:05 - End Time 2025-02-08 05:26:05 [2025-02-08 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427564', 'tblTempUsageDetail_20' ) start [2025-02-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427564', 'tblTempUsageDetail_20' ) end [2025-02-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427564', 'tblTempVendorCDR_20' ) start [2025-02-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427564', 'tblTempVendorCDR_20' ) end [2025-02-08 05:26:18] Production.INFO: ProcessCDR(1,14427564,1,1,2) [2025-02-08 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427564', 'tblTempUsageDetail_20' ) start [2025-02-08 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427564', 'tblTempUsageDetail_20' ) end [2025-02-08 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:26:21] Production.INFO: ==27887== Releasing lock... [2025-02-08 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:27:05 [end_date_ymd] => 2025-02-08 05:27:05 [RateCDR] => 1 ) [2025-02-08 05:27: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` >= '2025-02-08 02:27:05' and `end` < '2025-02-08 05:27: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 ,'') [2025-02-08 05:27:19] Production.INFO: count ==214 [2025-02-08 05:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:27:05 - End Time 2025-02-08 05:27:05 [2025-02-08 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427569', 'tblTempUsageDetail_20' ) start [2025-02-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427569', 'tblTempUsageDetail_20' ) end [2025-02-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427569', 'tblTempVendorCDR_20' ) start [2025-02-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427569', 'tblTempVendorCDR_20' ) end [2025-02-08 05:27:19] Production.INFO: ProcessCDR(1,14427569,1,1,2) [2025-02-08 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427569', 'tblTempUsageDetail_20' ) start [2025-02-08 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427569', 'tblTempUsageDetail_20' ) end [2025-02-08 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:27:22] Production.INFO: ==27960== Releasing lock... [2025-02-08 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:27:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:28:05 [end_date_ymd] => 2025-02-08 05:28:05 [RateCDR] => 1 ) [2025-02-08 05:28: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` >= '2025-02-08 02:28:05' and `end` < '2025-02-08 05:28: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 ,'') [2025-02-08 05:28:18] Production.INFO: count ==212 [2025-02-08 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:28:05 - End Time 2025-02-08 05:28:05 [2025-02-08 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427574', 'tblTempUsageDetail_20' ) start [2025-02-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427574', 'tblTempUsageDetail_20' ) end [2025-02-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427574', 'tblTempVendorCDR_20' ) start [2025-02-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427574', 'tblTempVendorCDR_20' ) end [2025-02-08 05:28:18] Production.INFO: ProcessCDR(1,14427574,1,1,2) [2025-02-08 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427574', 'tblTempUsageDetail_20' ) start [2025-02-08 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427574', 'tblTempUsageDetail_20' ) end [2025-02-08 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:28:21] Production.INFO: ==28035== Releasing lock... [2025-02-08 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:28:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:29:05 [end_date_ymd] => 2025-02-08 05:29:05 [RateCDR] => 1 ) [2025-02-08 05:29: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` >= '2025-02-08 02:29:05' and `end` < '2025-02-08 05:29: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 ,'') [2025-02-08 05:29:18] Production.INFO: count ==211 [2025-02-08 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:29:05 - End Time 2025-02-08 05:29:05 [2025-02-08 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427579', 'tblTempUsageDetail_20' ) start [2025-02-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427579', 'tblTempUsageDetail_20' ) end [2025-02-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427579', 'tblTempVendorCDR_20' ) start [2025-02-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427579', 'tblTempVendorCDR_20' ) end [2025-02-08 05:29:18] Production.INFO: ProcessCDR(1,14427579,1,1,2) [2025-02-08 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427579', 'tblTempUsageDetail_20' ) start [2025-02-08 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427579', 'tblTempUsageDetail_20' ) end [2025-02-08 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:29:21] Production.INFO: ==28112== Releasing lock... [2025-02-08 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:29:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:30:05 [end_date_ymd] => 2025-02-08 05:30:05 [RateCDR] => 1 ) [2025-02-08 05:30: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` >= '2025-02-08 02:30:05' and `end` < '2025-02-08 05:30: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 ,'') [2025-02-08 05:30:18] Production.INFO: count ==208 [2025-02-08 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:30:05 - End Time 2025-02-08 05:30:05 [2025-02-08 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427585', 'tblTempUsageDetail_20' ) start [2025-02-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427585', 'tblTempUsageDetail_20' ) end [2025-02-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427585', 'tblTempVendorCDR_20' ) start [2025-02-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427585', 'tblTempVendorCDR_20' ) end [2025-02-08 05:30:18] Production.INFO: ProcessCDR(1,14427585,1,1,2) [2025-02-08 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427585', 'tblTempUsageDetail_20' ) start [2025-02-08 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427585', 'tblTempUsageDetail_20' ) end [2025-02-08 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:30:21] Production.INFO: ==28192== Releasing lock... [2025-02-08 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:30:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:31:05 [end_date_ymd] => 2025-02-08 05:31:05 [RateCDR] => 1 ) [2025-02-08 05:31: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` >= '2025-02-08 02:31:05' and `end` < '2025-02-08 05:31: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 ,'') [2025-02-08 05:31:19] Production.INFO: count ==192 [2025-02-08 05:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:31:05 - End Time 2025-02-08 05:31:05 [2025-02-08 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427590', 'tblTempUsageDetail_20' ) start [2025-02-08 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427590', 'tblTempUsageDetail_20' ) end [2025-02-08 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427590', 'tblTempVendorCDR_20' ) start [2025-02-08 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427590', 'tblTempVendorCDR_20' ) end [2025-02-08 05:31:19] Production.INFO: ProcessCDR(1,14427590,1,1,2) [2025-02-08 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427590', 'tblTempUsageDetail_20' ) start [2025-02-08 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427590', 'tblTempUsageDetail_20' ) end [2025-02-08 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:31:22] Production.INFO: ==28270== Releasing lock... [2025-02-08 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:32:04 [end_date_ymd] => 2025-02-08 05:32:04 [RateCDR] => 1 ) [2025-02-08 05:32:04] 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-02-08 02:32:04' and `end` < '2025-02-08 05:32:04' 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-02-08 05:32:17] Production.INFO: count ==192 [2025-02-08 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-08 02:32:04 - End Time 2025-02-08 05:32:04 [2025-02-08 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427595', 'tblTempUsageDetail_20' ) start [2025-02-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427595', 'tblTempUsageDetail_20' ) end [2025-02-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427595', 'tblTempVendorCDR_20' ) start [2025-02-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427595', 'tblTempVendorCDR_20' ) end [2025-02-08 05:32:17] Production.INFO: ProcessCDR(1,14427595,1,1,2) [2025-02-08 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427595', 'tblTempUsageDetail_20' ) start [2025-02-08 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427595', 'tblTempUsageDetail_20' ) end [2025-02-08 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:32:20] Production.INFO: ==28342== Releasing lock... [2025-02-08 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:33:05 [end_date_ymd] => 2025-02-08 05:33:05 [RateCDR] => 1 ) [2025-02-08 05:33: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` >= '2025-02-08 02:33:05' and `end` < '2025-02-08 05:33: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 ,'') [2025-02-08 05:33:17] Production.INFO: count ==192 [2025-02-08 05:33:17] Production.ERROR: pbx CDR StartTime 2025-02-08 02:33:05 - End Time 2025-02-08 05:33:05 [2025-02-08 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427600', 'tblTempUsageDetail_20' ) start [2025-02-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427600', 'tblTempUsageDetail_20' ) end [2025-02-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427600', 'tblTempVendorCDR_20' ) start [2025-02-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427600', 'tblTempVendorCDR_20' ) end [2025-02-08 05:33:17] Production.INFO: ProcessCDR(1,14427600,1,1,2) [2025-02-08 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427600', 'tblTempUsageDetail_20' ) start [2025-02-08 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427600', 'tblTempUsageDetail_20' ) end [2025-02-08 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:33:20] Production.INFO: ==28415== Releasing lock... [2025-02-08 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:34:05 [end_date_ymd] => 2025-02-08 05:34:05 [RateCDR] => 1 ) [2025-02-08 05:34: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` >= '2025-02-08 02:34:05' and `end` < '2025-02-08 05:34: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 ,'') [2025-02-08 05:34:19] Production.INFO: count ==188 [2025-02-08 05:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:34:05 - End Time 2025-02-08 05:34:05 [2025-02-08 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427605', 'tblTempUsageDetail_20' ) start [2025-02-08 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427605', 'tblTempUsageDetail_20' ) end [2025-02-08 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427605', 'tblTempVendorCDR_20' ) start [2025-02-08 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427605', 'tblTempVendorCDR_20' ) end [2025-02-08 05:34:19] Production.INFO: ProcessCDR(1,14427605,1,1,2) [2025-02-08 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427605', 'tblTempUsageDetail_20' ) start [2025-02-08 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427605', 'tblTempUsageDetail_20' ) end [2025-02-08 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:34:22] Production.INFO: ==28526== Releasing lock... [2025-02-08 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:35:05 [end_date_ymd] => 2025-02-08 05:35:05 [RateCDR] => 1 ) [2025-02-08 05:35: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` >= '2025-02-08 02:35:05' and `end` < '2025-02-08 05:35: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 ,'') [2025-02-08 05:35:18] Production.INFO: count ==188 [2025-02-08 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:35:05 - End Time 2025-02-08 05:35:05 [2025-02-08 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427610', 'tblTempUsageDetail_20' ) start [2025-02-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427610', 'tblTempUsageDetail_20' ) end [2025-02-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427610', 'tblTempVendorCDR_20' ) start [2025-02-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427610', 'tblTempVendorCDR_20' ) end [2025-02-08 05:35:18] Production.INFO: ProcessCDR(1,14427610,1,1,2) [2025-02-08 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427610', 'tblTempUsageDetail_20' ) start [2025-02-08 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427610', 'tblTempUsageDetail_20' ) end [2025-02-08 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:35:21] Production.INFO: ==28603== Releasing lock... [2025-02-08 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:36:06 [end_date_ymd] => 2025-02-08 05:36:06 [RateCDR] => 1 ) [2025-02-08 05:36: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-02-08 02:36:06' and `end` < '2025-02-08 05:36: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-02-08 05:36:19] Production.INFO: count ==188 [2025-02-08 05:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:36:06 - End Time 2025-02-08 05:36:06 [2025-02-08 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427615', 'tblTempUsageDetail_20' ) start [2025-02-08 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427615', 'tblTempUsageDetail_20' ) end [2025-02-08 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427615', 'tblTempVendorCDR_20' ) start [2025-02-08 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427615', 'tblTempVendorCDR_20' ) end [2025-02-08 05:36:19] Production.INFO: ProcessCDR(1,14427615,1,1,2) [2025-02-08 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427615', 'tblTempUsageDetail_20' ) start [2025-02-08 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427615', 'tblTempUsageDetail_20' ) end [2025-02-08 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:36:22] Production.INFO: ==28674== Releasing lock... [2025-02-08 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:37:04 [end_date_ymd] => 2025-02-08 05:37:04 [RateCDR] => 1 ) [2025-02-08 05:37: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` >= '2025-02-08 02:37:04' and `end` < '2025-02-08 05:37:04' 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-02-08 05:37:18] Production.INFO: count ==188 [2025-02-08 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:37:04 - End Time 2025-02-08 05:37:04 [2025-02-08 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427620', 'tblTempUsageDetail_20' ) start [2025-02-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427620', 'tblTempUsageDetail_20' ) end [2025-02-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427620', 'tblTempVendorCDR_20' ) start [2025-02-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427620', 'tblTempVendorCDR_20' ) end [2025-02-08 05:37:18] Production.INFO: ProcessCDR(1,14427620,1,1,2) [2025-02-08 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427620', 'tblTempUsageDetail_20' ) start [2025-02-08 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427620', 'tblTempUsageDetail_20' ) end [2025-02-08 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:37:21] Production.INFO: ==28751== Releasing lock... [2025-02-08 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:38:06 [end_date_ymd] => 2025-02-08 05:38:06 [RateCDR] => 1 ) [2025-02-08 05:38: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-02-08 02:38:06' and `end` < '2025-02-08 05:38: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-02-08 05:38:19] Production.INFO: count ==188 [2025-02-08 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:38:06 - End Time 2025-02-08 05:38:06 [2025-02-08 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427625', 'tblTempUsageDetail_20' ) start [2025-02-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427625', 'tblTempUsageDetail_20' ) end [2025-02-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427625', 'tblTempVendorCDR_20' ) start [2025-02-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427625', 'tblTempVendorCDR_20' ) end [2025-02-08 05:38:19] Production.INFO: ProcessCDR(1,14427625,1,1,2) [2025-02-08 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427625', 'tblTempUsageDetail_20' ) start [2025-02-08 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427625', 'tblTempUsageDetail_20' ) end [2025-02-08 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:38:22] Production.INFO: ==28825== Releasing lock... [2025-02-08 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:39:05 [end_date_ymd] => 2025-02-08 05:39:05 [RateCDR] => 1 ) [2025-02-08 05:39: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` >= '2025-02-08 02:39:05' and `end` < '2025-02-08 05:39: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 ,'') [2025-02-08 05:39:18] Production.INFO: count ==188 [2025-02-08 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:39:05 - End Time 2025-02-08 05:39:05 [2025-02-08 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427630', 'tblTempUsageDetail_20' ) start [2025-02-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427630', 'tblTempUsageDetail_20' ) end [2025-02-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427630', 'tblTempVendorCDR_20' ) start [2025-02-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427630', 'tblTempVendorCDR_20' ) end [2025-02-08 05:39:18] Production.INFO: ProcessCDR(1,14427630,1,1,2) [2025-02-08 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427630', 'tblTempUsageDetail_20' ) start [2025-02-08 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427630', 'tblTempUsageDetail_20' ) end [2025-02-08 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:39:22] Production.INFO: ==28903== Releasing lock... [2025-02-08 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:40:06 [end_date_ymd] => 2025-02-08 05:40:06 [RateCDR] => 1 ) [2025-02-08 05:40: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-02-08 02:40:06' and `end` < '2025-02-08 05:40: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-02-08 05:40:18] Production.INFO: count ==183 [2025-02-08 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:40:06 - End Time 2025-02-08 05:40:06 [2025-02-08 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427636', 'tblTempUsageDetail_20' ) start [2025-02-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427636', 'tblTempUsageDetail_20' ) end [2025-02-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427636', 'tblTempVendorCDR_20' ) start [2025-02-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427636', 'tblTempVendorCDR_20' ) end [2025-02-08 05:40:19] Production.INFO: ProcessCDR(1,14427636,1,1,2) [2025-02-08 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427636', 'tblTempUsageDetail_20' ) start [2025-02-08 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427636', 'tblTempUsageDetail_20' ) end [2025-02-08 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:40:22] Production.INFO: ==28981== Releasing lock... [2025-02-08 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:41:04 [end_date_ymd] => 2025-02-08 05:41:04 [RateCDR] => 1 ) [2025-02-08 05:41:04] 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-02-08 02:41:04' and `end` < '2025-02-08 05:41:04' 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-02-08 05:41:18] Production.INFO: count ==183 [2025-02-08 05:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:41:04 - End Time 2025-02-08 05:41:04 [2025-02-08 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427641', 'tblTempUsageDetail_20' ) start [2025-02-08 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427641', 'tblTempUsageDetail_20' ) end [2025-02-08 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427641', 'tblTempVendorCDR_20' ) start [2025-02-08 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427641', 'tblTempVendorCDR_20' ) end [2025-02-08 05:41:19] Production.INFO: ProcessCDR(1,14427641,1,1,2) [2025-02-08 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427641', 'tblTempUsageDetail_20' ) start [2025-02-08 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427641', 'tblTempUsageDetail_20' ) end [2025-02-08 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:41:22] Production.INFO: ==29062== Releasing lock... [2025-02-08 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:42:05 [end_date_ymd] => 2025-02-08 05:42:05 [RateCDR] => 1 ) [2025-02-08 05:42: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` >= '2025-02-08 02:42:05' and `end` < '2025-02-08 05:42: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 ,'') [2025-02-08 05:42:18] Production.INFO: count ==183 [2025-02-08 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:42:05 - End Time 2025-02-08 05:42:05 [2025-02-08 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427646', 'tblTempUsageDetail_20' ) start [2025-02-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427646', 'tblTempUsageDetail_20' ) end [2025-02-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427646', 'tblTempVendorCDR_20' ) start [2025-02-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427646', 'tblTempVendorCDR_20' ) end [2025-02-08 05:42:18] Production.INFO: ProcessCDR(1,14427646,1,1,2) [2025-02-08 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427646', 'tblTempUsageDetail_20' ) start [2025-02-08 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427646', 'tblTempUsageDetail_20' ) end [2025-02-08 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:42:21] Production.INFO: ==29135== Releasing lock... [2025-02-08 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:43:04 [end_date_ymd] => 2025-02-08 05:43:04 [RateCDR] => 1 ) [2025-02-08 05:43:04] 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-02-08 02:43:04' and `end` < '2025-02-08 05:43:04' 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-02-08 05:43:18] Production.INFO: count ==183 [2025-02-08 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:43:04 - End Time 2025-02-08 05:43:04 [2025-02-08 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427651', 'tblTempUsageDetail_20' ) start [2025-02-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427651', 'tblTempUsageDetail_20' ) end [2025-02-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427651', 'tblTempVendorCDR_20' ) start [2025-02-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427651', 'tblTempVendorCDR_20' ) end [2025-02-08 05:43:18] Production.INFO: ProcessCDR(1,14427651,1,1,2) [2025-02-08 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427651', 'tblTempUsageDetail_20' ) start [2025-02-08 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427651', 'tblTempUsageDetail_20' ) end [2025-02-08 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:43:21] Production.INFO: ==29211== Releasing lock... [2025-02-08 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:44:05 [end_date_ymd] => 2025-02-08 05:44:05 [RateCDR] => 1 ) [2025-02-08 05:44: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` >= '2025-02-08 02:44:05' and `end` < '2025-02-08 05:44: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 ,'') [2025-02-08 05:44:18] Production.INFO: count ==183 [2025-02-08 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:44:05 - End Time 2025-02-08 05:44:05 [2025-02-08 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427656', 'tblTempUsageDetail_20' ) start [2025-02-08 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427656', 'tblTempUsageDetail_20' ) end [2025-02-08 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427656', 'tblTempVendorCDR_20' ) start [2025-02-08 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427656', 'tblTempVendorCDR_20' ) end [2025-02-08 05:44:18] Production.INFO: ProcessCDR(1,14427656,1,1,2) [2025-02-08 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427656', 'tblTempUsageDetail_20' ) start [2025-02-08 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427656', 'tblTempUsageDetail_20' ) end [2025-02-08 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:44:21] Production.INFO: ==29292== Releasing lock... [2025-02-08 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:45:05 [end_date_ymd] => 2025-02-08 05:45:05 [RateCDR] => 1 ) [2025-02-08 05:45: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` >= '2025-02-08 02:45:05' and `end` < '2025-02-08 05:45: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 ,'') [2025-02-08 05:45:18] Production.INFO: count ==183 [2025-02-08 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:45:05 - End Time 2025-02-08 05:45:05 [2025-02-08 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427661', 'tblTempUsageDetail_20' ) start [2025-02-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427661', 'tblTempUsageDetail_20' ) end [2025-02-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427661', 'tblTempVendorCDR_20' ) start [2025-02-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427661', 'tblTempVendorCDR_20' ) end [2025-02-08 05:45:18] Production.INFO: ProcessCDR(1,14427661,1,1,2) [2025-02-08 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427661', 'tblTempUsageDetail_20' ) start [2025-02-08 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427661', 'tblTempUsageDetail_20' ) end [2025-02-08 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:45:21] Production.INFO: ==29368== Releasing lock... [2025-02-08 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:46:04 [end_date_ymd] => 2025-02-08 05:46:04 [RateCDR] => 1 ) [2025-02-08 05:46:04] 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-02-08 02:46:04' and `end` < '2025-02-08 05:46:04' 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-02-08 05:46:18] Production.INFO: count ==183 [2025-02-08 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:46:04 - End Time 2025-02-08 05:46:04 [2025-02-08 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427666', 'tblTempUsageDetail_20' ) start [2025-02-08 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427666', 'tblTempUsageDetail_20' ) end [2025-02-08 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427666', 'tblTempVendorCDR_20' ) start [2025-02-08 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427666', 'tblTempVendorCDR_20' ) end [2025-02-08 05:46:18] Production.INFO: ProcessCDR(1,14427666,1,1,2) [2025-02-08 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427666', 'tblTempUsageDetail_20' ) start [2025-02-08 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427666', 'tblTempUsageDetail_20' ) end [2025-02-08 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:46:21] Production.INFO: ==29445== Releasing lock... [2025-02-08 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:47:05 [end_date_ymd] => 2025-02-08 05:47:05 [RateCDR] => 1 ) [2025-02-08 05:47: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` >= '2025-02-08 02:47:05' and `end` < '2025-02-08 05:47: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 ,'') [2025-02-08 05:47:19] Production.INFO: count ==180 [2025-02-08 05:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:47:05 - End Time 2025-02-08 05:47:05 [2025-02-08 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427671', 'tblTempUsageDetail_20' ) start [2025-02-08 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427671', 'tblTempUsageDetail_20' ) end [2025-02-08 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427671', 'tblTempVendorCDR_20' ) start [2025-02-08 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427671', 'tblTempVendorCDR_20' ) end [2025-02-08 05:47:19] Production.INFO: ProcessCDR(1,14427671,1,1,2) [2025-02-08 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427671', 'tblTempUsageDetail_20' ) start [2025-02-08 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427671', 'tblTempUsageDetail_20' ) end [2025-02-08 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:47:22] Production.INFO: ==29525== Releasing lock... [2025-02-08 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:48:05 [end_date_ymd] => 2025-02-08 05:48:05 [RateCDR] => 1 ) [2025-02-08 05:48: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` >= '2025-02-08 02:48:05' and `end` < '2025-02-08 05:48: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 ,'') [2025-02-08 05:48:17] Production.INFO: count ==180 [2025-02-08 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-08 02:48:05 - End Time 2025-02-08 05:48:05 [2025-02-08 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427676', 'tblTempUsageDetail_20' ) start [2025-02-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427676', 'tblTempUsageDetail_20' ) end [2025-02-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427676', 'tblTempVendorCDR_20' ) start [2025-02-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427676', 'tblTempVendorCDR_20' ) end [2025-02-08 05:48:17] Production.INFO: ProcessCDR(1,14427676,1,1,2) [2025-02-08 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427676', 'tblTempUsageDetail_20' ) start [2025-02-08 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427676', 'tblTempUsageDetail_20' ) end [2025-02-08 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:48:20] Production.INFO: ==29598== Releasing lock... [2025-02-08 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:48:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:49:05 [end_date_ymd] => 2025-02-08 05:49:05 [RateCDR] => 1 ) [2025-02-08 05:49: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-02-08 02:49:05' and `end` < '2025-02-08 05:49: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 ,'') [2025-02-08 05:49:18] Production.INFO: count ==179 [2025-02-08 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:49:05 - End Time 2025-02-08 05:49:05 [2025-02-08 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427681', 'tblTempUsageDetail_20' ) start [2025-02-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427681', 'tblTempUsageDetail_20' ) end [2025-02-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427681', 'tblTempVendorCDR_20' ) start [2025-02-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427681', 'tblTempVendorCDR_20' ) end [2025-02-08 05:49:18] Production.INFO: ProcessCDR(1,14427681,1,1,2) [2025-02-08 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427681', 'tblTempUsageDetail_20' ) start [2025-02-08 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427681', 'tblTempUsageDetail_20' ) end [2025-02-08 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:49:22] Production.INFO: ==29720== Releasing lock... [2025-02-08 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:50:05 [end_date_ymd] => 2025-02-08 05:50:05 [RateCDR] => 1 ) [2025-02-08 05:50: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` >= '2025-02-08 02:50:05' and `end` < '2025-02-08 05:50: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 ,'') [2025-02-08 05:50:18] Production.INFO: count ==177 [2025-02-08 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:50:05 - End Time 2025-02-08 05:50:05 [2025-02-08 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427686', 'tblTempUsageDetail_20' ) start [2025-02-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427686', 'tblTempUsageDetail_20' ) end [2025-02-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427686', 'tblTempVendorCDR_20' ) start [2025-02-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427686', 'tblTempVendorCDR_20' ) end [2025-02-08 05:50:18] Production.INFO: ProcessCDR(1,14427686,1,1,2) [2025-02-08 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427686', 'tblTempUsageDetail_20' ) start [2025-02-08 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427686', 'tblTempUsageDetail_20' ) end [2025-02-08 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:50:21] Production.INFO: ==29800== Releasing lock... [2025-02-08 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:51:05 [end_date_ymd] => 2025-02-08 05:51:05 [RateCDR] => 1 ) [2025-02-08 05:51: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` >= '2025-02-08 02:51:05' and `end` < '2025-02-08 05:51: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 ,'') [2025-02-08 05:51:19] Production.INFO: count ==166 [2025-02-08 05:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 02:51:05 - End Time 2025-02-08 05:51:05 [2025-02-08 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427692', 'tblTempUsageDetail_20' ) start [2025-02-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427692', 'tblTempUsageDetail_20' ) end [2025-02-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427692', 'tblTempVendorCDR_20' ) start [2025-02-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427692', 'tblTempVendorCDR_20' ) end [2025-02-08 05:51:19] Production.INFO: ProcessCDR(1,14427692,1,1,2) [2025-02-08 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427692', 'tblTempUsageDetail_20' ) start [2025-02-08 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427692', 'tblTempUsageDetail_20' ) end [2025-02-08 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:51:22] Production.INFO: ==29876== Releasing lock... [2025-02-08 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:52:05 [end_date_ymd] => 2025-02-08 05:52:05 [RateCDR] => 1 ) [2025-02-08 05:52: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` >= '2025-02-08 02:52:05' and `end` < '2025-02-08 05:52: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 ,'') [2025-02-08 05:52:18] Production.INFO: count ==166 [2025-02-08 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:52:05 - End Time 2025-02-08 05:52:05 [2025-02-08 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427697', 'tblTempUsageDetail_20' ) start [2025-02-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427697', 'tblTempUsageDetail_20' ) end [2025-02-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427697', 'tblTempVendorCDR_20' ) start [2025-02-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427697', 'tblTempVendorCDR_20' ) end [2025-02-08 05:52:18] Production.INFO: ProcessCDR(1,14427697,1,1,2) [2025-02-08 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427697', 'tblTempUsageDetail_20' ) start [2025-02-08 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427697', 'tblTempUsageDetail_20' ) end [2025-02-08 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:52:21] Production.INFO: ==29950== Releasing lock... [2025-02-08 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:53:05 [end_date_ymd] => 2025-02-08 05:53:05 [RateCDR] => 1 ) [2025-02-08 05:53: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` >= '2025-02-08 02:53:05' and `end` < '2025-02-08 05:53: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 ,'') [2025-02-08 05:53:18] Production.INFO: count ==165 [2025-02-08 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:53:05 - End Time 2025-02-08 05:53:05 [2025-02-08 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427702', 'tblTempUsageDetail_20' ) start [2025-02-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427702', 'tblTempUsageDetail_20' ) end [2025-02-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427702', 'tblTempVendorCDR_20' ) start [2025-02-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427702', 'tblTempVendorCDR_20' ) end [2025-02-08 05:53:18] Production.INFO: ProcessCDR(1,14427702,1,1,2) [2025-02-08 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427702', 'tblTempUsageDetail_20' ) start [2025-02-08 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427702', 'tblTempUsageDetail_20' ) end [2025-02-08 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:53:21] Production.INFO: ==30028== Releasing lock... [2025-02-08 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:54:05 [end_date_ymd] => 2025-02-08 05:54:05 [RateCDR] => 1 ) [2025-02-08 05:54: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` >= '2025-02-08 02:54:05' and `end` < '2025-02-08 05:54: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 ,'') [2025-02-08 05:54:18] Production.INFO: count ==165 [2025-02-08 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:54:05 - End Time 2025-02-08 05:54:05 [2025-02-08 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427707', 'tblTempUsageDetail_20' ) start [2025-02-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427707', 'tblTempUsageDetail_20' ) end [2025-02-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427707', 'tblTempVendorCDR_20' ) start [2025-02-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427707', 'tblTempVendorCDR_20' ) end [2025-02-08 05:54:18] Production.INFO: ProcessCDR(1,14427707,1,1,2) [2025-02-08 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427707', 'tblTempUsageDetail_20' ) start [2025-02-08 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427707', 'tblTempUsageDetail_20' ) end [2025-02-08 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:54:21] Production.INFO: ==30109== Releasing lock... [2025-02-08 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:55:05 [end_date_ymd] => 2025-02-08 05:55:05 [RateCDR] => 1 ) [2025-02-08 05:55: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` >= '2025-02-08 02:55:05' and `end` < '2025-02-08 05:55: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 ,'') [2025-02-08 05:55:18] Production.INFO: count ==162 [2025-02-08 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:55:05 - End Time 2025-02-08 05:55:05 [2025-02-08 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427712', 'tblTempUsageDetail_20' ) start [2025-02-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427712', 'tblTempUsageDetail_20' ) end [2025-02-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427712', 'tblTempVendorCDR_20' ) start [2025-02-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427712', 'tblTempVendorCDR_20' ) end [2025-02-08 05:55:18] Production.INFO: ProcessCDR(1,14427712,1,1,2) [2025-02-08 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427712', 'tblTempUsageDetail_20' ) start [2025-02-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427712', 'tblTempUsageDetail_20' ) end [2025-02-08 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:55:21] Production.INFO: ==30187== Releasing lock... [2025-02-08 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:56:05 [end_date_ymd] => 2025-02-08 05:56:05 [RateCDR] => 1 ) [2025-02-08 05:56: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` >= '2025-02-08 02:56:05' and `end` < '2025-02-08 05:56: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 ,'') [2025-02-08 05:56:18] Production.INFO: count ==162 [2025-02-08 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:56:05 - End Time 2025-02-08 05:56:05 [2025-02-08 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427717', 'tblTempUsageDetail_20' ) start [2025-02-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427717', 'tblTempUsageDetail_20' ) end [2025-02-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427717', 'tblTempVendorCDR_20' ) start [2025-02-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427717', 'tblTempVendorCDR_20' ) end [2025-02-08 05:56:18] Production.INFO: ProcessCDR(1,14427717,1,1,2) [2025-02-08 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427717', 'tblTempUsageDetail_20' ) start [2025-02-08 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427717', 'tblTempUsageDetail_20' ) end [2025-02-08 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:56:21] Production.INFO: ==30270== Releasing lock... [2025-02-08 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:57:05 [end_date_ymd] => 2025-02-08 05:57:05 [RateCDR] => 1 ) [2025-02-08 05:57: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` >= '2025-02-08 02:57:05' and `end` < '2025-02-08 05:57: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 ,'') [2025-02-08 05:57:18] Production.INFO: count ==162 [2025-02-08 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:57:05 - End Time 2025-02-08 05:57:05 [2025-02-08 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427722', 'tblTempUsageDetail_20' ) start [2025-02-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427722', 'tblTempUsageDetail_20' ) end [2025-02-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427722', 'tblTempVendorCDR_20' ) start [2025-02-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427722', 'tblTempVendorCDR_20' ) end [2025-02-08 05:57:18] Production.INFO: ProcessCDR(1,14427722,1,1,2) [2025-02-08 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427722', 'tblTempUsageDetail_20' ) start [2025-02-08 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427722', 'tblTempUsageDetail_20' ) end [2025-02-08 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:57:21] Production.INFO: ==30349== Releasing lock... [2025-02-08 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:58:05 [end_date_ymd] => 2025-02-08 05:58:05 [RateCDR] => 1 ) [2025-02-08 05:58: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` >= '2025-02-08 02:58:05' and `end` < '2025-02-08 05:58: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 ,'') [2025-02-08 05:58:18] Production.INFO: count ==161 [2025-02-08 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:58:05 - End Time 2025-02-08 05:58:05 [2025-02-08 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427727', 'tblTempUsageDetail_20' ) start [2025-02-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427727', 'tblTempUsageDetail_20' ) end [2025-02-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427727', 'tblTempVendorCDR_20' ) start [2025-02-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427727', 'tblTempVendorCDR_20' ) end [2025-02-08 05:58:18] Production.INFO: ProcessCDR(1,14427727,1,1,2) [2025-02-08 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427727', 'tblTempUsageDetail_20' ) start [2025-02-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427727', 'tblTempUsageDetail_20' ) end [2025-02-08 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:58:21] Production.INFO: ==30427== Releasing lock... [2025-02-08 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 02:59:04 [end_date_ymd] => 2025-02-08 05:59:04 [RateCDR] => 1 ) [2025-02-08 05:59:04] 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-02-08 02:59:04' and `end` < '2025-02-08 05:59:04' 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-02-08 05:59:18] Production.INFO: count ==161 [2025-02-08 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 02:59:04 - End Time 2025-02-08 05:59:04 [2025-02-08 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427732', 'tblTempUsageDetail_20' ) start [2025-02-08 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427732', 'tblTempUsageDetail_20' ) end [2025-02-08 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427732', 'tblTempVendorCDR_20' ) start [2025-02-08 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427732', 'tblTempVendorCDR_20' ) end [2025-02-08 05:59:18] Production.INFO: ProcessCDR(1,14427732,1,1,2) [2025-02-08 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427732', 'tblTempUsageDetail_20' ) start [2025-02-08 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427732', 'tblTempUsageDetail_20' ) end [2025-02-08 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 05:59:21] Production.INFO: ==30501== Releasing lock... [2025-02-08 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:00:06 [end_date_ymd] => 2025-02-08 06:00:06 [RateCDR] => 1 ) [2025-02-08 06: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-02-08 03:00:06' and `end` < '2025-02-08 06: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-02-08 06:00:19] Production.INFO: count ==157 [2025-02-08 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:00:06 - End Time 2025-02-08 06:00:06 [2025-02-08 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427738', 'tblTempUsageDetail_20' ) start [2025-02-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427738', 'tblTempUsageDetail_20' ) end [2025-02-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427738', 'tblTempVendorCDR_20' ) start [2025-02-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427738', 'tblTempVendorCDR_20' ) end [2025-02-08 06:00:19] Production.INFO: ProcessCDR(1,14427738,1,1,2) [2025-02-08 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427738', 'tblTempUsageDetail_20' ) start [2025-02-08 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427738', 'tblTempUsageDetail_20' ) end [2025-02-08 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:00:22] Production.INFO: ==30584== Releasing lock... [2025-02-08 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:01:05 [end_date_ymd] => 2025-02-08 06:01:05 [RateCDR] => 1 ) [2025-02-08 06: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` >= '2025-02-08 03:01:05' and `end` < '2025-02-08 06: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 ,'') [2025-02-08 06:01:17] Production.INFO: count ==147 [2025-02-08 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:01:05 - End Time 2025-02-08 06:01:05 [2025-02-08 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427743', 'tblTempUsageDetail_20' ) start [2025-02-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427743', 'tblTempUsageDetail_20' ) end [2025-02-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427743', 'tblTempVendorCDR_20' ) start [2025-02-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427743', 'tblTempVendorCDR_20' ) end [2025-02-08 06:01:17] Production.INFO: ProcessCDR(1,14427743,1,1,2) [2025-02-08 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427743', 'tblTempUsageDetail_20' ) start [2025-02-08 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427743', 'tblTempUsageDetail_20' ) end [2025-02-08 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:01:20] Production.INFO: ==30674== Releasing lock... [2025-02-08 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:01:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:02:05 [end_date_ymd] => 2025-02-08 06:02:05 [RateCDR] => 1 ) [2025-02-08 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 03:02:05' and `end` < '2025-02-08 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 06:02:19] Production.INFO: count ==147 [2025-02-08 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:02:05 - End Time 2025-02-08 06:02:05 [2025-02-08 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427748', 'tblTempUsageDetail_20' ) start [2025-02-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427748', 'tblTempUsageDetail_20' ) end [2025-02-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427748', 'tblTempVendorCDR_20' ) start [2025-02-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427748', 'tblTempVendorCDR_20' ) end [2025-02-08 06:02:19] Production.INFO: ProcessCDR(1,14427748,1,1,2) [2025-02-08 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427748', 'tblTempUsageDetail_20' ) start [2025-02-08 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427748', 'tblTempUsageDetail_20' ) end [2025-02-08 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:02:22] Production.INFO: ==30751== Releasing lock... [2025-02-08 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:03:05 [end_date_ymd] => 2025-02-08 06:03:05 [RateCDR] => 1 ) [2025-02-08 06:03: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` >= '2025-02-08 03:03:05' and `end` < '2025-02-08 06:03: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 ,'') [2025-02-08 06:03:17] Production.INFO: count ==147 [2025-02-08 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:03:05 - End Time 2025-02-08 06:03:05 [2025-02-08 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427753', 'tblTempUsageDetail_20' ) start [2025-02-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427753', 'tblTempUsageDetail_20' ) end [2025-02-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427753', 'tblTempVendorCDR_20' ) start [2025-02-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427753', 'tblTempVendorCDR_20' ) end [2025-02-08 06:03:17] Production.INFO: ProcessCDR(1,14427753,1,1,2) [2025-02-08 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427753', 'tblTempUsageDetail_20' ) start [2025-02-08 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427753', 'tblTempUsageDetail_20' ) end [2025-02-08 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:03:21] Production.INFO: ==30825== Releasing lock... [2025-02-08 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:04:05 [end_date_ymd] => 2025-02-08 06:04:05 [RateCDR] => 1 ) [2025-02-08 06:04: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` >= '2025-02-08 03:04:05' and `end` < '2025-02-08 06:04: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 ,'') [2025-02-08 06:04:18] Production.INFO: count ==147 [2025-02-08 06:04:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:04:05 - End Time 2025-02-08 06:04:05 [2025-02-08 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427758', 'tblTempUsageDetail_20' ) start [2025-02-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427758', 'tblTempUsageDetail_20' ) end [2025-02-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427758', 'tblTempVendorCDR_20' ) start [2025-02-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427758', 'tblTempVendorCDR_20' ) end [2025-02-08 06:04:18] Production.INFO: ProcessCDR(1,14427758,1,1,2) [2025-02-08 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427758', 'tblTempUsageDetail_20' ) start [2025-02-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427758', 'tblTempUsageDetail_20' ) end [2025-02-08 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:04:21] Production.INFO: ==30942== Releasing lock... [2025-02-08 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:05:05 [end_date_ymd] => 2025-02-08 06:05:05 [RateCDR] => 1 ) [2025-02-08 06:05: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` >= '2025-02-08 03:05:05' and `end` < '2025-02-08 06:05: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 ,'') [2025-02-08 06:05:19] Production.INFO: count ==147 [2025-02-08 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:05:05 - End Time 2025-02-08 06:05:05 [2025-02-08 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427763', 'tblTempUsageDetail_20' ) start [2025-02-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427763', 'tblTempUsageDetail_20' ) end [2025-02-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427763', 'tblTempVendorCDR_20' ) start [2025-02-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427763', 'tblTempVendorCDR_20' ) end [2025-02-08 06:05:19] Production.INFO: ProcessCDR(1,14427763,1,1,2) [2025-02-08 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427763', 'tblTempUsageDetail_20' ) start [2025-02-08 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427763', 'tblTempUsageDetail_20' ) end [2025-02-08 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:05:22] Production.INFO: ==31016== Releasing lock... [2025-02-08 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:06:05 [end_date_ymd] => 2025-02-08 06:06:05 [RateCDR] => 1 ) [2025-02-08 06:06: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` >= '2025-02-08 03:06:05' and `end` < '2025-02-08 06:06: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 ,'') [2025-02-08 06:06:17] Production.INFO: count ==147 [2025-02-08 06:06:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:06:05 - End Time 2025-02-08 06:06:05 [2025-02-08 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427768', 'tblTempUsageDetail_20' ) start [2025-02-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427768', 'tblTempUsageDetail_20' ) end [2025-02-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427768', 'tblTempVendorCDR_20' ) start [2025-02-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427768', 'tblTempVendorCDR_20' ) end [2025-02-08 06:06:17] Production.INFO: ProcessCDR(1,14427768,1,1,2) [2025-02-08 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427768', 'tblTempUsageDetail_20' ) start [2025-02-08 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427768', 'tblTempUsageDetail_20' ) end [2025-02-08 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:06:20] Production.INFO: ==31090== Releasing lock... [2025-02-08 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:06:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:07:05 [end_date_ymd] => 2025-02-08 06:07:05 [RateCDR] => 1 ) [2025-02-08 06:07: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-02-08 03:07:05' and `end` < '2025-02-08 06:07: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 ,'') [2025-02-08 06:07:18] Production.INFO: count ==147 [2025-02-08 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:07:05 - End Time 2025-02-08 06:07:05 [2025-02-08 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427773', 'tblTempUsageDetail_20' ) start [2025-02-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427773', 'tblTempUsageDetail_20' ) end [2025-02-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427773', 'tblTempVendorCDR_20' ) start [2025-02-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427773', 'tblTempVendorCDR_20' ) end [2025-02-08 06:07:18] Production.INFO: ProcessCDR(1,14427773,1,1,2) [2025-02-08 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427773', 'tblTempUsageDetail_20' ) start [2025-02-08 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427773', 'tblTempUsageDetail_20' ) end [2025-02-08 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:07:21] Production.INFO: ==31171== Releasing lock... [2025-02-08 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:08:05 [end_date_ymd] => 2025-02-08 06:08:05 [RateCDR] => 1 ) [2025-02-08 06:08: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` >= '2025-02-08 03:08:05' and `end` < '2025-02-08 06:08: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 ,'') [2025-02-08 06:08:17] Production.INFO: count ==147 [2025-02-08 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:08:05 - End Time 2025-02-08 06:08:05 [2025-02-08 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427778', 'tblTempUsageDetail_20' ) start [2025-02-08 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427778', 'tblTempUsageDetail_20' ) end [2025-02-08 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427778', 'tblTempVendorCDR_20' ) start [2025-02-08 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427778', 'tblTempVendorCDR_20' ) end [2025-02-08 06:08:17] Production.INFO: ProcessCDR(1,14427778,1,1,2) [2025-02-08 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427778', 'tblTempUsageDetail_20' ) start [2025-02-08 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427778', 'tblTempUsageDetail_20' ) end [2025-02-08 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:08:21] Production.INFO: ==31250== Releasing lock... [2025-02-08 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:09:05 [end_date_ymd] => 2025-02-08 06:09:05 [RateCDR] => 1 ) [2025-02-08 06:09: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` >= '2025-02-08 03:09:05' and `end` < '2025-02-08 06:09: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 ,'') [2025-02-08 06:09:18] Production.INFO: count ==147 [2025-02-08 06:09:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:09:05 - End Time 2025-02-08 06:09:05 [2025-02-08 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427783', 'tblTempUsageDetail_20' ) start [2025-02-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427783', 'tblTempUsageDetail_20' ) end [2025-02-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427783', 'tblTempVendorCDR_20' ) start [2025-02-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427783', 'tblTempVendorCDR_20' ) end [2025-02-08 06:09:18] Production.INFO: ProcessCDR(1,14427783,1,1,2) [2025-02-08 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427783', 'tblTempUsageDetail_20' ) start [2025-02-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427783', 'tblTempUsageDetail_20' ) end [2025-02-08 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:09:21] Production.INFO: ==31324== Releasing lock... [2025-02-08 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:10:05 [end_date_ymd] => 2025-02-08 06:10:05 [RateCDR] => 1 ) [2025-02-08 06:10: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-02-08 03:10:05' and `end` < '2025-02-08 06:10: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 ,'') [2025-02-08 06:10:18] Production.INFO: count ==145 [2025-02-08 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:10:05 - End Time 2025-02-08 06:10:05 [2025-02-08 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427788', 'tblTempUsageDetail_20' ) start [2025-02-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427788', 'tblTempUsageDetail_20' ) end [2025-02-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427788', 'tblTempVendorCDR_20' ) start [2025-02-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427788', 'tblTempVendorCDR_20' ) end [2025-02-08 06:10:18] Production.INFO: ProcessCDR(1,14427788,1,1,2) [2025-02-08 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427788', 'tblTempUsageDetail_20' ) start [2025-02-08 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427788', 'tblTempUsageDetail_20' ) end [2025-02-08 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:10:22] Production.INFO: ==31401== Releasing lock... [2025-02-08 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:11:05 [end_date_ymd] => 2025-02-08 06:11:05 [RateCDR] => 1 ) [2025-02-08 06:11: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` >= '2025-02-08 03:11:05' and `end` < '2025-02-08 06:11: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 ,'') [2025-02-08 06:11:18] Production.INFO: count ==135 [2025-02-08 06:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:11:05 - End Time 2025-02-08 06:11:05 [2025-02-08 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427794', 'tblTempUsageDetail_20' ) start [2025-02-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427794', 'tblTempUsageDetail_20' ) end [2025-02-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427794', 'tblTempVendorCDR_20' ) start [2025-02-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427794', 'tblTempVendorCDR_20' ) end [2025-02-08 06:11:19] Production.INFO: ProcessCDR(1,14427794,1,1,2) [2025-02-08 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427794', 'tblTempUsageDetail_20' ) start [2025-02-08 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427794', 'tblTempUsageDetail_20' ) end [2025-02-08 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:11:22] Production.INFO: ==31483== Releasing lock... [2025-02-08 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:12:05 [end_date_ymd] => 2025-02-08 06:12:05 [RateCDR] => 1 ) [2025-02-08 06:12: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` >= '2025-02-08 03:12:05' and `end` < '2025-02-08 06:12: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 ,'') [2025-02-08 06:12:19] Production.INFO: count ==134 [2025-02-08 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:12:05 - End Time 2025-02-08 06:12:05 [2025-02-08 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427799', 'tblTempUsageDetail_20' ) start [2025-02-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427799', 'tblTempUsageDetail_20' ) end [2025-02-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427799', 'tblTempVendorCDR_20' ) start [2025-02-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427799', 'tblTempVendorCDR_20' ) end [2025-02-08 06:12:19] Production.INFO: ProcessCDR(1,14427799,1,1,2) [2025-02-08 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427799', 'tblTempUsageDetail_20' ) start [2025-02-08 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427799', 'tblTempUsageDetail_20' ) end [2025-02-08 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:12:22] Production.INFO: ==31563== Releasing lock... [2025-02-08 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:13:05 [end_date_ymd] => 2025-02-08 06:13:05 [RateCDR] => 1 ) [2025-02-08 06:13: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` >= '2025-02-08 03:13:05' and `end` < '2025-02-08 06:13: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 ,'') [2025-02-08 06:13:18] Production.INFO: count ==134 [2025-02-08 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:13:05 - End Time 2025-02-08 06:13:05 [2025-02-08 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427804', 'tblTempUsageDetail_20' ) start [2025-02-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427804', 'tblTempUsageDetail_20' ) end [2025-02-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427804', 'tblTempVendorCDR_20' ) start [2025-02-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427804', 'tblTempVendorCDR_20' ) end [2025-02-08 06:13:18] Production.INFO: ProcessCDR(1,14427804,1,1,2) [2025-02-08 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427804', 'tblTempUsageDetail_20' ) start [2025-02-08 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427804', 'tblTempUsageDetail_20' ) end [2025-02-08 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:13:21] Production.INFO: ==31638== Releasing lock... [2025-02-08 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:14:04 [end_date_ymd] => 2025-02-08 06:14:04 [RateCDR] => 1 ) [2025-02-08 06:14:04] 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-02-08 03:14:04' and `end` < '2025-02-08 06:14:04' 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-02-08 06:14:17] Production.INFO: count ==134 [2025-02-08 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:14:04 - End Time 2025-02-08 06:14:04 [2025-02-08 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427809', 'tblTempUsageDetail_20' ) start [2025-02-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427809', 'tblTempUsageDetail_20' ) end [2025-02-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427809', 'tblTempVendorCDR_20' ) start [2025-02-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427809', 'tblTempVendorCDR_20' ) end [2025-02-08 06:14:17] Production.INFO: ProcessCDR(1,14427809,1,1,2) [2025-02-08 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427809', 'tblTempUsageDetail_20' ) start [2025-02-08 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427809', 'tblTempUsageDetail_20' ) end [2025-02-08 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:14:20] Production.INFO: ==31713== Releasing lock... [2025-02-08 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:15:05 [end_date_ymd] => 2025-02-08 06:15:05 [RateCDR] => 1 ) [2025-02-08 06:15: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` >= '2025-02-08 03:15:05' and `end` < '2025-02-08 06:15: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 ,'') [2025-02-08 06:15:17] Production.INFO: count ==134 [2025-02-08 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:15:05 - End Time 2025-02-08 06:15:05 [2025-02-08 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427814', 'tblTempUsageDetail_20' ) start [2025-02-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427814', 'tblTempUsageDetail_20' ) end [2025-02-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427814', 'tblTempVendorCDR_20' ) start [2025-02-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427814', 'tblTempVendorCDR_20' ) end [2025-02-08 06:15:17] Production.INFO: ProcessCDR(1,14427814,1,1,2) [2025-02-08 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427814', 'tblTempUsageDetail_20' ) start [2025-02-08 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427814', 'tblTempUsageDetail_20' ) end [2025-02-08 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:15:20] Production.INFO: ==31790== Releasing lock... [2025-02-08 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:16:05 [end_date_ymd] => 2025-02-08 06:16:05 [RateCDR] => 1 ) [2025-02-08 06:16: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` >= '2025-02-08 03:16:05' and `end` < '2025-02-08 06:16: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 ,'') [2025-02-08 06:16:18] Production.INFO: count ==134 [2025-02-08 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:16:05 - End Time 2025-02-08 06:16:05 [2025-02-08 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427819', 'tblTempUsageDetail_20' ) start [2025-02-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427819', 'tblTempUsageDetail_20' ) end [2025-02-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427819', 'tblTempVendorCDR_20' ) start [2025-02-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427819', 'tblTempVendorCDR_20' ) end [2025-02-08 06:16:18] Production.INFO: ProcessCDR(1,14427819,1,1,2) [2025-02-08 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427819', 'tblTempUsageDetail_20' ) start [2025-02-08 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427819', 'tblTempUsageDetail_20' ) end [2025-02-08 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:16:21] Production.INFO: ==31871== Releasing lock... [2025-02-08 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:17:05 [end_date_ymd] => 2025-02-08 06:17:05 [RateCDR] => 1 ) [2025-02-08 06:17: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` >= '2025-02-08 03:17:05' and `end` < '2025-02-08 06:17: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 ,'') [2025-02-08 06:17:18] Production.INFO: count ==131 [2025-02-08 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:17:05 - End Time 2025-02-08 06:17:05 [2025-02-08 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427824', 'tblTempUsageDetail_20' ) start [2025-02-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427824', 'tblTempUsageDetail_20' ) end [2025-02-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427824', 'tblTempVendorCDR_20' ) start [2025-02-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427824', 'tblTempVendorCDR_20' ) end [2025-02-08 06:17:18] Production.INFO: ProcessCDR(1,14427824,1,1,2) [2025-02-08 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427824', 'tblTempUsageDetail_20' ) start [2025-02-08 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427824', 'tblTempUsageDetail_20' ) end [2025-02-08 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:17:21] Production.INFO: ==31946== Releasing lock... [2025-02-08 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:18:05 [end_date_ymd] => 2025-02-08 06:18:05 [RateCDR] => 1 ) [2025-02-08 06:18: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` >= '2025-02-08 03:18:05' and `end` < '2025-02-08 06:18: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 ,'') [2025-02-08 06:18:18] Production.INFO: count ==133 [2025-02-08 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:18:05 - End Time 2025-02-08 06:18:05 [2025-02-08 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427829', 'tblTempUsageDetail_20' ) start [2025-02-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427829', 'tblTempUsageDetail_20' ) end [2025-02-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427829', 'tblTempVendorCDR_20' ) start [2025-02-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427829', 'tblTempVendorCDR_20' ) end [2025-02-08 06:18:18] Production.INFO: ProcessCDR(1,14427829,1,1,2) [2025-02-08 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427829', 'tblTempUsageDetail_20' ) start [2025-02-08 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427829', 'tblTempUsageDetail_20' ) end [2025-02-08 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:18:21] Production.INFO: ==32021== Releasing lock... [2025-02-08 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:19:05 [end_date_ymd] => 2025-02-08 06:19:05 [RateCDR] => 1 ) [2025-02-08 06:19: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` >= '2025-02-08 03:19:05' and `end` < '2025-02-08 06:19: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 ,'') [2025-02-08 06:19:18] Production.INFO: count ==133 [2025-02-08 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:19:05 - End Time 2025-02-08 06:19:05 [2025-02-08 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427834', 'tblTempUsageDetail_20' ) start [2025-02-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427834', 'tblTempUsageDetail_20' ) end [2025-02-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427834', 'tblTempVendorCDR_20' ) start [2025-02-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427834', 'tblTempVendorCDR_20' ) end [2025-02-08 06:19:18] Production.INFO: ProcessCDR(1,14427834,1,1,2) [2025-02-08 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427834', 'tblTempUsageDetail_20' ) start [2025-02-08 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427834', 'tblTempUsageDetail_20' ) end [2025-02-08 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:19:21] Production.INFO: ==32100== Releasing lock... [2025-02-08 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:20:05 [end_date_ymd] => 2025-02-08 06:20:05 [RateCDR] => 1 ) [2025-02-08 06:20: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` >= '2025-02-08 03:20:05' and `end` < '2025-02-08 06:20: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 ,'') [2025-02-08 06:20:18] Production.INFO: count ==133 [2025-02-08 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:20:05 - End Time 2025-02-08 06:20:05 [2025-02-08 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427839', 'tblTempUsageDetail_20' ) start [2025-02-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427839', 'tblTempUsageDetail_20' ) end [2025-02-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427839', 'tblTempVendorCDR_20' ) start [2025-02-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427839', 'tblTempVendorCDR_20' ) end [2025-02-08 06:20:18] Production.INFO: ProcessCDR(1,14427839,1,1,2) [2025-02-08 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427839', 'tblTempUsageDetail_20' ) start [2025-02-08 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427839', 'tblTempUsageDetail_20' ) end [2025-02-08 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:20:21] Production.INFO: ==32215== Releasing lock... [2025-02-08 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:21:04 [end_date_ymd] => 2025-02-08 06:21:04 [RateCDR] => 1 ) [2025-02-08 06:21:04] 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-02-08 03:21:04' and `end` < '2025-02-08 06:21:04' 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-02-08 06:21:17] Production.INFO: count ==131 [2025-02-08 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:21:04 - End Time 2025-02-08 06:21:04 [2025-02-08 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427845', 'tblTempUsageDetail_20' ) start [2025-02-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427845', 'tblTempUsageDetail_20' ) end [2025-02-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427845', 'tblTempVendorCDR_20' ) start [2025-02-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427845', 'tblTempVendorCDR_20' ) end [2025-02-08 06:21:17] Production.INFO: ProcessCDR(1,14427845,1,1,2) [2025-02-08 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427845', 'tblTempUsageDetail_20' ) start [2025-02-08 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427845', 'tblTempUsageDetail_20' ) end [2025-02-08 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:21:20] Production.INFO: ==32288== Releasing lock... [2025-02-08 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:22:05 [end_date_ymd] => 2025-02-08 06:22:05 [RateCDR] => 1 ) [2025-02-08 06:22: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` >= '2025-02-08 03:22:05' and `end` < '2025-02-08 06:22: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 ,'') [2025-02-08 06:22:18] Production.INFO: count ==131 [2025-02-08 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:22:05 - End Time 2025-02-08 06:22:05 [2025-02-08 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427850', 'tblTempUsageDetail_20' ) start [2025-02-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427850', 'tblTempUsageDetail_20' ) end [2025-02-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427850', 'tblTempVendorCDR_20' ) start [2025-02-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427850', 'tblTempVendorCDR_20' ) end [2025-02-08 06:22:18] Production.INFO: ProcessCDR(1,14427850,1,1,2) [2025-02-08 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427850', 'tblTempUsageDetail_20' ) start [2025-02-08 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427850', 'tblTempUsageDetail_20' ) end [2025-02-08 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:22:21] Production.INFO: ==32363== Releasing lock... [2025-02-08 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:23:05 [end_date_ymd] => 2025-02-08 06:23:05 [RateCDR] => 1 ) [2025-02-08 06:23: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` >= '2025-02-08 03:23:05' and `end` < '2025-02-08 06:23: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 ,'') [2025-02-08 06:23:18] Production.INFO: count ==131 [2025-02-08 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:23:05 - End Time 2025-02-08 06:23:05 [2025-02-08 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427855', 'tblTempUsageDetail_20' ) start [2025-02-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427855', 'tblTempUsageDetail_20' ) end [2025-02-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427855', 'tblTempVendorCDR_20' ) start [2025-02-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427855', 'tblTempVendorCDR_20' ) end [2025-02-08 06:23:18] Production.INFO: ProcessCDR(1,14427855,1,1,2) [2025-02-08 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427855', 'tblTempUsageDetail_20' ) start [2025-02-08 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427855', 'tblTempUsageDetail_20' ) end [2025-02-08 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:23:21] Production.INFO: ==32439== Releasing lock... [2025-02-08 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:24:05 [end_date_ymd] => 2025-02-08 06:24:05 [RateCDR] => 1 ) [2025-02-08 06:24: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` >= '2025-02-08 03:24:05' and `end` < '2025-02-08 06:24: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 ,'') [2025-02-08 06:24:18] Production.INFO: count ==131 [2025-02-08 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:24:05 - End Time 2025-02-08 06:24:05 [2025-02-08 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427860', 'tblTempUsageDetail_20' ) start [2025-02-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427860', 'tblTempUsageDetail_20' ) end [2025-02-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427860', 'tblTempVendorCDR_20' ) start [2025-02-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427860', 'tblTempVendorCDR_20' ) end [2025-02-08 06:24:18] Production.INFO: ProcessCDR(1,14427860,1,1,2) [2025-02-08 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427860', 'tblTempUsageDetail_20' ) start [2025-02-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427860', 'tblTempUsageDetail_20' ) end [2025-02-08 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:24:21] Production.INFO: ==32518== Releasing lock... [2025-02-08 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:25:05 [end_date_ymd] => 2025-02-08 06:25:05 [RateCDR] => 1 ) [2025-02-08 06:25: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` >= '2025-02-08 03:25:05' and `end` < '2025-02-08 06:25: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 ,'') [2025-02-08 06:25:18] Production.INFO: count ==129 [2025-02-08 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:25:05 - End Time 2025-02-08 06:25:05 [2025-02-08 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427865', 'tblTempUsageDetail_20' ) start [2025-02-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427865', 'tblTempUsageDetail_20' ) end [2025-02-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427865', 'tblTempVendorCDR_20' ) start [2025-02-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427865', 'tblTempVendorCDR_20' ) end [2025-02-08 06:25:18] Production.INFO: ProcessCDR(1,14427865,1,1,2) [2025-02-08 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427865', 'tblTempUsageDetail_20' ) start [2025-02-08 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427865', 'tblTempUsageDetail_20' ) end [2025-02-08 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:25:22] Production.INFO: ==32592== Releasing lock... [2025-02-08 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:26:05 [end_date_ymd] => 2025-02-08 06:26:05 [RateCDR] => 1 ) [2025-02-08 06:26: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` >= '2025-02-08 03:26:05' and `end` < '2025-02-08 06:26: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 ,'') [2025-02-08 06:26:19] Production.INFO: count ==130 [2025-02-08 06:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:26:05 - End Time 2025-02-08 06:26:05 [2025-02-08 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427870', 'tblTempUsageDetail_20' ) start [2025-02-08 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427870', 'tblTempUsageDetail_20' ) end [2025-02-08 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427870', 'tblTempVendorCDR_20' ) start [2025-02-08 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427870', 'tblTempVendorCDR_20' ) end [2025-02-08 06:26:19] Production.INFO: ProcessCDR(1,14427870,1,1,2) [2025-02-08 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427870', 'tblTempUsageDetail_20' ) start [2025-02-08 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427870', 'tblTempUsageDetail_20' ) end [2025-02-08 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:26:22] Production.INFO: ==32667== Releasing lock... [2025-02-08 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:27:05 [end_date_ymd] => 2025-02-08 06:27:05 [RateCDR] => 1 ) [2025-02-08 06:27: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` >= '2025-02-08 03:27:05' and `end` < '2025-02-08 06:27: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 ,'') [2025-02-08 06:27:18] Production.INFO: count ==132 [2025-02-08 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:27:05 - End Time 2025-02-08 06:27:05 [2025-02-08 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427875', 'tblTempUsageDetail_20' ) start [2025-02-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427875', 'tblTempUsageDetail_20' ) end [2025-02-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427875', 'tblTempVendorCDR_20' ) start [2025-02-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427875', 'tblTempVendorCDR_20' ) end [2025-02-08 06:27:18] Production.INFO: ProcessCDR(1,14427875,1,1,2) [2025-02-08 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427875', 'tblTempUsageDetail_20' ) start [2025-02-08 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427875', 'tblTempUsageDetail_20' ) end [2025-02-08 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:27:21] Production.INFO: ==32740== Releasing lock... [2025-02-08 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:28:05 [end_date_ymd] => 2025-02-08 06:28:05 [RateCDR] => 1 ) [2025-02-08 06:28: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` >= '2025-02-08 03:28:05' and `end` < '2025-02-08 06:28: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 ,'') [2025-02-08 06:28:18] Production.INFO: count ==132 [2025-02-08 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:28:05 - End Time 2025-02-08 06:28:05 [2025-02-08 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427880', 'tblTempUsageDetail_20' ) start [2025-02-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427880', 'tblTempUsageDetail_20' ) end [2025-02-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427880', 'tblTempVendorCDR_20' ) start [2025-02-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427880', 'tblTempVendorCDR_20' ) end [2025-02-08 06:28:18] Production.INFO: ProcessCDR(1,14427880,1,1,2) [2025-02-08 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427880', 'tblTempUsageDetail_20' ) start [2025-02-08 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427880', 'tblTempUsageDetail_20' ) end [2025-02-08 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:28:21] Production.INFO: ==366== Releasing lock... [2025-02-08 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:29:05 [end_date_ymd] => 2025-02-08 06:29:05 [RateCDR] => 1 ) [2025-02-08 06:29: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` >= '2025-02-08 03:29:05' and `end` < '2025-02-08 06:29: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 ,'') [2025-02-08 06:29:18] Production.INFO: count ==132 [2025-02-08 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:29:05 - End Time 2025-02-08 06:29:05 [2025-02-08 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427885', 'tblTempUsageDetail_20' ) start [2025-02-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427885', 'tblTempUsageDetail_20' ) end [2025-02-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427885', 'tblTempVendorCDR_20' ) start [2025-02-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427885', 'tblTempVendorCDR_20' ) end [2025-02-08 06:29:18] Production.INFO: ProcessCDR(1,14427885,1,1,2) [2025-02-08 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427885', 'tblTempUsageDetail_20' ) start [2025-02-08 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427885', 'tblTempUsageDetail_20' ) end [2025-02-08 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:29:21] Production.INFO: ==437== Releasing lock... [2025-02-08 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:30:05 [end_date_ymd] => 2025-02-08 06:30:05 [RateCDR] => 1 ) [2025-02-08 06:30: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` >= '2025-02-08 03:30:05' and `end` < '2025-02-08 06:30: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 ,'') [2025-02-08 06:30:18] Production.INFO: count ==132 [2025-02-08 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:30:05 - End Time 2025-02-08 06:30:05 [2025-02-08 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427891', 'tblTempUsageDetail_20' ) start [2025-02-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427891', 'tblTempUsageDetail_20' ) end [2025-02-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427891', 'tblTempVendorCDR_20' ) start [2025-02-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427891', 'tblTempVendorCDR_20' ) end [2025-02-08 06:30:18] Production.INFO: ProcessCDR(1,14427891,1,1,2) [2025-02-08 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427891', 'tblTempUsageDetail_20' ) start [2025-02-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427891', 'tblTempUsageDetail_20' ) end [2025-02-08 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:30:21] Production.INFO: ==515== Releasing lock... [2025-02-08 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:31:05 [end_date_ymd] => 2025-02-08 06:31:05 [RateCDR] => 1 ) [2025-02-08 06:31: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` >= '2025-02-08 03:31:05' and `end` < '2025-02-08 06:31: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 ,'') [2025-02-08 06:31:18] Production.INFO: count ==124 [2025-02-08 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:31:05 - End Time 2025-02-08 06:31:05 [2025-02-08 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427896', 'tblTempUsageDetail_20' ) start [2025-02-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427896', 'tblTempUsageDetail_20' ) end [2025-02-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427896', 'tblTempVendorCDR_20' ) start [2025-02-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427896', 'tblTempVendorCDR_20' ) end [2025-02-08 06:31:18] Production.INFO: ProcessCDR(1,14427896,1,1,2) [2025-02-08 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427896', 'tblTempUsageDetail_20' ) start [2025-02-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427896', 'tblTempUsageDetail_20' ) end [2025-02-08 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:31:21] Production.INFO: ==590== Releasing lock... [2025-02-08 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:32:04 [end_date_ymd] => 2025-02-08 06:32:04 [RateCDR] => 1 ) [2025-02-08 06:32:04] 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-02-08 03:32:04' and `end` < '2025-02-08 06:32:04' 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-02-08 06:32:17] Production.INFO: count ==124 [2025-02-08 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:32:04 - End Time 2025-02-08 06:32:04 [2025-02-08 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427901', 'tblTempUsageDetail_20' ) start [2025-02-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427901', 'tblTempUsageDetail_20' ) end [2025-02-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427901', 'tblTempVendorCDR_20' ) start [2025-02-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427901', 'tblTempVendorCDR_20' ) end [2025-02-08 06:32:17] Production.INFO: ProcessCDR(1,14427901,1,1,2) [2025-02-08 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427901', 'tblTempUsageDetail_20' ) start [2025-02-08 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427901', 'tblTempUsageDetail_20' ) end [2025-02-08 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:32:20] Production.INFO: ==677== Releasing lock... [2025-02-08 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:33:04 [end_date_ymd] => 2025-02-08 06:33:04 [RateCDR] => 1 ) [2025-02-08 06:33:04] 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-02-08 03:33:04' and `end` < '2025-02-08 06:33:04' 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-02-08 06:33:17] Production.INFO: count ==124 [2025-02-08 06:33:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:33:04 - End Time 2025-02-08 06:33:04 [2025-02-08 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427906', 'tblTempUsageDetail_20' ) start [2025-02-08 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427906', 'tblTempUsageDetail_20' ) end [2025-02-08 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427906', 'tblTempVendorCDR_20' ) start [2025-02-08 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427906', 'tblTempVendorCDR_20' ) end [2025-02-08 06:33:17] Production.INFO: ProcessCDR(1,14427906,1,1,2) [2025-02-08 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427906', 'tblTempUsageDetail_20' ) start [2025-02-08 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427906', 'tblTempUsageDetail_20' ) end [2025-02-08 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:33:20] Production.INFO: ==764== Releasing lock... [2025-02-08 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:34:06 [end_date_ymd] => 2025-02-08 06:34:06 [RateCDR] => 1 ) [2025-02-08 06:34: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-02-08 03:34:06' and `end` < '2025-02-08 06:34: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-02-08 06:34:19] Production.INFO: count ==124 [2025-02-08 06:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:34:06 - End Time 2025-02-08 06:34:06 [2025-02-08 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427911', 'tblTempUsageDetail_20' ) start [2025-02-08 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427911', 'tblTempUsageDetail_20' ) end [2025-02-08 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427911', 'tblTempVendorCDR_20' ) start [2025-02-08 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427911', 'tblTempVendorCDR_20' ) end [2025-02-08 06:34:19] Production.INFO: ProcessCDR(1,14427911,1,1,2) [2025-02-08 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427911', 'tblTempUsageDetail_20' ) start [2025-02-08 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427911', 'tblTempUsageDetail_20' ) end [2025-02-08 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:34:22] Production.INFO: ==838== Releasing lock... [2025-02-08 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:35:05 [end_date_ymd] => 2025-02-08 06:35:05 [RateCDR] => 1 ) [2025-02-08 06:35: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` >= '2025-02-08 03:35:05' and `end` < '2025-02-08 06:35: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 ,'') [2025-02-08 06:35:18] Production.INFO: count ==124 [2025-02-08 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:35:05 - End Time 2025-02-08 06:35:05 [2025-02-08 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427916', 'tblTempUsageDetail_20' ) start [2025-02-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427916', 'tblTempUsageDetail_20' ) end [2025-02-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427916', 'tblTempVendorCDR_20' ) start [2025-02-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427916', 'tblTempVendorCDR_20' ) end [2025-02-08 06:35:18] Production.INFO: ProcessCDR(1,14427916,1,1,2) [2025-02-08 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427916', 'tblTempUsageDetail_20' ) start [2025-02-08 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427916', 'tblTempUsageDetail_20' ) end [2025-02-08 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:35:21] Production.INFO: ==952== Releasing lock... [2025-02-08 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:36:05 [end_date_ymd] => 2025-02-08 06:36:05 [RateCDR] => 1 ) [2025-02-08 06:36: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` >= '2025-02-08 03:36:05' and `end` < '2025-02-08 06:36: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 ,'') [2025-02-08 06:36:18] Production.INFO: count ==124 [2025-02-08 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:36:05 - End Time 2025-02-08 06:36:05 [2025-02-08 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427921', 'tblTempUsageDetail_20' ) start [2025-02-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427921', 'tblTempUsageDetail_20' ) end [2025-02-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427921', 'tblTempVendorCDR_20' ) start [2025-02-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427921', 'tblTempVendorCDR_20' ) end [2025-02-08 06:36:19] Production.INFO: ProcessCDR(1,14427921,1,1,2) [2025-02-08 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427921', 'tblTempUsageDetail_20' ) start [2025-02-08 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427921', 'tblTempUsageDetail_20' ) end [2025-02-08 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:36:22] Production.INFO: ==1024== Releasing lock... [2025-02-08 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:37:05 [end_date_ymd] => 2025-02-08 06:37:05 [RateCDR] => 1 ) [2025-02-08 06:37: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` >= '2025-02-08 03:37:05' and `end` < '2025-02-08 06:37: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 ,'') [2025-02-08 06:37:18] Production.INFO: count ==124 [2025-02-08 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:37:05 - End Time 2025-02-08 06:37:05 [2025-02-08 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427926', 'tblTempUsageDetail_20' ) start [2025-02-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427926', 'tblTempUsageDetail_20' ) end [2025-02-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427926', 'tblTempVendorCDR_20' ) start [2025-02-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427926', 'tblTempVendorCDR_20' ) end [2025-02-08 06:37:18] Production.INFO: ProcessCDR(1,14427926,1,1,2) [2025-02-08 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427926', 'tblTempUsageDetail_20' ) start [2025-02-08 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427926', 'tblTempUsageDetail_20' ) end [2025-02-08 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:37:21] Production.INFO: ==1098== Releasing lock... [2025-02-08 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:38:05 [end_date_ymd] => 2025-02-08 06:38:05 [RateCDR] => 1 ) [2025-02-08 06:38: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` >= '2025-02-08 03:38:05' and `end` < '2025-02-08 06:38: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 ,'') [2025-02-08 06:38:18] Production.INFO: count ==125 [2025-02-08 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:38:05 - End Time 2025-02-08 06:38:05 [2025-02-08 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427931', 'tblTempUsageDetail_20' ) start [2025-02-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427931', 'tblTempUsageDetail_20' ) end [2025-02-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427931', 'tblTempVendorCDR_20' ) start [2025-02-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427931', 'tblTempVendorCDR_20' ) end [2025-02-08 06:38:18] Production.INFO: ProcessCDR(1,14427931,1,1,2) [2025-02-08 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427931', 'tblTempUsageDetail_20' ) start [2025-02-08 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427931', 'tblTempUsageDetail_20' ) end [2025-02-08 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:38:21] Production.INFO: ==1180== Releasing lock... [2025-02-08 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:39:05 [end_date_ymd] => 2025-02-08 06:39:05 [RateCDR] => 1 ) [2025-02-08 06:39: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` >= '2025-02-08 03:39:05' and `end` < '2025-02-08 06:39: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 ,'') [2025-02-08 06:39:19] Production.INFO: count ==127 [2025-02-08 06:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:39:05 - End Time 2025-02-08 06:39:05 [2025-02-08 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427936', 'tblTempUsageDetail_20' ) start [2025-02-08 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427936', 'tblTempUsageDetail_20' ) end [2025-02-08 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427936', 'tblTempVendorCDR_20' ) start [2025-02-08 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427936', 'tblTempVendorCDR_20' ) end [2025-02-08 06:39:19] Production.INFO: ProcessCDR(1,14427936,1,1,2) [2025-02-08 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427936', 'tblTempUsageDetail_20' ) start [2025-02-08 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427936', 'tblTempUsageDetail_20' ) end [2025-02-08 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:39:22] Production.INFO: ==1260== Releasing lock... [2025-02-08 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:40:06 [end_date_ymd] => 2025-02-08 06:40:06 [RateCDR] => 1 ) [2025-02-08 06:40: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-02-08 03:40:06' and `end` < '2025-02-08 06:40: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-02-08 06:40:19] Production.INFO: count ==129 [2025-02-08 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:40:06 - End Time 2025-02-08 06:40:06 [2025-02-08 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427942', 'tblTempUsageDetail_20' ) start [2025-02-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427942', 'tblTempUsageDetail_20' ) end [2025-02-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427942', 'tblTempVendorCDR_20' ) start [2025-02-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427942', 'tblTempVendorCDR_20' ) end [2025-02-08 06:40:19] Production.INFO: ProcessCDR(1,14427942,1,1,2) [2025-02-08 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427942', 'tblTempUsageDetail_20' ) start [2025-02-08 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427942', 'tblTempUsageDetail_20' ) end [2025-02-08 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:40:22] Production.INFO: ==1334== Releasing lock... [2025-02-08 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:41:05 [end_date_ymd] => 2025-02-08 06:41:05 [RateCDR] => 1 ) [2025-02-08 06:41: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` >= '2025-02-08 03:41:05' and `end` < '2025-02-08 06:41: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 ,'') [2025-02-08 06:41:19] Production.INFO: count ==129 [2025-02-08 06:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:41:05 - End Time 2025-02-08 06:41:05 [2025-02-08 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427947', 'tblTempUsageDetail_20' ) start [2025-02-08 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427947', 'tblTempUsageDetail_20' ) end [2025-02-08 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427947', 'tblTempVendorCDR_20' ) start [2025-02-08 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427947', 'tblTempVendorCDR_20' ) end [2025-02-08 06:41:19] Production.INFO: ProcessCDR(1,14427947,1,1,2) [2025-02-08 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427947', 'tblTempUsageDetail_20' ) start [2025-02-08 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427947', 'tblTempUsageDetail_20' ) end [2025-02-08 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:41:22] Production.INFO: ==1408== Releasing lock... [2025-02-08 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:42:05 [end_date_ymd] => 2025-02-08 06:42:05 [RateCDR] => 1 ) [2025-02-08 06:42: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` >= '2025-02-08 03:42:05' and `end` < '2025-02-08 06:42: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 ,'') [2025-02-08 06:42:18] Production.INFO: count ==129 [2025-02-08 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:42:05 - End Time 2025-02-08 06:42:05 [2025-02-08 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427952', 'tblTempUsageDetail_20' ) start [2025-02-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427952', 'tblTempUsageDetail_20' ) end [2025-02-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427952', 'tblTempVendorCDR_20' ) start [2025-02-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427952', 'tblTempVendorCDR_20' ) end [2025-02-08 06:42:18] Production.INFO: ProcessCDR(1,14427952,1,1,2) [2025-02-08 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427952', 'tblTempUsageDetail_20' ) start [2025-02-08 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427952', 'tblTempUsageDetail_20' ) end [2025-02-08 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:42:21] Production.INFO: ==1477== Releasing lock... [2025-02-08 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:43:05 [end_date_ymd] => 2025-02-08 06:43:05 [RateCDR] => 1 ) [2025-02-08 06:43: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` >= '2025-02-08 03:43:05' and `end` < '2025-02-08 06:43: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 ,'') [2025-02-08 06:43:18] Production.INFO: count ==129 [2025-02-08 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:43:05 - End Time 2025-02-08 06:43:05 [2025-02-08 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427957', 'tblTempUsageDetail_20' ) start [2025-02-08 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427957', 'tblTempUsageDetail_20' ) end [2025-02-08 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427957', 'tblTempVendorCDR_20' ) start [2025-02-08 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427957', 'tblTempVendorCDR_20' ) end [2025-02-08 06:43:18] Production.INFO: ProcessCDR(1,14427957,1,1,2) [2025-02-08 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427957', 'tblTempUsageDetail_20' ) start [2025-02-08 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427957', 'tblTempUsageDetail_20' ) end [2025-02-08 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:43:21] Production.INFO: ==1585== Releasing lock... [2025-02-08 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:44:05 [end_date_ymd] => 2025-02-08 06:44:05 [RateCDR] => 1 ) [2025-02-08 06:44: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` >= '2025-02-08 03:44:05' and `end` < '2025-02-08 06:44: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 ,'') [2025-02-08 06:44:18] Production.INFO: count ==129 [2025-02-08 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:44:05 - End Time 2025-02-08 06:44:05 [2025-02-08 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427962', 'tblTempUsageDetail_20' ) start [2025-02-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427962', 'tblTempUsageDetail_20' ) end [2025-02-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427962', 'tblTempVendorCDR_20' ) start [2025-02-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427962', 'tblTempVendorCDR_20' ) end [2025-02-08 06:44:18] Production.INFO: ProcessCDR(1,14427962,1,1,2) [2025-02-08 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427962', 'tblTempUsageDetail_20' ) start [2025-02-08 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427962', 'tblTempUsageDetail_20' ) end [2025-02-08 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:44:21] Production.INFO: ==1655== Releasing lock... [2025-02-08 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:45:05 [end_date_ymd] => 2025-02-08 06:45:05 [RateCDR] => 1 ) [2025-02-08 06:45: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` >= '2025-02-08 03:45:05' and `end` < '2025-02-08 06:45: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 ,'') [2025-02-08 06:45:18] Production.INFO: count ==129 [2025-02-08 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:45:05 - End Time 2025-02-08 06:45:05 [2025-02-08 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427967', 'tblTempUsageDetail_20' ) start [2025-02-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427967', 'tblTempUsageDetail_20' ) end [2025-02-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427967', 'tblTempVendorCDR_20' ) start [2025-02-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427967', 'tblTempVendorCDR_20' ) end [2025-02-08 06:45:18] Production.INFO: ProcessCDR(1,14427967,1,1,2) [2025-02-08 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427967', 'tblTempUsageDetail_20' ) start [2025-02-08 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427967', 'tblTempUsageDetail_20' ) end [2025-02-08 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:45:21] Production.INFO: ==1726== Releasing lock... [2025-02-08 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:46:04 [end_date_ymd] => 2025-02-08 06:46:04 [RateCDR] => 1 ) [2025-02-08 06:46: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` >= '2025-02-08 03:46:04' and `end` < '2025-02-08 06:46:04' 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-02-08 06:46:17] Production.INFO: count ==129 [2025-02-08 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:46:04 - End Time 2025-02-08 06:46:04 [2025-02-08 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427972', 'tblTempUsageDetail_20' ) start [2025-02-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427972', 'tblTempUsageDetail_20' ) end [2025-02-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427972', 'tblTempVendorCDR_20' ) start [2025-02-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427972', 'tblTempVendorCDR_20' ) end [2025-02-08 06:46:17] Production.INFO: ProcessCDR(1,14427972,1,1,2) [2025-02-08 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427972', 'tblTempUsageDetail_20' ) start [2025-02-08 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427972', 'tblTempUsageDetail_20' ) end [2025-02-08 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:46:20] Production.INFO: ==1796== Releasing lock... [2025-02-08 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:47:05 [end_date_ymd] => 2025-02-08 06:47:05 [RateCDR] => 1 ) [2025-02-08 06:47: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` >= '2025-02-08 03:47:05' and `end` < '2025-02-08 06:47: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 ,'') [2025-02-08 06:47:19] Production.INFO: count ==129 [2025-02-08 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:47:05 - End Time 2025-02-08 06:47:05 [2025-02-08 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427977', 'tblTempUsageDetail_20' ) start [2025-02-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427977', 'tblTempUsageDetail_20' ) end [2025-02-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427977', 'tblTempVendorCDR_20' ) start [2025-02-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427977', 'tblTempVendorCDR_20' ) end [2025-02-08 06:47:19] Production.INFO: ProcessCDR(1,14427977,1,1,2) [2025-02-08 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427977', 'tblTempUsageDetail_20' ) start [2025-02-08 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427977', 'tblTempUsageDetail_20' ) end [2025-02-08 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:47:22] Production.INFO: ==1873== Releasing lock... [2025-02-08 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:48:05 [end_date_ymd] => 2025-02-08 06:48:05 [RateCDR] => 1 ) [2025-02-08 06:48: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` >= '2025-02-08 03:48:05' and `end` < '2025-02-08 06:48: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 ,'') [2025-02-08 06:48:19] Production.INFO: count ==129 [2025-02-08 06:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:48:05 - End Time 2025-02-08 06:48:05 [2025-02-08 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427982', 'tblTempUsageDetail_20' ) start [2025-02-08 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427982', 'tblTempUsageDetail_20' ) end [2025-02-08 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427982', 'tblTempVendorCDR_20' ) start [2025-02-08 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427982', 'tblTempVendorCDR_20' ) end [2025-02-08 06:48:19] Production.INFO: ProcessCDR(1,14427982,1,1,2) [2025-02-08 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427982', 'tblTempUsageDetail_20' ) start [2025-02-08 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427982', 'tblTempUsageDetail_20' ) end [2025-02-08 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:48:22] Production.INFO: ==1949== Releasing lock... [2025-02-08 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:49:04 [end_date_ymd] => 2025-02-08 06:49:04 [RateCDR] => 1 ) [2025-02-08 06:49:04] 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-02-08 03:49:04' and `end` < '2025-02-08 06:49:04' 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-02-08 06:49:17] Production.INFO: count ==129 [2025-02-08 06:49:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:49:04 - End Time 2025-02-08 06:49:04 [2025-02-08 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427987', 'tblTempUsageDetail_20' ) start [2025-02-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427987', 'tblTempUsageDetail_20' ) end [2025-02-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427987', 'tblTempVendorCDR_20' ) start [2025-02-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427987', 'tblTempVendorCDR_20' ) end [2025-02-08 06:49:17] Production.INFO: ProcessCDR(1,14427987,1,1,2) [2025-02-08 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427987', 'tblTempUsageDetail_20' ) start [2025-02-08 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427987', 'tblTempUsageDetail_20' ) end [2025-02-08 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:49:20] Production.INFO: ==2020== Releasing lock... [2025-02-08 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:50:06 [end_date_ymd] => 2025-02-08 06:50:06 [RateCDR] => 1 ) [2025-02-08 06:50: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-02-08 03:50:06' and `end` < '2025-02-08 06:50: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-02-08 06:50:19] Production.INFO: count ==129 [2025-02-08 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:50:06 - End Time 2025-02-08 06:50:06 [2025-02-08 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427993', 'tblTempUsageDetail_20' ) start [2025-02-08 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427993', 'tblTempUsageDetail_20' ) end [2025-02-08 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427993', 'tblTempVendorCDR_20' ) start [2025-02-08 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427993', 'tblTempVendorCDR_20' ) end [2025-02-08 06:50:19] Production.INFO: ProcessCDR(1,14427993,1,1,2) [2025-02-08 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427993', 'tblTempUsageDetail_20' ) start [2025-02-08 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427993', 'tblTempUsageDetail_20' ) end [2025-02-08 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:50:22] Production.INFO: ==2092== Releasing lock... [2025-02-08 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:51:05 [end_date_ymd] => 2025-02-08 06:51:05 [RateCDR] => 1 ) [2025-02-08 06:51: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` >= '2025-02-08 03:51:05' and `end` < '2025-02-08 06:51: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 ,'') [2025-02-08 06:51:18] Production.INFO: count ==129 [2025-02-08 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:51:05 - End Time 2025-02-08 06:51:05 [2025-02-08 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427998', 'tblTempUsageDetail_20' ) start [2025-02-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14427998', 'tblTempUsageDetail_20' ) end [2025-02-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427998', 'tblTempVendorCDR_20' ) start [2025-02-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14427998', 'tblTempVendorCDR_20' ) end [2025-02-08 06:51:18] Production.INFO: ProcessCDR(1,14427998,1,1,2) [2025-02-08 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14427998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14427998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14427998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14427998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427998', 'tblTempUsageDetail_20' ) start [2025-02-08 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14427998', 'tblTempUsageDetail_20' ) end [2025-02-08 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:51:21] Production.INFO: ==2209== Releasing lock... [2025-02-08 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:52:05 [end_date_ymd] => 2025-02-08 06:52:05 [RateCDR] => 1 ) [2025-02-08 06:52: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` >= '2025-02-08 03:52:05' and `end` < '2025-02-08 06:52: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 ,'') [2025-02-08 06:52:18] Production.INFO: count ==129 [2025-02-08 06:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:52:05 - End Time 2025-02-08 06:52:05 [2025-02-08 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428003', 'tblTempUsageDetail_20' ) start [2025-02-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428003', 'tblTempUsageDetail_20' ) end [2025-02-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428003', 'tblTempVendorCDR_20' ) start [2025-02-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428003', 'tblTempVendorCDR_20' ) end [2025-02-08 06:52:19] Production.INFO: ProcessCDR(1,14428003,1,1,2) [2025-02-08 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428003', 'tblTempUsageDetail_20' ) start [2025-02-08 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428003', 'tblTempUsageDetail_20' ) end [2025-02-08 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:52:22] Production.INFO: ==2279== Releasing lock... [2025-02-08 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:53:05 [end_date_ymd] => 2025-02-08 06:53:05 [RateCDR] => 1 ) [2025-02-08 06:53: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` >= '2025-02-08 03:53:05' and `end` < '2025-02-08 06:53: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 ,'') [2025-02-08 06:53:18] Production.INFO: count ==129 [2025-02-08 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:53:05 - End Time 2025-02-08 06:53:05 [2025-02-08 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428008', 'tblTempUsageDetail_20' ) start [2025-02-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428008', 'tblTempUsageDetail_20' ) end [2025-02-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428008', 'tblTempVendorCDR_20' ) start [2025-02-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428008', 'tblTempVendorCDR_20' ) end [2025-02-08 06:53:18] Production.INFO: ProcessCDR(1,14428008,1,1,2) [2025-02-08 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428008', 'tblTempUsageDetail_20' ) start [2025-02-08 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428008', 'tblTempUsageDetail_20' ) end [2025-02-08 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:53:21] Production.INFO: ==2351== Releasing lock... [2025-02-08 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:54:05 [end_date_ymd] => 2025-02-08 06:54:05 [RateCDR] => 1 ) [2025-02-08 06:54: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` >= '2025-02-08 03:54:05' and `end` < '2025-02-08 06:54: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 ,'') [2025-02-08 06:54:18] Production.INFO: count ==126 [2025-02-08 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:54:05 - End Time 2025-02-08 06:54:05 [2025-02-08 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428013', 'tblTempUsageDetail_20' ) start [2025-02-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428013', 'tblTempUsageDetail_20' ) end [2025-02-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428013', 'tblTempVendorCDR_20' ) start [2025-02-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428013', 'tblTempVendorCDR_20' ) end [2025-02-08 06:54:18] Production.INFO: ProcessCDR(1,14428013,1,1,2) [2025-02-08 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428013', 'tblTempUsageDetail_20' ) start [2025-02-08 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428013', 'tblTempUsageDetail_20' ) end [2025-02-08 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:54:21] Production.INFO: ==2453== Releasing lock... [2025-02-08 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:55:06 [end_date_ymd] => 2025-02-08 06:55:06 [RateCDR] => 1 ) [2025-02-08 06:55: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-02-08 03:55:06' and `end` < '2025-02-08 06:55: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-02-08 06:55:19] Production.INFO: count ==126 [2025-02-08 06:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:55:06 - End Time 2025-02-08 06:55:06 [2025-02-08 06:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428018', 'tblTempUsageDetail_20' ) start [2025-02-08 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428018', 'tblTempUsageDetail_20' ) end [2025-02-08 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428018', 'tblTempVendorCDR_20' ) start [2025-02-08 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428018', 'tblTempVendorCDR_20' ) end [2025-02-08 06:55:19] Production.INFO: ProcessCDR(1,14428018,1,1,2) [2025-02-08 06:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428018', 'tblTempUsageDetail_20' ) start [2025-02-08 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428018', 'tblTempUsageDetail_20' ) end [2025-02-08 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:55:22] Production.INFO: ==2534== Releasing lock... [2025-02-08 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:56:05 [end_date_ymd] => 2025-02-08 06:56:05 [RateCDR] => 1 ) [2025-02-08 06:56: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` >= '2025-02-08 03:56:05' and `end` < '2025-02-08 06:56: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 ,'') [2025-02-08 06:56:19] Production.INFO: count ==126 [2025-02-08 06:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 03:56:05 - End Time 2025-02-08 06:56:05 [2025-02-08 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428023', 'tblTempUsageDetail_20' ) start [2025-02-08 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428023', 'tblTempUsageDetail_20' ) end [2025-02-08 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428023', 'tblTempVendorCDR_20' ) start [2025-02-08 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428023', 'tblTempVendorCDR_20' ) end [2025-02-08 06:56:19] Production.INFO: ProcessCDR(1,14428023,1,1,2) [2025-02-08 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428023', 'tblTempUsageDetail_20' ) start [2025-02-08 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428023', 'tblTempUsageDetail_20' ) end [2025-02-08 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:56:22] Production.INFO: ==2610== Releasing lock... [2025-02-08 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:57:05 [end_date_ymd] => 2025-02-08 06:57:05 [RateCDR] => 1 ) [2025-02-08 06:57: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` >= '2025-02-08 03:57:05' and `end` < '2025-02-08 06:57: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 ,'') [2025-02-08 06:57:18] Production.INFO: count ==126 [2025-02-08 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:57:05 - End Time 2025-02-08 06:57:05 [2025-02-08 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428028', 'tblTempUsageDetail_20' ) start [2025-02-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428028', 'tblTempUsageDetail_20' ) end [2025-02-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428028', 'tblTempVendorCDR_20' ) start [2025-02-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428028', 'tblTempVendorCDR_20' ) end [2025-02-08 06:57:18] Production.INFO: ProcessCDR(1,14428028,1,1,2) [2025-02-08 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428028', 'tblTempUsageDetail_20' ) start [2025-02-08 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428028', 'tblTempUsageDetail_20' ) end [2025-02-08 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:57:21] Production.INFO: ==2690== Releasing lock... [2025-02-08 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:58:05 [end_date_ymd] => 2025-02-08 06:58:05 [RateCDR] => 1 ) [2025-02-08 06:58: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` >= '2025-02-08 03:58:05' and `end` < '2025-02-08 06:58: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 ,'') [2025-02-08 06:58:17] Production.INFO: count ==126 [2025-02-08 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-08 03:58:05 - End Time 2025-02-08 06:58:05 [2025-02-08 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428033', 'tblTempUsageDetail_20' ) start [2025-02-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428033', 'tblTempUsageDetail_20' ) end [2025-02-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428033', 'tblTempVendorCDR_20' ) start [2025-02-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428033', 'tblTempVendorCDR_20' ) end [2025-02-08 06:58:17] Production.INFO: ProcessCDR(1,14428033,1,1,2) [2025-02-08 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428033', 'tblTempUsageDetail_20' ) start [2025-02-08 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428033', 'tblTempUsageDetail_20' ) end [2025-02-08 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:58:20] Production.INFO: ==2763== Releasing lock... [2025-02-08 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 03:59:05 [end_date_ymd] => 2025-02-08 06:59:05 [RateCDR] => 1 ) [2025-02-08 06:59: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` >= '2025-02-08 03:59:05' and `end` < '2025-02-08 06:59: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 ,'') [2025-02-08 06:59:18] Production.INFO: count ==126 [2025-02-08 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 03:59:05 - End Time 2025-02-08 06:59:05 [2025-02-08 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428038', 'tblTempUsageDetail_20' ) start [2025-02-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428038', 'tblTempUsageDetail_20' ) end [2025-02-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428038', 'tblTempVendorCDR_20' ) start [2025-02-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428038', 'tblTempVendorCDR_20' ) end [2025-02-08 06:59:18] Production.INFO: ProcessCDR(1,14428038,1,1,2) [2025-02-08 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428038', 'tblTempUsageDetail_20' ) start [2025-02-08 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428038', 'tblTempUsageDetail_20' ) end [2025-02-08 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 06:59:21] Production.INFO: ==2840== Releasing lock... [2025-02-08 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:00:06 [end_date_ymd] => 2025-02-08 07:00:06 [RateCDR] => 1 ) [2025-02-08 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 04:00:06' and `end` < '2025-02-08 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 07:00:19] Production.INFO: count ==124 [2025-02-08 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:00:06 - End Time 2025-02-08 07:00:06 [2025-02-08 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428044', 'tblTempUsageDetail_20' ) start [2025-02-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428044', 'tblTempUsageDetail_20' ) end [2025-02-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428044', 'tblTempVendorCDR_20' ) start [2025-02-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428044', 'tblTempVendorCDR_20' ) end [2025-02-08 07:00:19] Production.INFO: ProcessCDR(1,14428044,1,1,2) [2025-02-08 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428044', 'tblTempUsageDetail_20' ) start [2025-02-08 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428044', 'tblTempUsageDetail_20' ) end [2025-02-08 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:00:22] Production.INFO: ==2919== Releasing lock... [2025-02-08 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:01:05 [end_date_ymd] => 2025-02-08 07:01:05 [RateCDR] => 1 ) [2025-02-08 07: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` >= '2025-02-08 04:01:05' and `end` < '2025-02-08 07: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 ,'') [2025-02-08 07:01:29] Production.INFO: count ==124 [2025-02-08 07:01:29] Production.ERROR: pbx CDR StartTime 2025-02-08 04:01:05 - End Time 2025-02-08 07:01:05 [2025-02-08 07:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428049', 'tblTempUsageDetail_20' ) start [2025-02-08 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428049', 'tblTempUsageDetail_20' ) end [2025-02-08 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428049', 'tblTempVendorCDR_20' ) start [2025-02-08 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428049', 'tblTempVendorCDR_20' ) end [2025-02-08 07:01:29] Production.INFO: ProcessCDR(1,14428049,1,1,2) [2025-02-08 07:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428049', 'tblTempUsageDetail_20' ) start [2025-02-08 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428049', 'tblTempUsageDetail_20' ) end [2025-02-08 07:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:01:32] Production.INFO: ==3089== Releasing lock... [2025-02-08 07:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:01:32] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:02:06 [end_date_ymd] => 2025-02-08 07:02:06 [RateCDR] => 1 ) [2025-02-08 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 04:02:06' and `end` < '2025-02-08 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 07:02:20] Production.INFO: count ==124 [2025-02-08 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:02:06 - End Time 2025-02-08 07:02:06 [2025-02-08 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428054', 'tblTempUsageDetail_20' ) start [2025-02-08 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428054', 'tblTempUsageDetail_20' ) end [2025-02-08 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428054', 'tblTempVendorCDR_20' ) start [2025-02-08 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428054', 'tblTempVendorCDR_20' ) end [2025-02-08 07:02:20] Production.INFO: ProcessCDR(1,14428054,1,1,2) [2025-02-08 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428054', 'tblTempUsageDetail_20' ) start [2025-02-08 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428054', 'tblTempUsageDetail_20' ) end [2025-02-08 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:02:23] Production.INFO: ==3169== Releasing lock... [2025-02-08 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:03:05 [end_date_ymd] => 2025-02-08 07:03:05 [RateCDR] => 1 ) [2025-02-08 07:03: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` >= '2025-02-08 04:03:05' and `end` < '2025-02-08 07:03: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 ,'') [2025-02-08 07:03:20] Production.INFO: count ==124 [2025-02-08 07:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:03:05 - End Time 2025-02-08 07:03:05 [2025-02-08 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428059', 'tblTempUsageDetail_20' ) start [2025-02-08 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428059', 'tblTempUsageDetail_20' ) end [2025-02-08 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428059', 'tblTempVendorCDR_20' ) start [2025-02-08 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428059', 'tblTempVendorCDR_20' ) end [2025-02-08 07:03:20] Production.INFO: ProcessCDR(1,14428059,1,1,2) [2025-02-08 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428059', 'tblTempUsageDetail_20' ) start [2025-02-08 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428059', 'tblTempUsageDetail_20' ) end [2025-02-08 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:03:23] Production.INFO: ==3244== Releasing lock... [2025-02-08 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:04:06 [end_date_ymd] => 2025-02-08 07:04:06 [RateCDR] => 1 ) [2025-02-08 07:04: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-02-08 04:04:06' and `end` < '2025-02-08 07:04: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-02-08 07:04:20] Production.INFO: count ==124 [2025-02-08 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:04:06 - End Time 2025-02-08 07:04:06 [2025-02-08 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428064', 'tblTempUsageDetail_20' ) start [2025-02-08 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428064', 'tblTempUsageDetail_20' ) end [2025-02-08 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428064', 'tblTempVendorCDR_20' ) start [2025-02-08 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428064', 'tblTempVendorCDR_20' ) end [2025-02-08 07:04:20] Production.INFO: ProcessCDR(1,14428064,1,1,2) [2025-02-08 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428064', 'tblTempUsageDetail_20' ) start [2025-02-08 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428064', 'tblTempUsageDetail_20' ) end [2025-02-08 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:04:23] Production.INFO: ==3327== Releasing lock... [2025-02-08 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:04:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:05:05 [end_date_ymd] => 2025-02-08 07:05:05 [RateCDR] => 1 ) [2025-02-08 07:05: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` >= '2025-02-08 04:05:05' and `end` < '2025-02-08 07:05: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 ,'') [2025-02-08 07:05:19] Production.INFO: count ==124 [2025-02-08 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:05:05 - End Time 2025-02-08 07:05:05 [2025-02-08 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428069', 'tblTempUsageDetail_20' ) start [2025-02-08 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428069', 'tblTempUsageDetail_20' ) end [2025-02-08 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428069', 'tblTempVendorCDR_20' ) start [2025-02-08 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428069', 'tblTempVendorCDR_20' ) end [2025-02-08 07:05:19] Production.INFO: ProcessCDR(1,14428069,1,1,2) [2025-02-08 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428069', 'tblTempUsageDetail_20' ) start [2025-02-08 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428069', 'tblTempUsageDetail_20' ) end [2025-02-08 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:05:22] Production.INFO: ==3478== Releasing lock... [2025-02-08 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:06:05 [end_date_ymd] => 2025-02-08 07:06:05 [RateCDR] => 1 ) [2025-02-08 07:06: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` >= '2025-02-08 04:06:05' and `end` < '2025-02-08 07:06: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 ,'') [2025-02-08 07:06:19] Production.INFO: count ==124 [2025-02-08 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:06:05 - End Time 2025-02-08 07:06:05 [2025-02-08 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428074', 'tblTempUsageDetail_20' ) start [2025-02-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428074', 'tblTempUsageDetail_20' ) end [2025-02-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428074', 'tblTempVendorCDR_20' ) start [2025-02-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428074', 'tblTempVendorCDR_20' ) end [2025-02-08 07:06:19] Production.INFO: ProcessCDR(1,14428074,1,1,2) [2025-02-08 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428074', 'tblTempUsageDetail_20' ) start [2025-02-08 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428074', 'tblTempUsageDetail_20' ) end [2025-02-08 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:06:22] Production.INFO: ==3591== Releasing lock... [2025-02-08 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:07:05 [end_date_ymd] => 2025-02-08 07:07:05 [RateCDR] => 1 ) [2025-02-08 07:07: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` >= '2025-02-08 04:07:05' and `end` < '2025-02-08 07:07: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 ,'') [2025-02-08 07:07:19] Production.INFO: count ==124 [2025-02-08 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:07:05 - End Time 2025-02-08 07:07:05 [2025-02-08 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428079', 'tblTempUsageDetail_20' ) start [2025-02-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428079', 'tblTempUsageDetail_20' ) end [2025-02-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428079', 'tblTempVendorCDR_20' ) start [2025-02-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428079', 'tblTempVendorCDR_20' ) end [2025-02-08 07:07:19] Production.INFO: ProcessCDR(1,14428079,1,1,2) [2025-02-08 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428079', 'tblTempUsageDetail_20' ) start [2025-02-08 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428079', 'tblTempUsageDetail_20' ) end [2025-02-08 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:07:22] Production.INFO: ==3668== Releasing lock... [2025-02-08 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:08:05 [end_date_ymd] => 2025-02-08 07:08:05 [RateCDR] => 1 ) [2025-02-08 07:08: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` >= '2025-02-08 04:08:05' and `end` < '2025-02-08 07:08: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 ,'') [2025-02-08 07:08:19] Production.INFO: count ==124 [2025-02-08 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:08:05 - End Time 2025-02-08 07:08:05 [2025-02-08 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428084', 'tblTempUsageDetail_20' ) start [2025-02-08 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428084', 'tblTempUsageDetail_20' ) end [2025-02-08 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428084', 'tblTempVendorCDR_20' ) start [2025-02-08 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428084', 'tblTempVendorCDR_20' ) end [2025-02-08 07:08:19] Production.INFO: ProcessCDR(1,14428084,1,1,2) [2025-02-08 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428084', 'tblTempUsageDetail_20' ) start [2025-02-08 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428084', 'tblTempUsageDetail_20' ) end [2025-02-08 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:08:22] Production.INFO: ==3828== Releasing lock... [2025-02-08 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:09:05 [end_date_ymd] => 2025-02-08 07:09:05 [RateCDR] => 1 ) [2025-02-08 07:09: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` >= '2025-02-08 04:09:05' and `end` < '2025-02-08 07:09: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 ,'') [2025-02-08 07:09:19] Production.INFO: count ==124 [2025-02-08 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:09:05 - End Time 2025-02-08 07:09:05 [2025-02-08 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428089', 'tblTempUsageDetail_20' ) start [2025-02-08 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428089', 'tblTempUsageDetail_20' ) end [2025-02-08 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428089', 'tblTempVendorCDR_20' ) start [2025-02-08 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428089', 'tblTempVendorCDR_20' ) end [2025-02-08 07:09:19] Production.INFO: ProcessCDR(1,14428089,1,1,2) [2025-02-08 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428089', 'tblTempUsageDetail_20' ) start [2025-02-08 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428089', 'tblTempUsageDetail_20' ) end [2025-02-08 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:09:23] Production.INFO: ==3911== Releasing lock... [2025-02-08 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:09:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:10:06 [end_date_ymd] => 2025-02-08 07:10:06 [RateCDR] => 1 ) [2025-02-08 07:10: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-02-08 04:10:06' and `end` < '2025-02-08 07:10: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-02-08 07:10:20] Production.INFO: count ==124 [2025-02-08 07:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:10:06 - End Time 2025-02-08 07:10:06 [2025-02-08 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428095', 'tblTempUsageDetail_20' ) start [2025-02-08 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428095', 'tblTempUsageDetail_20' ) end [2025-02-08 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428095', 'tblTempVendorCDR_20' ) start [2025-02-08 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428095', 'tblTempVendorCDR_20' ) end [2025-02-08 07:10:20] Production.INFO: ProcessCDR(1,14428095,1,1,2) [2025-02-08 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428095', 'tblTempUsageDetail_20' ) start [2025-02-08 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428095', 'tblTempUsageDetail_20' ) end [2025-02-08 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:10:23] Production.INFO: ==3985== Releasing lock... [2025-02-08 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:11:04 [end_date_ymd] => 2025-02-08 07:11:04 [RateCDR] => 1 ) [2025-02-08 07:11:04] 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-02-08 04:11:04' and `end` < '2025-02-08 07:11:04' 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-02-08 07:11:18] Production.INFO: count ==124 [2025-02-08 07:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:11:04 - End Time 2025-02-08 07:11:04 [2025-02-08 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428100', 'tblTempUsageDetail_20' ) start [2025-02-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428100', 'tblTempUsageDetail_20' ) end [2025-02-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428100', 'tblTempVendorCDR_20' ) start [2025-02-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428100', 'tblTempVendorCDR_20' ) end [2025-02-08 07:11:18] Production.INFO: ProcessCDR(1,14428100,1,1,2) [2025-02-08 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428100', 'tblTempUsageDetail_20' ) start [2025-02-08 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428100', 'tblTempUsageDetail_20' ) end [2025-02-08 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:11:21] Production.INFO: ==4068== Releasing lock... [2025-02-08 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:12:05 [end_date_ymd] => 2025-02-08 07:12:05 [RateCDR] => 1 ) [2025-02-08 07:12: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` >= '2025-02-08 04:12:05' and `end` < '2025-02-08 07:12: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 ,'') [2025-02-08 07:12:19] Production.INFO: count ==124 [2025-02-08 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:12:05 - End Time 2025-02-08 07:12:05 [2025-02-08 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428105', 'tblTempUsageDetail_20' ) start [2025-02-08 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428105', 'tblTempUsageDetail_20' ) end [2025-02-08 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428105', 'tblTempVendorCDR_20' ) start [2025-02-08 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428105', 'tblTempVendorCDR_20' ) end [2025-02-08 07:12:19] Production.INFO: ProcessCDR(1,14428105,1,1,2) [2025-02-08 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428105', 'tblTempUsageDetail_20' ) start [2025-02-08 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428105', 'tblTempUsageDetail_20' ) end [2025-02-08 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:12:22] Production.INFO: ==4227== Releasing lock... [2025-02-08 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:13:04 [end_date_ymd] => 2025-02-08 07:13:04 [RateCDR] => 1 ) [2025-02-08 07:13:04] 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-02-08 04:13:04' and `end` < '2025-02-08 07:13:04' 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-02-08 07:13:20] Production.INFO: count ==124 [2025-02-08 07:13:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:13:04 - End Time 2025-02-08 07:13:04 [2025-02-08 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428110', 'tblTempUsageDetail_20' ) start [2025-02-08 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428110', 'tblTempUsageDetail_20' ) end [2025-02-08 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428110', 'tblTempVendorCDR_20' ) start [2025-02-08 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428110', 'tblTempVendorCDR_20' ) end [2025-02-08 07:13:20] Production.INFO: ProcessCDR(1,14428110,1,1,2) [2025-02-08 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428110', 'tblTempUsageDetail_20' ) start [2025-02-08 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428110', 'tblTempUsageDetail_20' ) end [2025-02-08 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:13:23] Production.INFO: ==4304== Releasing lock... [2025-02-08 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:14:05 [end_date_ymd] => 2025-02-08 07:14:05 [RateCDR] => 1 ) [2025-02-08 07:14: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` >= '2025-02-08 04:14:05' and `end` < '2025-02-08 07:14: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 ,'') [2025-02-08 07:14:20] Production.INFO: count ==125 [2025-02-08 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:14:05 - End Time 2025-02-08 07:14:05 [2025-02-08 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428115', 'tblTempUsageDetail_20' ) start [2025-02-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428115', 'tblTempUsageDetail_20' ) end [2025-02-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428115', 'tblTempVendorCDR_20' ) start [2025-02-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428115', 'tblTempVendorCDR_20' ) end [2025-02-08 07:14:20] Production.INFO: ProcessCDR(1,14428115,1,1,2) [2025-02-08 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428115', 'tblTempUsageDetail_20' ) start [2025-02-08 07:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428115', 'tblTempUsageDetail_20' ) end [2025-02-08 07:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:14:25] Production.INFO: ==4387== Releasing lock... [2025-02-08 07:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:14:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:15:06 [end_date_ymd] => 2025-02-08 07:15:06 [RateCDR] => 1 ) [2025-02-08 07:15: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-02-08 04:15:06' and `end` < '2025-02-08 07:15: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-02-08 07:15:19] Production.INFO: count ==125 [2025-02-08 07:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:15:06 - End Time 2025-02-08 07:15:06 [2025-02-08 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428120', 'tblTempUsageDetail_20' ) start [2025-02-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428120', 'tblTempUsageDetail_20' ) end [2025-02-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428120', 'tblTempVendorCDR_20' ) start [2025-02-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428120', 'tblTempVendorCDR_20' ) end [2025-02-08 07:15:19] Production.INFO: ProcessCDR(1,14428120,1,1,2) [2025-02-08 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428120', 'tblTempUsageDetail_20' ) start [2025-02-08 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428120', 'tblTempUsageDetail_20' ) end [2025-02-08 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:15:23] Production.INFO: ==4541== Releasing lock... [2025-02-08 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:15:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:16:05 [end_date_ymd] => 2025-02-08 07:16:05 [RateCDR] => 1 ) [2025-02-08 07:16: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` >= '2025-02-08 04:16:05' and `end` < '2025-02-08 07:16: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 ,'') [2025-02-08 07:16:19] Production.INFO: count ==125 [2025-02-08 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:16:05 - End Time 2025-02-08 07:16:05 [2025-02-08 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428125', 'tblTempUsageDetail_20' ) start [2025-02-08 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428125', 'tblTempUsageDetail_20' ) end [2025-02-08 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428125', 'tblTempVendorCDR_20' ) start [2025-02-08 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428125', 'tblTempVendorCDR_20' ) end [2025-02-08 07:16:19] Production.INFO: ProcessCDR(1,14428125,1,1,2) [2025-02-08 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428125', 'tblTempUsageDetail_20' ) start [2025-02-08 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428125', 'tblTempUsageDetail_20' ) end [2025-02-08 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:16:22] Production.INFO: ==4625== Releasing lock... [2025-02-08 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:17:06 [end_date_ymd] => 2025-02-08 07:17:06 [RateCDR] => 1 ) [2025-02-08 07:17: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-02-08 04:17:06' and `end` < '2025-02-08 07:17: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-02-08 07:17:20] Production.INFO: count ==128 [2025-02-08 07:17:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:17:06 - End Time 2025-02-08 07:17:06 [2025-02-08 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428130', 'tblTempUsageDetail_20' ) start [2025-02-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428130', 'tblTempUsageDetail_20' ) end [2025-02-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428130', 'tblTempVendorCDR_20' ) start [2025-02-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428130', 'tblTempVendorCDR_20' ) end [2025-02-08 07:17:20] Production.INFO: ProcessCDR(1,14428130,1,1,2) [2025-02-08 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428130', 'tblTempUsageDetail_20' ) start [2025-02-08 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428130', 'tblTempUsageDetail_20' ) end [2025-02-08 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:17:24] Production.INFO: ==4714== Releasing lock... [2025-02-08 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:17:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-08 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:18:05 [end_date_ymd] => 2025-02-08 07:18:05 [RateCDR] => 1 ) [2025-02-08 07:18: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` >= '2025-02-08 04:18:05' and `end` < '2025-02-08 07:18: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 ,'') [2025-02-08 07:18:20] Production.INFO: count ==132 [2025-02-08 07:18:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:18:05 - End Time 2025-02-08 07:18:05 [2025-02-08 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428135', 'tblTempUsageDetail_20' ) start [2025-02-08 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428135', 'tblTempUsageDetail_20' ) end [2025-02-08 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428135', 'tblTempVendorCDR_20' ) start [2025-02-08 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428135', 'tblTempVendorCDR_20' ) end [2025-02-08 07:18:20] Production.INFO: ProcessCDR(1,14428135,1,1,2) [2025-02-08 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428135', 'tblTempUsageDetail_20' ) start [2025-02-08 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428135', 'tblTempUsageDetail_20' ) end [2025-02-08 07:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:18:24] Production.INFO: ==4804== Releasing lock... [2025-02-08 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:18:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:19:05 [end_date_ymd] => 2025-02-08 07:19:05 [RateCDR] => 1 ) [2025-02-08 07:19: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` >= '2025-02-08 04:19:05' and `end` < '2025-02-08 07:19: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 ,'') [2025-02-08 07:19:19] Production.INFO: count ==140 [2025-02-08 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:19:05 - End Time 2025-02-08 07:19:05 [2025-02-08 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428140', 'tblTempUsageDetail_20' ) start [2025-02-08 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428140', 'tblTempUsageDetail_20' ) end [2025-02-08 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428140', 'tblTempVendorCDR_20' ) start [2025-02-08 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428140', 'tblTempVendorCDR_20' ) end [2025-02-08 07:19:19] Production.INFO: ProcessCDR(1,14428140,1,1,2) [2025-02-08 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428140', 'tblTempUsageDetail_20' ) start [2025-02-08 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428140', 'tblTempUsageDetail_20' ) end [2025-02-08 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:19:23] Production.INFO: ==4892== Releasing lock... [2025-02-08 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:19:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:20:06 [end_date_ymd] => 2025-02-08 07:20:06 [RateCDR] => 1 ) [2025-02-08 07:20: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-02-08 04:20:06' and `end` < '2025-02-08 07:20: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-02-08 07:20:19] Production.INFO: count ==145 [2025-02-08 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:20:06 - End Time 2025-02-08 07:20:06 [2025-02-08 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428145', 'tblTempUsageDetail_20' ) start [2025-02-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428145', 'tblTempUsageDetail_20' ) end [2025-02-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428145', 'tblTempVendorCDR_20' ) start [2025-02-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428145', 'tblTempVendorCDR_20' ) end [2025-02-08 07:20:19] Production.INFO: ProcessCDR(1,14428145,1,1,2) [2025-02-08 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428145', 'tblTempUsageDetail_20' ) start [2025-02-08 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428145', 'tblTempUsageDetail_20' ) end [2025-02-08 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:20:22] Production.INFO: ==4974== Releasing lock... [2025-02-08 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:21:06 [end_date_ymd] => 2025-02-08 07:21:06 [RateCDR] => 1 ) [2025-02-08 07:21: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-02-08 04:21:06' and `end` < '2025-02-08 07:21: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-02-08 07:21:19] Production.INFO: count ==156 [2025-02-08 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:21:06 - End Time 2025-02-08 07:21:06 [2025-02-08 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428151', 'tblTempUsageDetail_20' ) start [2025-02-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428151', 'tblTempUsageDetail_20' ) end [2025-02-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428151', 'tblTempVendorCDR_20' ) start [2025-02-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428151', 'tblTempVendorCDR_20' ) end [2025-02-08 07:21:19] Production.INFO: ProcessCDR(1,14428151,1,1,2) [2025-02-08 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428151', 'tblTempUsageDetail_20' ) start [2025-02-08 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428151', 'tblTempUsageDetail_20' ) end [2025-02-08 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:21:24] Production.INFO: ==5061== Releasing lock... [2025-02-08 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:21:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:22:05 [end_date_ymd] => 2025-02-08 07:22:05 [RateCDR] => 1 ) [2025-02-08 07:22: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` >= '2025-02-08 04:22:05' and `end` < '2025-02-08 07:22: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 ,'') [2025-02-08 07:22:19] Production.INFO: count ==156 [2025-02-08 07:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:22:05 - End Time 2025-02-08 07:22:05 [2025-02-08 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428156', 'tblTempUsageDetail_20' ) start [2025-02-08 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428156', 'tblTempUsageDetail_20' ) end [2025-02-08 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428156', 'tblTempVendorCDR_20' ) start [2025-02-08 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428156', 'tblTempVendorCDR_20' ) end [2025-02-08 07:22:19] Production.INFO: ProcessCDR(1,14428156,1,1,2) [2025-02-08 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428156', 'tblTempUsageDetail_20' ) start [2025-02-08 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428156', 'tblTempUsageDetail_20' ) end [2025-02-08 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:22:23] Production.INFO: ==5183== Releasing lock... [2025-02-08 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:22:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:23:06 [end_date_ymd] => 2025-02-08 07:23:06 [RateCDR] => 1 ) [2025-02-08 07:23: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-02-08 04:23:06' and `end` < '2025-02-08 07:23: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-02-08 07:23:18] Production.INFO: count ==156 [2025-02-08 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:23:06 - End Time 2025-02-08 07:23:06 [2025-02-08 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428161', 'tblTempUsageDetail_20' ) start [2025-02-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428161', 'tblTempUsageDetail_20' ) end [2025-02-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428161', 'tblTempVendorCDR_20' ) start [2025-02-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428161', 'tblTempVendorCDR_20' ) end [2025-02-08 07:23:18] Production.INFO: ProcessCDR(1,14428161,1,1,2) [2025-02-08 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428161', 'tblTempUsageDetail_20' ) start [2025-02-08 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428161', 'tblTempUsageDetail_20' ) end [2025-02-08 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:23:22] Production.INFO: ==5269== Releasing lock... [2025-02-08 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:24:05 [end_date_ymd] => 2025-02-08 07:24:05 [RateCDR] => 1 ) [2025-02-08 07:24: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` >= '2025-02-08 04:24:05' and `end` < '2025-02-08 07:24: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 ,'') [2025-02-08 07:24:19] Production.INFO: count ==156 [2025-02-08 07:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:24:05 - End Time 2025-02-08 07:24:05 [2025-02-08 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428166', 'tblTempUsageDetail_20' ) start [2025-02-08 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428166', 'tblTempUsageDetail_20' ) end [2025-02-08 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428166', 'tblTempVendorCDR_20' ) start [2025-02-08 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428166', 'tblTempVendorCDR_20' ) end [2025-02-08 07:24:19] Production.INFO: ProcessCDR(1,14428166,1,1,2) [2025-02-08 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428166', 'tblTempUsageDetail_20' ) start [2025-02-08 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428166', 'tblTempUsageDetail_20' ) end [2025-02-08 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:24:22] Production.INFO: ==5347== Releasing lock... [2025-02-08 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:25:05 [end_date_ymd] => 2025-02-08 07:25:05 [RateCDR] => 1 ) [2025-02-08 07:25: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` >= '2025-02-08 04:25:05' and `end` < '2025-02-08 07:25: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 ,'') [2025-02-08 07:25:19] Production.INFO: count ==156 [2025-02-08 07:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:25:05 - End Time 2025-02-08 07:25:05 [2025-02-08 07:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428171', 'tblTempUsageDetail_20' ) start [2025-02-08 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428171', 'tblTempUsageDetail_20' ) end [2025-02-08 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428171', 'tblTempVendorCDR_20' ) start [2025-02-08 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428171', 'tblTempVendorCDR_20' ) end [2025-02-08 07:25:19] Production.INFO: ProcessCDR(1,14428171,1,1,2) [2025-02-08 07:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428171', 'tblTempUsageDetail_20' ) start [2025-02-08 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428171', 'tblTempUsageDetail_20' ) end [2025-02-08 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:25:22] Production.INFO: ==5430== Releasing lock... [2025-02-08 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:25:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:26:06 [end_date_ymd] => 2025-02-08 07:26:06 [RateCDR] => 1 ) [2025-02-08 07:26: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-02-08 04:26:06' and `end` < '2025-02-08 07:26: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-02-08 07:26:18] Production.INFO: count ==156 [2025-02-08 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:26:06 - End Time 2025-02-08 07:26:06 [2025-02-08 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428176', 'tblTempUsageDetail_20' ) start [2025-02-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428176', 'tblTempUsageDetail_20' ) end [2025-02-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428176', 'tblTempVendorCDR_20' ) start [2025-02-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428176', 'tblTempVendorCDR_20' ) end [2025-02-08 07:26:18] Production.INFO: ProcessCDR(1,14428176,1,1,2) [2025-02-08 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428176', 'tblTempUsageDetail_20' ) start [2025-02-08 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428176', 'tblTempUsageDetail_20' ) end [2025-02-08 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:26:22] Production.INFO: ==5511== Releasing lock... [2025-02-08 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:27:05 [end_date_ymd] => 2025-02-08 07:27:05 [RateCDR] => 1 ) [2025-02-08 07:27: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` >= '2025-02-08 04:27:05' and `end` < '2025-02-08 07:27: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 ,'') [2025-02-08 07:27:18] Production.INFO: count ==156 [2025-02-08 07:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:27:05 - End Time 2025-02-08 07:27:05 [2025-02-08 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428181', 'tblTempUsageDetail_20' ) start [2025-02-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428181', 'tblTempUsageDetail_20' ) end [2025-02-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428181', 'tblTempVendorCDR_20' ) start [2025-02-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428181', 'tblTempVendorCDR_20' ) end [2025-02-08 07:27:19] Production.INFO: ProcessCDR(1,14428181,1,1,2) [2025-02-08 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428181', 'tblTempUsageDetail_20' ) start [2025-02-08 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428181', 'tblTempUsageDetail_20' ) end [2025-02-08 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:27:22] Production.INFO: ==5589== Releasing lock... [2025-02-08 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:28:05 [end_date_ymd] => 2025-02-08 07:28:05 [RateCDR] => 1 ) [2025-02-08 07:28: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` >= '2025-02-08 04:28:05' and `end` < '2025-02-08 07:28: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 ,'') [2025-02-08 07:28:18] Production.INFO: count ==156 [2025-02-08 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:28:05 - End Time 2025-02-08 07:28:05 [2025-02-08 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428186', 'tblTempUsageDetail_20' ) start [2025-02-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428186', 'tblTempUsageDetail_20' ) end [2025-02-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428186', 'tblTempVendorCDR_20' ) start [2025-02-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428186', 'tblTempVendorCDR_20' ) end [2025-02-08 07:28:18] Production.INFO: ProcessCDR(1,14428186,1,1,2) [2025-02-08 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428186', 'tblTempUsageDetail_20' ) start [2025-02-08 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428186', 'tblTempUsageDetail_20' ) end [2025-02-08 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:28:21] Production.INFO: ==5677== Releasing lock... [2025-02-08 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:29:06 [end_date_ymd] => 2025-02-08 07:29:06 [RateCDR] => 1 ) [2025-02-08 07:29: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-02-08 04:29:06' and `end` < '2025-02-08 07:29: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-02-08 07:29:19] Production.INFO: count ==156 [2025-02-08 07:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:29:06 - End Time 2025-02-08 07:29:06 [2025-02-08 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428191', 'tblTempUsageDetail_20' ) start [2025-02-08 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428191', 'tblTempUsageDetail_20' ) end [2025-02-08 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428191', 'tblTempVendorCDR_20' ) start [2025-02-08 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428191', 'tblTempVendorCDR_20' ) end [2025-02-08 07:29:19] Production.INFO: ProcessCDR(1,14428191,1,1,2) [2025-02-08 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428191', 'tblTempUsageDetail_20' ) start [2025-02-08 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428191', 'tblTempUsageDetail_20' ) end [2025-02-08 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:29:22] Production.INFO: ==5759== Releasing lock... [2025-02-08 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:30:06 [end_date_ymd] => 2025-02-08 07:30:06 [RateCDR] => 1 ) [2025-02-08 07:30: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-02-08 04:30:06' and `end` < '2025-02-08 07:30: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-02-08 07:30:19] Production.INFO: count ==153 [2025-02-08 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:30:06 - End Time 2025-02-08 07:30:06 [2025-02-08 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428196', 'tblTempUsageDetail_20' ) start [2025-02-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428196', 'tblTempUsageDetail_20' ) end [2025-02-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428196', 'tblTempVendorCDR_20' ) start [2025-02-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428196', 'tblTempVendorCDR_20' ) end [2025-02-08 07:30:19] Production.INFO: ProcessCDR(1,14428196,1,1,2) [2025-02-08 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428196', 'tblTempUsageDetail_20' ) start [2025-02-08 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428196', 'tblTempUsageDetail_20' ) end [2025-02-08 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:30:23] Production.INFO: ==5841== Releasing lock... [2025-02-08 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:30:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:31:06 [end_date_ymd] => 2025-02-08 07:31:06 [RateCDR] => 1 ) [2025-02-08 07:31: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-02-08 04:31:06' and `end` < '2025-02-08 07:31: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-02-08 07:31:19] Production.INFO: count ==153 [2025-02-08 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:31:06 - End Time 2025-02-08 07:31:06 [2025-02-08 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428202', 'tblTempUsageDetail_20' ) start [2025-02-08 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428202', 'tblTempUsageDetail_20' ) end [2025-02-08 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428202', 'tblTempVendorCDR_20' ) start [2025-02-08 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428202', 'tblTempVendorCDR_20' ) end [2025-02-08 07:31:19] Production.INFO: ProcessCDR(1,14428202,1,1,2) [2025-02-08 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428202', 'tblTempUsageDetail_20' ) start [2025-02-08 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428202', 'tblTempUsageDetail_20' ) end [2025-02-08 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:31:22] Production.INFO: ==5929== Releasing lock... [2025-02-08 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:32:05 [end_date_ymd] => 2025-02-08 07:32:05 [RateCDR] => 1 ) [2025-02-08 07:32: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` >= '2025-02-08 04:32:05' and `end` < '2025-02-08 07:32: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 ,'') [2025-02-08 07:32:18] Production.INFO: count ==153 [2025-02-08 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:32:05 - End Time 2025-02-08 07:32:05 [2025-02-08 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428207', 'tblTempUsageDetail_20' ) start [2025-02-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428207', 'tblTempUsageDetail_20' ) end [2025-02-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428207', 'tblTempVendorCDR_20' ) start [2025-02-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428207', 'tblTempVendorCDR_20' ) end [2025-02-08 07:32:18] Production.INFO: ProcessCDR(1,14428207,1,1,2) [2025-02-08 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428207', 'tblTempUsageDetail_20' ) start [2025-02-08 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428207', 'tblTempUsageDetail_20' ) end [2025-02-08 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:32:22] Production.INFO: ==6014== Releasing lock... [2025-02-08 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:33:05 [end_date_ymd] => 2025-02-08 07:33:05 [RateCDR] => 1 ) [2025-02-08 07:33: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-02-08 04:33:05' and `end` < '2025-02-08 07:33: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 ,'') [2025-02-08 07:33:18] Production.INFO: count ==153 [2025-02-08 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:33:05 - End Time 2025-02-08 07:33:05 [2025-02-08 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428212', 'tblTempUsageDetail_20' ) start [2025-02-08 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428212', 'tblTempUsageDetail_20' ) end [2025-02-08 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428212', 'tblTempVendorCDR_20' ) start [2025-02-08 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428212', 'tblTempVendorCDR_20' ) end [2025-02-08 07:33:18] Production.INFO: ProcessCDR(1,14428212,1,1,2) [2025-02-08 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428212', 'tblTempUsageDetail_20' ) start [2025-02-08 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428212', 'tblTempUsageDetail_20' ) end [2025-02-08 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:33:21] Production.INFO: ==6093== Releasing lock... [2025-02-08 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:34:05 [end_date_ymd] => 2025-02-08 07:34:05 [RateCDR] => 1 ) [2025-02-08 07:34: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` >= '2025-02-08 04:34:05' and `end` < '2025-02-08 07:34: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 ,'') [2025-02-08 07:34:18] Production.INFO: count ==153 [2025-02-08 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:34:05 - End Time 2025-02-08 07:34:05 [2025-02-08 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428217', 'tblTempUsageDetail_20' ) start [2025-02-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428217', 'tblTempUsageDetail_20' ) end [2025-02-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428217', 'tblTempVendorCDR_20' ) start [2025-02-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428217', 'tblTempVendorCDR_20' ) end [2025-02-08 07:34:18] Production.INFO: ProcessCDR(1,14428217,1,1,2) [2025-02-08 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428217', 'tblTempUsageDetail_20' ) start [2025-02-08 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428217', 'tblTempUsageDetail_20' ) end [2025-02-08 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:34:21] Production.INFO: ==6185== Releasing lock... [2025-02-08 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:35:05 [end_date_ymd] => 2025-02-08 07:35:05 [RateCDR] => 1 ) [2025-02-08 07:35: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` >= '2025-02-08 04:35:05' and `end` < '2025-02-08 07:35: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 ,'') [2025-02-08 07:35:18] Production.INFO: count ==153 [2025-02-08 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:35:05 - End Time 2025-02-08 07:35:05 [2025-02-08 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428222', 'tblTempUsageDetail_20' ) start [2025-02-08 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428222', 'tblTempUsageDetail_20' ) end [2025-02-08 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428222', 'tblTempVendorCDR_20' ) start [2025-02-08 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428222', 'tblTempVendorCDR_20' ) end [2025-02-08 07:35:18] Production.INFO: ProcessCDR(1,14428222,1,1,2) [2025-02-08 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428222', 'tblTempUsageDetail_20' ) start [2025-02-08 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428222', 'tblTempUsageDetail_20' ) end [2025-02-08 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:35:21] Production.INFO: ==6261== Releasing lock... [2025-02-08 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:36:05 [end_date_ymd] => 2025-02-08 07:36:05 [RateCDR] => 1 ) [2025-02-08 07:36: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` >= '2025-02-08 04:36:05' and `end` < '2025-02-08 07:36: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 ,'') [2025-02-08 07:36:18] Production.INFO: count ==151 [2025-02-08 07:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:36:05 - End Time 2025-02-08 07:36:05 [2025-02-08 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428227', 'tblTempUsageDetail_20' ) start [2025-02-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428227', 'tblTempUsageDetail_20' ) end [2025-02-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428227', 'tblTempVendorCDR_20' ) start [2025-02-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428227', 'tblTempVendorCDR_20' ) end [2025-02-08 07:36:18] Production.INFO: ProcessCDR(1,14428227,1,1,2) [2025-02-08 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428227', 'tblTempUsageDetail_20' ) start [2025-02-08 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428227', 'tblTempUsageDetail_20' ) end [2025-02-08 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:36:21] Production.INFO: ==6335== Releasing lock... [2025-02-08 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:37:05 [end_date_ymd] => 2025-02-08 07:37:05 [RateCDR] => 1 ) [2025-02-08 07:37: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` >= '2025-02-08 04:37:05' and `end` < '2025-02-08 07:37: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 ,'') [2025-02-08 07:37:19] Production.INFO: count ==150 [2025-02-08 07:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:37:05 - End Time 2025-02-08 07:37:05 [2025-02-08 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428232', 'tblTempUsageDetail_20' ) start [2025-02-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428232', 'tblTempUsageDetail_20' ) end [2025-02-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428232', 'tblTempVendorCDR_20' ) start [2025-02-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428232', 'tblTempVendorCDR_20' ) end [2025-02-08 07:37:19] Production.INFO: ProcessCDR(1,14428232,1,1,2) [2025-02-08 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428232', 'tblTempUsageDetail_20' ) start [2025-02-08 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428232', 'tblTempUsageDetail_20' ) end [2025-02-08 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:37:22] Production.INFO: ==6449== Releasing lock... [2025-02-08 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:38:05 [end_date_ymd] => 2025-02-08 07:38:05 [RateCDR] => 1 ) [2025-02-08 07:38: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` >= '2025-02-08 04:38:05' and `end` < '2025-02-08 07:38: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 ,'') [2025-02-08 07:38:18] Production.INFO: count ==150 [2025-02-08 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:38:05 - End Time 2025-02-08 07:38:05 [2025-02-08 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428237', 'tblTempUsageDetail_20' ) start [2025-02-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428237', 'tblTempUsageDetail_20' ) end [2025-02-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428237', 'tblTempVendorCDR_20' ) start [2025-02-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428237', 'tblTempVendorCDR_20' ) end [2025-02-08 07:38:18] Production.INFO: ProcessCDR(1,14428237,1,1,2) [2025-02-08 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428237', 'tblTempUsageDetail_20' ) start [2025-02-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428237', 'tblTempUsageDetail_20' ) end [2025-02-08 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:38:21] Production.INFO: ==6528== Releasing lock... [2025-02-08 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:39:06 [end_date_ymd] => 2025-02-08 07:39:06 [RateCDR] => 1 ) [2025-02-08 07:39: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-02-08 04:39:06' and `end` < '2025-02-08 07:39: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-02-08 07:39:19] Production.INFO: count ==151 [2025-02-08 07:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:39:06 - End Time 2025-02-08 07:39:06 [2025-02-08 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428242', 'tblTempUsageDetail_20' ) start [2025-02-08 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428242', 'tblTempUsageDetail_20' ) end [2025-02-08 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428242', 'tblTempVendorCDR_20' ) start [2025-02-08 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428242', 'tblTempVendorCDR_20' ) end [2025-02-08 07:39:19] Production.INFO: ProcessCDR(1,14428242,1,1,2) [2025-02-08 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428242', 'tblTempUsageDetail_20' ) start [2025-02-08 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428242', 'tblTempUsageDetail_20' ) end [2025-02-08 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:39:23] Production.INFO: ==6601== Releasing lock... [2025-02-08 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:39:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:40:05 [end_date_ymd] => 2025-02-08 07:40:05 [RateCDR] => 1 ) [2025-02-08 07:40: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` >= '2025-02-08 04:40:05' and `end` < '2025-02-08 07:40: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 ,'') [2025-02-08 07:40:18] Production.INFO: count ==156 [2025-02-08 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:40:05 - End Time 2025-02-08 07:40:05 [2025-02-08 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428247', 'tblTempUsageDetail_20' ) start [2025-02-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428247', 'tblTempUsageDetail_20' ) end [2025-02-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428247', 'tblTempVendorCDR_20' ) start [2025-02-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428247', 'tblTempVendorCDR_20' ) end [2025-02-08 07:40:18] Production.INFO: ProcessCDR(1,14428247,1,1,2) [2025-02-08 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428247', 'tblTempUsageDetail_20' ) start [2025-02-08 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428247', 'tblTempUsageDetail_20' ) end [2025-02-08 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:40:23] Production.INFO: ==6678== Releasing lock... [2025-02-08 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:41:05 [end_date_ymd] => 2025-02-08 07:41:05 [RateCDR] => 1 ) [2025-02-08 07:41: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` >= '2025-02-08 04:41:05' and `end` < '2025-02-08 07:41: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 ,'') [2025-02-08 07:41:18] Production.INFO: count ==160 [2025-02-08 07:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:41:05 - End Time 2025-02-08 07:41:05 [2025-02-08 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428253', 'tblTempUsageDetail_20' ) start [2025-02-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428253', 'tblTempUsageDetail_20' ) end [2025-02-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428253', 'tblTempVendorCDR_20' ) start [2025-02-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428253', 'tblTempVendorCDR_20' ) end [2025-02-08 07:41:18] Production.INFO: ProcessCDR(1,14428253,1,1,2) [2025-02-08 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428253', 'tblTempUsageDetail_20' ) start [2025-02-08 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428253', 'tblTempUsageDetail_20' ) end [2025-02-08 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:41:22] Production.INFO: ==6754== Releasing lock... [2025-02-08 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:42:05 [end_date_ymd] => 2025-02-08 07:42:05 [RateCDR] => 1 ) [2025-02-08 07:42: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` >= '2025-02-08 04:42:05' and `end` < '2025-02-08 07:42: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 ,'') [2025-02-08 07:42:20] Production.INFO: count ==160 [2025-02-08 07:42:20] Production.ERROR: pbx CDR StartTime 2025-02-08 04:42:05 - End Time 2025-02-08 07:42:05 [2025-02-08 07:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428258', 'tblTempUsageDetail_20' ) start [2025-02-08 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428258', 'tblTempUsageDetail_20' ) end [2025-02-08 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428258', 'tblTempVendorCDR_20' ) start [2025-02-08 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428258', 'tblTempVendorCDR_20' ) end [2025-02-08 07:42:20] Production.INFO: ProcessCDR(1,14428258,1,1,2) [2025-02-08 07:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428258', 'tblTempUsageDetail_20' ) start [2025-02-08 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428258', 'tblTempUsageDetail_20' ) end [2025-02-08 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:42:23] Production.INFO: ==6833== Releasing lock... [2025-02-08 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:42:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-08 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:43:05 [end_date_ymd] => 2025-02-08 07:43:05 [RateCDR] => 1 ) [2025-02-08 07:43: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` >= '2025-02-08 04:43:05' and `end` < '2025-02-08 07:43: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 ,'') [2025-02-08 07:43:18] Production.INFO: count ==162 [2025-02-08 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:43:05 - End Time 2025-02-08 07:43:05 [2025-02-08 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428263', 'tblTempUsageDetail_20' ) start [2025-02-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428263', 'tblTempUsageDetail_20' ) end [2025-02-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428263', 'tblTempVendorCDR_20' ) start [2025-02-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428263', 'tblTempVendorCDR_20' ) end [2025-02-08 07:43:18] Production.INFO: ProcessCDR(1,14428263,1,1,2) [2025-02-08 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428263', 'tblTempUsageDetail_20' ) start [2025-02-08 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428263', 'tblTempUsageDetail_20' ) end [2025-02-08 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:43:21] Production.INFO: ==6911== Releasing lock... [2025-02-08 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:44:04 [end_date_ymd] => 2025-02-08 07:44:04 [RateCDR] => 1 ) [2025-02-08 07:44:04] 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-02-08 04:44:04' and `end` < '2025-02-08 07:44:04' 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-02-08 07:44:18] Production.INFO: count ==163 [2025-02-08 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:44:04 - End Time 2025-02-08 07:44:04 [2025-02-08 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428268', 'tblTempUsageDetail_20' ) start [2025-02-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428268', 'tblTempUsageDetail_20' ) end [2025-02-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428268', 'tblTempVendorCDR_20' ) start [2025-02-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428268', 'tblTempVendorCDR_20' ) end [2025-02-08 07:44:18] Production.INFO: ProcessCDR(1,14428268,1,1,2) [2025-02-08 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428268', 'tblTempUsageDetail_20' ) start [2025-02-08 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428268', 'tblTempUsageDetail_20' ) end [2025-02-08 07:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:44:23] Production.INFO: ==6982== Releasing lock... [2025-02-08 07:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:44:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:45:05 [end_date_ymd] => 2025-02-08 07:45:05 [RateCDR] => 1 ) [2025-02-08 07:45: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` >= '2025-02-08 04:45:05' and `end` < '2025-02-08 07:45: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 ,'') [2025-02-08 07:45:18] Production.INFO: count ==163 [2025-02-08 07:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:45:05 - End Time 2025-02-08 07:45:05 [2025-02-08 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428273', 'tblTempUsageDetail_20' ) start [2025-02-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428273', 'tblTempUsageDetail_20' ) end [2025-02-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428273', 'tblTempVendorCDR_20' ) start [2025-02-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428273', 'tblTempVendorCDR_20' ) end [2025-02-08 07:45:19] Production.INFO: ProcessCDR(1,14428273,1,1,2) [2025-02-08 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428273', 'tblTempUsageDetail_20' ) start [2025-02-08 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428273', 'tblTempUsageDetail_20' ) end [2025-02-08 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:45:22] Production.INFO: ==7066== Releasing lock... [2025-02-08 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:45:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:46:05 [end_date_ymd] => 2025-02-08 07:46:05 [RateCDR] => 1 ) [2025-02-08 07:46: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` >= '2025-02-08 04:46:05' and `end` < '2025-02-08 07:46: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 ,'') [2025-02-08 07:46:19] Production.INFO: count ==163 [2025-02-08 07:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:46:05 - End Time 2025-02-08 07:46:05 [2025-02-08 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428278', 'tblTempUsageDetail_20' ) start [2025-02-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428278', 'tblTempUsageDetail_20' ) end [2025-02-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428278', 'tblTempVendorCDR_20' ) start [2025-02-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428278', 'tblTempVendorCDR_20' ) end [2025-02-08 07:46:19] Production.INFO: ProcessCDR(1,14428278,1,1,2) [2025-02-08 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428278', 'tblTempUsageDetail_20' ) start [2025-02-08 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428278', 'tblTempUsageDetail_20' ) end [2025-02-08 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:46:22] Production.INFO: ==7146== Releasing lock... [2025-02-08 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:47:04 [end_date_ymd] => 2025-02-08 07:47:04 [RateCDR] => 1 ) [2025-02-08 07:47:04] 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-02-08 04:47:04' and `end` < '2025-02-08 07:47:04' 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-02-08 07:47:17] Production.INFO: count ==163 [2025-02-08 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-08 04:47:04 - End Time 2025-02-08 07:47:04 [2025-02-08 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428283', 'tblTempUsageDetail_20' ) start [2025-02-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428283', 'tblTempUsageDetail_20' ) end [2025-02-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428283', 'tblTempVendorCDR_20' ) start [2025-02-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428283', 'tblTempVendorCDR_20' ) end [2025-02-08 07:47:17] Production.INFO: ProcessCDR(1,14428283,1,1,2) [2025-02-08 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428283', 'tblTempUsageDetail_20' ) start [2025-02-08 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428283', 'tblTempUsageDetail_20' ) end [2025-02-08 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:47:20] Production.INFO: ==7220== Releasing lock... [2025-02-08 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:48:05 [end_date_ymd] => 2025-02-08 07:48:05 [RateCDR] => 1 ) [2025-02-08 07:48: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` >= '2025-02-08 04:48:05' and `end` < '2025-02-08 07:48: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 ,'') [2025-02-08 07:48:18] Production.INFO: count ==164 [2025-02-08 07:48:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:48:05 - End Time 2025-02-08 07:48:05 [2025-02-08 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428288', 'tblTempUsageDetail_20' ) start [2025-02-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428288', 'tblTempUsageDetail_20' ) end [2025-02-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428288', 'tblTempVendorCDR_20' ) start [2025-02-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428288', 'tblTempVendorCDR_20' ) end [2025-02-08 07:48:18] Production.INFO: ProcessCDR(1,14428288,1,1,2) [2025-02-08 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428288', 'tblTempUsageDetail_20' ) start [2025-02-08 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428288', 'tblTempUsageDetail_20' ) end [2025-02-08 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:48:23] Production.INFO: ==7301== Releasing lock... [2025-02-08 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:48:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:49:05 [end_date_ymd] => 2025-02-08 07:49:05 [RateCDR] => 1 ) [2025-02-08 07:49: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` >= '2025-02-08 04:49:05' and `end` < '2025-02-08 07:49: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 ,'') [2025-02-08 07:49:18] Production.INFO: count ==164 [2025-02-08 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:49:05 - End Time 2025-02-08 07:49:05 [2025-02-08 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428293', 'tblTempUsageDetail_20' ) start [2025-02-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428293', 'tblTempUsageDetail_20' ) end [2025-02-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428293', 'tblTempVendorCDR_20' ) start [2025-02-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428293', 'tblTempVendorCDR_20' ) end [2025-02-08 07:49:18] Production.INFO: ProcessCDR(1,14428293,1,1,2) [2025-02-08 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428293', 'tblTempUsageDetail_20' ) start [2025-02-08 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428293', 'tblTempUsageDetail_20' ) end [2025-02-08 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:49:20] Production.INFO: ==7375== Releasing lock... [2025-02-08 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:50:06 [end_date_ymd] => 2025-02-08 07:50:06 [RateCDR] => 1 ) [2025-02-08 07:50: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-02-08 04:50:06' and `end` < '2025-02-08 07:50: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-02-08 07:50:19] Production.INFO: count ==166 [2025-02-08 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:50:06 - End Time 2025-02-08 07:50:06 [2025-02-08 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428298', 'tblTempUsageDetail_20' ) start [2025-02-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428298', 'tblTempUsageDetail_20' ) end [2025-02-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428298', 'tblTempVendorCDR_20' ) start [2025-02-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428298', 'tblTempVendorCDR_20' ) end [2025-02-08 07:50:19] Production.INFO: ProcessCDR(1,14428298,1,1,2) [2025-02-08 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428298', 'tblTempUsageDetail_20' ) start [2025-02-08 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428298', 'tblTempUsageDetail_20' ) end [2025-02-08 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:50:22] Production.INFO: ==7456== Releasing lock... [2025-02-08 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:51:05 [end_date_ymd] => 2025-02-08 07:51:05 [RateCDR] => 1 ) [2025-02-08 07:51: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` >= '2025-02-08 04:51:05' and `end` < '2025-02-08 07:51: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 ,'') [2025-02-08 07:51:19] Production.INFO: count ==175 [2025-02-08 07:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:51:05 - End Time 2025-02-08 07:51:05 [2025-02-08 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428304', 'tblTempUsageDetail_20' ) start [2025-02-08 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428304', 'tblTempUsageDetail_20' ) end [2025-02-08 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428304', 'tblTempVendorCDR_20' ) start [2025-02-08 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428304', 'tblTempVendorCDR_20' ) end [2025-02-08 07:51:19] Production.INFO: ProcessCDR(1,14428304,1,1,2) [2025-02-08 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428304', 'tblTempUsageDetail_20' ) start [2025-02-08 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428304', 'tblTempUsageDetail_20' ) end [2025-02-08 07:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:51:23] Production.INFO: ==7534== Releasing lock... [2025-02-08 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:51:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:52:05 [end_date_ymd] => 2025-02-08 07:52:05 [RateCDR] => 1 ) [2025-02-08 07:52: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` >= '2025-02-08 04:52:05' and `end` < '2025-02-08 07:52: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 ,'') [2025-02-08 07:52:18] Production.INFO: count ==175 [2025-02-08 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:52:05 - End Time 2025-02-08 07:52:05 [2025-02-08 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428309', 'tblTempUsageDetail_20' ) start [2025-02-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428309', 'tblTempUsageDetail_20' ) end [2025-02-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428309', 'tblTempVendorCDR_20' ) start [2025-02-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428309', 'tblTempVendorCDR_20' ) end [2025-02-08 07:52:18] Production.INFO: ProcessCDR(1,14428309,1,1,2) [2025-02-08 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428309', 'tblTempUsageDetail_20' ) start [2025-02-08 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428309', 'tblTempUsageDetail_20' ) end [2025-02-08 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:52:21] Production.INFO: ==7615== Releasing lock... [2025-02-08 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:53:04 [end_date_ymd] => 2025-02-08 07:53:04 [RateCDR] => 1 ) [2025-02-08 07:53:04] 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-02-08 04:53:04' and `end` < '2025-02-08 07:53:04' 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-02-08 07:53:18] Production.INFO: count ==175 [2025-02-08 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:53:04 - End Time 2025-02-08 07:53:04 [2025-02-08 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428314', 'tblTempUsageDetail_20' ) start [2025-02-08 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428314', 'tblTempUsageDetail_20' ) end [2025-02-08 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428314', 'tblTempVendorCDR_20' ) start [2025-02-08 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428314', 'tblTempVendorCDR_20' ) end [2025-02-08 07:53:18] Production.INFO: ProcessCDR(1,14428314,1,1,2) [2025-02-08 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428314', 'tblTempUsageDetail_20' ) start [2025-02-08 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428314', 'tblTempUsageDetail_20' ) end [2025-02-08 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:53:21] Production.INFO: ==7729== Releasing lock... [2025-02-08 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:54:05 [end_date_ymd] => 2025-02-08 07:54:05 [RateCDR] => 1 ) [2025-02-08 07:54: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` >= '2025-02-08 04:54:05' and `end` < '2025-02-08 07:54: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 ,'') [2025-02-08 07:54:18] Production.INFO: count ==175 [2025-02-08 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:54:05 - End Time 2025-02-08 07:54:05 [2025-02-08 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428319', 'tblTempUsageDetail_20' ) start [2025-02-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428319', 'tblTempUsageDetail_20' ) end [2025-02-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428319', 'tblTempVendorCDR_20' ) start [2025-02-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428319', 'tblTempVendorCDR_20' ) end [2025-02-08 07:54:18] Production.INFO: ProcessCDR(1,14428319,1,1,2) [2025-02-08 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428319', 'tblTempUsageDetail_20' ) start [2025-02-08 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428319', 'tblTempUsageDetail_20' ) end [2025-02-08 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:54:21] Production.INFO: ==7805== Releasing lock... [2025-02-08 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:55:05 [end_date_ymd] => 2025-02-08 07:55:05 [RateCDR] => 1 ) [2025-02-08 07:55: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` >= '2025-02-08 04:55:05' and `end` < '2025-02-08 07:55: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 ,'') [2025-02-08 07:55:19] Production.INFO: count ==177 [2025-02-08 07:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 04:55:05 - End Time 2025-02-08 07:55:05 [2025-02-08 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428324', 'tblTempUsageDetail_20' ) start [2025-02-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428324', 'tblTempUsageDetail_20' ) end [2025-02-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428324', 'tblTempVendorCDR_20' ) start [2025-02-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428324', 'tblTempVendorCDR_20' ) end [2025-02-08 07:55:19] Production.INFO: ProcessCDR(1,14428324,1,1,2) [2025-02-08 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428324', 'tblTempUsageDetail_20' ) start [2025-02-08 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428324', 'tblTempUsageDetail_20' ) end [2025-02-08 07:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:55:24] Production.INFO: ==7882== Releasing lock... [2025-02-08 07:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:55:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-08 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:56:05 [end_date_ymd] => 2025-02-08 07:56:05 [RateCDR] => 1 ) [2025-02-08 07:56: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` >= '2025-02-08 04:56:05' and `end` < '2025-02-08 07:56: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 ,'') [2025-02-08 07:56:18] Production.INFO: count ==180 [2025-02-08 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:56:05 - End Time 2025-02-08 07:56:05 [2025-02-08 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428329', 'tblTempUsageDetail_20' ) start [2025-02-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428329', 'tblTempUsageDetail_20' ) end [2025-02-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428329', 'tblTempVendorCDR_20' ) start [2025-02-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428329', 'tblTempVendorCDR_20' ) end [2025-02-08 07:56:18] Production.INFO: ProcessCDR(1,14428329,1,1,2) [2025-02-08 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428329', 'tblTempUsageDetail_20' ) start [2025-02-08 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428329', 'tblTempUsageDetail_20' ) end [2025-02-08 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:56:23] Production.INFO: ==7956== Releasing lock... [2025-02-08 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:56:23] Production.INFO: 29 MB #Memory Used# [2025-02-08 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:57:05 [end_date_ymd] => 2025-02-08 07:57:05 [RateCDR] => 1 ) [2025-02-08 07:57: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` >= '2025-02-08 04:57:05' and `end` < '2025-02-08 07:57: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 ,'') [2025-02-08 07:57:18] Production.INFO: count ==180 [2025-02-08 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:57:05 - End Time 2025-02-08 07:57:05 [2025-02-08 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428334', 'tblTempUsageDetail_20' ) start [2025-02-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428334', 'tblTempUsageDetail_20' ) end [2025-02-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428334', 'tblTempVendorCDR_20' ) start [2025-02-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428334', 'tblTempVendorCDR_20' ) end [2025-02-08 07:57:18] Production.INFO: ProcessCDR(1,14428334,1,1,2) [2025-02-08 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428334', 'tblTempUsageDetail_20' ) start [2025-02-08 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428334', 'tblTempUsageDetail_20' ) end [2025-02-08 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:57:22] Production.INFO: ==8032== Releasing lock... [2025-02-08 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:57:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:58:05 [end_date_ymd] => 2025-02-08 07:58:05 [RateCDR] => 1 ) [2025-02-08 07:58: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` >= '2025-02-08 04:58:05' and `end` < '2025-02-08 07:58: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 ,'') [2025-02-08 07:58:18] Production.INFO: count ==181 [2025-02-08 07:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:58:05 - End Time 2025-02-08 07:58:05 [2025-02-08 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428339', 'tblTempUsageDetail_20' ) start [2025-02-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428339', 'tblTempUsageDetail_20' ) end [2025-02-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428339', 'tblTempVendorCDR_20' ) start [2025-02-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428339', 'tblTempVendorCDR_20' ) end [2025-02-08 07:58:18] Production.INFO: ProcessCDR(1,14428339,1,1,2) [2025-02-08 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428339', 'tblTempUsageDetail_20' ) start [2025-02-08 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428339', 'tblTempUsageDetail_20' ) end [2025-02-08 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:58:22] Production.INFO: ==8105== Releasing lock... [2025-02-08 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:58:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 04:59:06 [end_date_ymd] => 2025-02-08 07:59:06 [RateCDR] => 1 ) [2025-02-08 07:59: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-02-08 04:59:06' and `end` < '2025-02-08 07:59: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-02-08 07:59:18] Production.INFO: count ==182 [2025-02-08 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 04:59:06 - End Time 2025-02-08 07:59:06 [2025-02-08 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428344', 'tblTempUsageDetail_20' ) start [2025-02-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428344', 'tblTempUsageDetail_20' ) end [2025-02-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428344', 'tblTempVendorCDR_20' ) start [2025-02-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428344', 'tblTempVendorCDR_20' ) end [2025-02-08 07:59:18] Production.INFO: ProcessCDR(1,14428344,1,1,2) [2025-02-08 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428344', 'tblTempUsageDetail_20' ) start [2025-02-08 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428344', 'tblTempUsageDetail_20' ) end [2025-02-08 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 07:59:23] Production.INFO: ==8183== Releasing lock... [2025-02-08 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 07:59:23] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:00:06 [end_date_ymd] => 2025-02-08 08:00:06 [RateCDR] => 1 ) [2025-02-08 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 05:00:06' and `end` < '2025-02-08 08: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-02-08 08:00:19] Production.INFO: count ==190 [2025-02-08 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:00:06 - End Time 2025-02-08 08:00:06 [2025-02-08 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428350', 'tblTempUsageDetail_20' ) start [2025-02-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428350', 'tblTempUsageDetail_20' ) end [2025-02-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428350', 'tblTempVendorCDR_20' ) start [2025-02-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428350', 'tblTempVendorCDR_20' ) end [2025-02-08 08:00:19] Production.INFO: ProcessCDR(1,14428350,1,1,2) [2025-02-08 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428350', 'tblTempUsageDetail_20' ) start [2025-02-08 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428350', 'tblTempUsageDetail_20' ) end [2025-02-08 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:00:22] Production.INFO: ==8261== Releasing lock... [2025-02-08 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:00:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:01:05 [end_date_ymd] => 2025-02-08 08:01:05 [RateCDR] => 1 ) [2025-02-08 08: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` >= '2025-02-08 05:01:05' and `end` < '2025-02-08 08: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 ,'') [2025-02-08 08:01:18] Production.INFO: count ==190 [2025-02-08 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:01:05 - End Time 2025-02-08 08:01:05 [2025-02-08 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428355', 'tblTempUsageDetail_20' ) start [2025-02-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428355', 'tblTempUsageDetail_20' ) end [2025-02-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428355', 'tblTempVendorCDR_20' ) start [2025-02-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428355', 'tblTempVendorCDR_20' ) end [2025-02-08 08:01:18] Production.INFO: ProcessCDR(1,14428355,1,1,2) [2025-02-08 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428355', 'tblTempUsageDetail_20' ) start [2025-02-08 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428355', 'tblTempUsageDetail_20' ) end [2025-02-08 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:01:21] Production.INFO: ==8348== Releasing lock... [2025-02-08 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:01:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:02:05 [end_date_ymd] => 2025-02-08 08:02:05 [RateCDR] => 1 ) [2025-02-08 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 05:02:05' and `end` < '2025-02-08 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 08:02:18] Production.INFO: count ==191 [2025-02-08 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:02:05 - End Time 2025-02-08 08:02:05 [2025-02-08 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428360', 'tblTempUsageDetail_20' ) start [2025-02-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428360', 'tblTempUsageDetail_20' ) end [2025-02-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428360', 'tblTempVendorCDR_20' ) start [2025-02-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428360', 'tblTempVendorCDR_20' ) end [2025-02-08 08:02:18] Production.INFO: ProcessCDR(1,14428360,1,1,2) [2025-02-08 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428360', 'tblTempUsageDetail_20' ) start [2025-02-08 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428360', 'tblTempUsageDetail_20' ) end [2025-02-08 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:02:23] Production.INFO: ==8425== Releasing lock... [2025-02-08 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:02:23] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:03:05 [end_date_ymd] => 2025-02-08 08:03:05 [RateCDR] => 1 ) [2025-02-08 08:03: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` >= '2025-02-08 05:03:05' and `end` < '2025-02-08 08:03: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 ,'') [2025-02-08 08:03:18] Production.INFO: count ==192 [2025-02-08 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:03:05 - End Time 2025-02-08 08:03:05 [2025-02-08 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428365', 'tblTempUsageDetail_20' ) start [2025-02-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428365', 'tblTempUsageDetail_20' ) end [2025-02-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428365', 'tblTempVendorCDR_20' ) start [2025-02-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428365', 'tblTempVendorCDR_20' ) end [2025-02-08 08:03:18] Production.INFO: ProcessCDR(1,14428365,1,1,2) [2025-02-08 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428365', 'tblTempUsageDetail_20' ) start [2025-02-08 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428365', 'tblTempUsageDetail_20' ) end [2025-02-08 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:03:22] Production.INFO: ==8504== Releasing lock... [2025-02-08 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:03:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:04:04 [end_date_ymd] => 2025-02-08 08:04:04 [RateCDR] => 1 ) [2025-02-08 08:04:04] 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-02-08 05:04:04' and `end` < '2025-02-08 08:04:04' 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-02-08 08:04:17] Production.INFO: count ==192 [2025-02-08 08:04:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:04:04 - End Time 2025-02-08 08:04:04 [2025-02-08 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428370', 'tblTempUsageDetail_20' ) start [2025-02-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428370', 'tblTempUsageDetail_20' ) end [2025-02-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428370', 'tblTempVendorCDR_20' ) start [2025-02-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428370', 'tblTempVendorCDR_20' ) end [2025-02-08 08:04:17] Production.INFO: ProcessCDR(1,14428370,1,1,2) [2025-02-08 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428370', 'tblTempUsageDetail_20' ) start [2025-02-08 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428370', 'tblTempUsageDetail_20' ) end [2025-02-08 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:04:20] Production.INFO: ==8576== Releasing lock... [2025-02-08 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:04:20] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:05:05 [end_date_ymd] => 2025-02-08 08:05:05 [RateCDR] => 1 ) [2025-02-08 08:05: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` >= '2025-02-08 05:05:05' and `end` < '2025-02-08 08:05: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 ,'') [2025-02-08 08:05:18] Production.INFO: count ==192 [2025-02-08 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:05:05 - End Time 2025-02-08 08:05:05 [2025-02-08 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428375', 'tblTempUsageDetail_20' ) start [2025-02-08 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428375', 'tblTempUsageDetail_20' ) end [2025-02-08 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428375', 'tblTempVendorCDR_20' ) start [2025-02-08 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428375', 'tblTempVendorCDR_20' ) end [2025-02-08 08:05:18] Production.INFO: ProcessCDR(1,14428375,1,1,2) [2025-02-08 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428375', 'tblTempUsageDetail_20' ) start [2025-02-08 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428375', 'tblTempUsageDetail_20' ) end [2025-02-08 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:05:21] Production.INFO: ==8651== Releasing lock... [2025-02-08 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:06:05 [end_date_ymd] => 2025-02-08 08:06:05 [RateCDR] => 1 ) [2025-02-08 08:06: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` >= '2025-02-08 05:06:05' and `end` < '2025-02-08 08:06: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 ,'') [2025-02-08 08:06:19] Production.INFO: count ==192 [2025-02-08 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:06:05 - End Time 2025-02-08 08:06:05 [2025-02-08 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428380', 'tblTempUsageDetail_20' ) start [2025-02-08 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428380', 'tblTempUsageDetail_20' ) end [2025-02-08 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428380', 'tblTempVendorCDR_20' ) start [2025-02-08 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428380', 'tblTempVendorCDR_20' ) end [2025-02-08 08:06:19] Production.INFO: ProcessCDR(1,14428380,1,1,2) [2025-02-08 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428380', 'tblTempUsageDetail_20' ) start [2025-02-08 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428380', 'tblTempUsageDetail_20' ) end [2025-02-08 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:06:22] Production.INFO: ==8729== Releasing lock... [2025-02-08 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:06:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:07:05 [end_date_ymd] => 2025-02-08 08:07:05 [RateCDR] => 1 ) [2025-02-08 08:07: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` >= '2025-02-08 05:07:05' and `end` < '2025-02-08 08:07: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 ,'') [2025-02-08 08:07:18] Production.INFO: count ==196 [2025-02-08 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:07:05 - End Time 2025-02-08 08:07:05 [2025-02-08 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428385', 'tblTempUsageDetail_20' ) start [2025-02-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428385', 'tblTempUsageDetail_20' ) end [2025-02-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428385', 'tblTempVendorCDR_20' ) start [2025-02-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428385', 'tblTempVendorCDR_20' ) end [2025-02-08 08:07:18] Production.INFO: ProcessCDR(1,14428385,1,1,2) [2025-02-08 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428385', 'tblTempUsageDetail_20' ) start [2025-02-08 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428385', 'tblTempUsageDetail_20' ) end [2025-02-08 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:07:21] Production.INFO: ==8801== Releasing lock... [2025-02-08 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:08:04 [end_date_ymd] => 2025-02-08 08:08:04 [RateCDR] => 1 ) [2025-02-08 08:08:04] 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-02-08 05:08:04' and `end` < '2025-02-08 08:08:04' 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-02-08 08:08:18] Production.INFO: count ==199 [2025-02-08 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:08:04 - End Time 2025-02-08 08:08:04 [2025-02-08 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428390', 'tblTempUsageDetail_20' ) start [2025-02-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428390', 'tblTempUsageDetail_20' ) end [2025-02-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428390', 'tblTempVendorCDR_20' ) start [2025-02-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428390', 'tblTempVendorCDR_20' ) end [2025-02-08 08:08:18] Production.INFO: ProcessCDR(1,14428390,1,1,2) [2025-02-08 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428390', 'tblTempUsageDetail_20' ) start [2025-02-08 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428390', 'tblTempUsageDetail_20' ) end [2025-02-08 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:08:21] Production.INFO: ==8912== Releasing lock... [2025-02-08 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:09:04 [end_date_ymd] => 2025-02-08 08:09:04 [RateCDR] => 1 ) [2025-02-08 08:09:04] 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-02-08 05:09:04' and `end` < '2025-02-08 08:09:04' 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-02-08 08:09:19] Production.INFO: count ==201 [2025-02-08 08:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:09:04 - End Time 2025-02-08 08:09:04 [2025-02-08 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428395', 'tblTempUsageDetail_20' ) start [2025-02-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428395', 'tblTempUsageDetail_20' ) end [2025-02-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428395', 'tblTempVendorCDR_20' ) start [2025-02-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428395', 'tblTempVendorCDR_20' ) end [2025-02-08 08:09:19] Production.INFO: ProcessCDR(1,14428395,1,1,2) [2025-02-08 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428395', 'tblTempUsageDetail_20' ) start [2025-02-08 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428395', 'tblTempUsageDetail_20' ) end [2025-02-08 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:09:22] Production.INFO: ==8989== Releasing lock... [2025-02-08 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:09:22] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:10:06 [end_date_ymd] => 2025-02-08 08:10:06 [RateCDR] => 1 ) [2025-02-08 08:10: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-02-08 05:10:06' and `end` < '2025-02-08 08:10: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-02-08 08:10:27] Production.INFO: count ==214 [2025-02-08 08:10:27] Production.ERROR: pbx CDR StartTime 2025-02-08 05:10:06 - End Time 2025-02-08 08:10:06 [2025-02-08 08:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428401', 'tblTempUsageDetail_20' ) start [2025-02-08 08:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428401', 'tblTempUsageDetail_20' ) end [2025-02-08 08:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428401', 'tblTempVendorCDR_20' ) start [2025-02-08 08:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428401', 'tblTempVendorCDR_20' ) end [2025-02-08 08:10:27] Production.INFO: ProcessCDR(1,14428401,1,1,2) [2025-02-08 08:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428401', 'tblTempUsageDetail_20' ) start [2025-02-08 08:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428401', 'tblTempUsageDetail_20' ) end [2025-02-08 08:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:10:31] Production.INFO: ==9068== Releasing lock... [2025-02-08 08:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:10:31] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:11:05 [end_date_ymd] => 2025-02-08 08:11:05 [RateCDR] => 1 ) [2025-02-08 08:11: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` >= '2025-02-08 05:11:05' and `end` < '2025-02-08 08:11: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 ,'') [2025-02-08 08:11:18] Production.INFO: count ==219 [2025-02-08 08:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:11:05 - End Time 2025-02-08 08:11:05 [2025-02-08 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428406', 'tblTempUsageDetail_20' ) start [2025-02-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428406', 'tblTempUsageDetail_20' ) end [2025-02-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428406', 'tblTempVendorCDR_20' ) start [2025-02-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428406', 'tblTempVendorCDR_20' ) end [2025-02-08 08:11:18] Production.INFO: ProcessCDR(1,14428406,1,1,2) [2025-02-08 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428406', 'tblTempUsageDetail_20' ) start [2025-02-08 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428406', 'tblTempUsageDetail_20' ) end [2025-02-08 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:11:21] Production.INFO: ==9145== Releasing lock... [2025-02-08 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:12:05 [end_date_ymd] => 2025-02-08 08:12:05 [RateCDR] => 1 ) [2025-02-08 08:12: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` >= '2025-02-08 05:12:05' and `end` < '2025-02-08 08:12: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 ,'') [2025-02-08 08:12:18] Production.INFO: count ==226 [2025-02-08 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:12:05 - End Time 2025-02-08 08:12:05 [2025-02-08 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428411', 'tblTempUsageDetail_20' ) start [2025-02-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428411', 'tblTempUsageDetail_20' ) end [2025-02-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428411', 'tblTempVendorCDR_20' ) start [2025-02-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428411', 'tblTempVendorCDR_20' ) end [2025-02-08 08:12:18] Production.INFO: ProcessCDR(1,14428411,1,1,2) [2025-02-08 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428411', 'tblTempUsageDetail_20' ) start [2025-02-08 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428411', 'tblTempUsageDetail_20' ) end [2025-02-08 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:12:21] Production.INFO: ==9226== Releasing lock... [2025-02-08 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:12:21] Production.INFO: 29 MB #Memory Used# [2025-02-08 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:13:04 [end_date_ymd] => 2025-02-08 08:13:04 [RateCDR] => 1 ) [2025-02-08 08:13:04] 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-02-08 05:13:04' and `end` < '2025-02-08 08:13:04' 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-02-08 08:13:17] Production.INFO: count ==228 [2025-02-08 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:13:04 - End Time 2025-02-08 08:13:04 [2025-02-08 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428416', 'tblTempUsageDetail_20' ) start [2025-02-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428416', 'tblTempUsageDetail_20' ) end [2025-02-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428416', 'tblTempVendorCDR_20' ) start [2025-02-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428416', 'tblTempVendorCDR_20' ) end [2025-02-08 08:13:17] Production.INFO: ProcessCDR(1,14428416,1,1,2) [2025-02-08 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428416', 'tblTempUsageDetail_20' ) start [2025-02-08 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428416', 'tblTempUsageDetail_20' ) end [2025-02-08 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:13:22] Production.INFO: ==9299== Releasing lock... [2025-02-08 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-08 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:14:05 [end_date_ymd] => 2025-02-08 08:14:05 [RateCDR] => 1 ) [2025-02-08 08:14: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` >= '2025-02-08 05:14:05' and `end` < '2025-02-08 08:14: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 ,'') [2025-02-08 08:14:18] Production.INFO: count ==230 [2025-02-08 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:14:05 - End Time 2025-02-08 08:14:05 [2025-02-08 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428421', 'tblTempUsageDetail_20' ) start [2025-02-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428421', 'tblTempUsageDetail_20' ) end [2025-02-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428421', 'tblTempVendorCDR_20' ) start [2025-02-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428421', 'tblTempVendorCDR_20' ) end [2025-02-08 08:14:18] Production.INFO: ProcessCDR(1,14428421,1,1,2) [2025-02-08 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428421', 'tblTempUsageDetail_20' ) start [2025-02-08 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428421', 'tblTempUsageDetail_20' ) end [2025-02-08 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:14:21] Production.INFO: ==9373== Releasing lock... [2025-02-08 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:15:05 [end_date_ymd] => 2025-02-08 08:15:05 [RateCDR] => 1 ) [2025-02-08 08:15: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` >= '2025-02-08 05:15:05' and `end` < '2025-02-08 08:15: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 ,'') [2025-02-08 08:15:18] Production.INFO: count ==230 [2025-02-08 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:15:05 - End Time 2025-02-08 08:15:05 [2025-02-08 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428426', 'tblTempUsageDetail_20' ) start [2025-02-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428426', 'tblTempUsageDetail_20' ) end [2025-02-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428426', 'tblTempVendorCDR_20' ) start [2025-02-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428426', 'tblTempVendorCDR_20' ) end [2025-02-08 08:15:18] Production.INFO: ProcessCDR(1,14428426,1,1,2) [2025-02-08 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428426', 'tblTempUsageDetail_20' ) start [2025-02-08 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428426', 'tblTempUsageDetail_20' ) end [2025-02-08 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:15:21] Production.INFO: ==9450== Releasing lock... [2025-02-08 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:16:05 [end_date_ymd] => 2025-02-08 08:16:05 [RateCDR] => 1 ) [2025-02-08 08:16: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` >= '2025-02-08 05:16:05' and `end` < '2025-02-08 08:16: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 ,'') [2025-02-08 08:16:19] Production.INFO: count ==240 [2025-02-08 08:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:16:05 - End Time 2025-02-08 08:16:05 [2025-02-08 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428431', 'tblTempUsageDetail_20' ) start [2025-02-08 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428431', 'tblTempUsageDetail_20' ) end [2025-02-08 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428431', 'tblTempVendorCDR_20' ) start [2025-02-08 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428431', 'tblTempVendorCDR_20' ) end [2025-02-08 08:16:19] Production.INFO: ProcessCDR(1,14428431,1,1,2) [2025-02-08 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428431', 'tblTempUsageDetail_20' ) start [2025-02-08 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428431', 'tblTempUsageDetail_20' ) end [2025-02-08 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:16:23] Production.INFO: ==9521== Releasing lock... [2025-02-08 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:16:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-08 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:17:04 [end_date_ymd] => 2025-02-08 08:17:04 [RateCDR] => 1 ) [2025-02-08 08:17:04] 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-02-08 05:17:04' and `end` < '2025-02-08 08:17:04' 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-02-08 08:17:20] Production.INFO: count ==252 [2025-02-08 08:17:20] Production.ERROR: pbx CDR StartTime 2025-02-08 05:17:04 - End Time 2025-02-08 08:17:04 [2025-02-08 08:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428436', 'tblTempUsageDetail_20' ) start [2025-02-08 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428436', 'tblTempUsageDetail_20' ) end [2025-02-08 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428436', 'tblTempVendorCDR_20' ) start [2025-02-08 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428436', 'tblTempVendorCDR_20' ) end [2025-02-08 08:17:20] Production.INFO: ProcessCDR(1,14428436,1,1,2) [2025-02-08 08:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428436', 'tblTempUsageDetail_20' ) start [2025-02-08 08:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428436', 'tblTempUsageDetail_20' ) end [2025-02-08 08:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:17:25] Production.INFO: ==9600== Releasing lock... [2025-02-08 08:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:17:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:18:06 [end_date_ymd] => 2025-02-08 08:18:06 [RateCDR] => 1 ) [2025-02-08 08:18: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-02-08 05:18:06' and `end` < '2025-02-08 08:18: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-02-08 08:18:19] Production.INFO: count ==252 [2025-02-08 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:18:06 - End Time 2025-02-08 08:18:06 [2025-02-08 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428441', 'tblTempUsageDetail_20' ) start [2025-02-08 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428441', 'tblTempUsageDetail_20' ) end [2025-02-08 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428441', 'tblTempVendorCDR_20' ) start [2025-02-08 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428441', 'tblTempVendorCDR_20' ) end [2025-02-08 08:18:19] Production.INFO: ProcessCDR(1,14428441,1,1,2) [2025-02-08 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428441', 'tblTempUsageDetail_20' ) start [2025-02-08 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428441', 'tblTempUsageDetail_20' ) end [2025-02-08 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:18:22] Production.INFO: ==9687== Releasing lock... [2025-02-08 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:19:05 [end_date_ymd] => 2025-02-08 08:19:05 [RateCDR] => 1 ) [2025-02-08 08:19: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` >= '2025-02-08 05:19:05' and `end` < '2025-02-08 08:19: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 ,'') [2025-02-08 08:19:17] Production.INFO: count ==253 [2025-02-08 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:19:05 - End Time 2025-02-08 08:19:05 [2025-02-08 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428446', 'tblTempUsageDetail_20' ) start [2025-02-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428446', 'tblTempUsageDetail_20' ) end [2025-02-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428446', 'tblTempVendorCDR_20' ) start [2025-02-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428446', 'tblTempVendorCDR_20' ) end [2025-02-08 08:19:17] Production.INFO: ProcessCDR(1,14428446,1,1,2) [2025-02-08 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428446', 'tblTempUsageDetail_20' ) start [2025-02-08 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428446', 'tblTempUsageDetail_20' ) end [2025-02-08 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:19:22] Production.INFO: ==9760== Releasing lock... [2025-02-08 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:20:06 [end_date_ymd] => 2025-02-08 08:20:06 [RateCDR] => 1 ) [2025-02-08 08:20: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-02-08 05:20:06' and `end` < '2025-02-08 08:20: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-02-08 08:20:19] Production.INFO: count ==257 [2025-02-08 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:20:06 - End Time 2025-02-08 08:20:06 [2025-02-08 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428452', 'tblTempUsageDetail_20' ) start [2025-02-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428452', 'tblTempUsageDetail_20' ) end [2025-02-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428452', 'tblTempVendorCDR_20' ) start [2025-02-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428452', 'tblTempVendorCDR_20' ) end [2025-02-08 08:20:19] Production.INFO: ProcessCDR(1,14428452,1,1,2) [2025-02-08 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428452', 'tblTempUsageDetail_20' ) start [2025-02-08 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428452', 'tblTempUsageDetail_20' ) end [2025-02-08 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:20:22] Production.INFO: ==9839== Releasing lock... [2025-02-08 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:21:06 [end_date_ymd] => 2025-02-08 08:21:06 [RateCDR] => 1 ) [2025-02-08 08:21: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-02-08 05:21:06' and `end` < '2025-02-08 08:21: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-02-08 08:21:18] Production.INFO: count ==261 [2025-02-08 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:21:06 - End Time 2025-02-08 08:21:06 [2025-02-08 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428457', 'tblTempUsageDetail_20' ) start [2025-02-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428457', 'tblTempUsageDetail_20' ) end [2025-02-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428457', 'tblTempVendorCDR_20' ) start [2025-02-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428457', 'tblTempVendorCDR_20' ) end [2025-02-08 08:21:18] Production.INFO: ProcessCDR(1,14428457,1,1,2) [2025-02-08 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428457', 'tblTempUsageDetail_20' ) start [2025-02-08 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428457', 'tblTempUsageDetail_20' ) end [2025-02-08 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:21:21] Production.INFO: ==9912== Releasing lock... [2025-02-08 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:22:05 [end_date_ymd] => 2025-02-08 08:22:05 [RateCDR] => 1 ) [2025-02-08 08:22: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` >= '2025-02-08 05:22:05' and `end` < '2025-02-08 08:22: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 ,'') [2025-02-08 08:22:18] Production.INFO: count ==269 [2025-02-08 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:22:05 - End Time 2025-02-08 08:22:05 [2025-02-08 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428462', 'tblTempUsageDetail_20' ) start [2025-02-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428462', 'tblTempUsageDetail_20' ) end [2025-02-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428462', 'tblTempVendorCDR_20' ) start [2025-02-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428462', 'tblTempVendorCDR_20' ) end [2025-02-08 08:22:18] Production.INFO: ProcessCDR(1,14428462,1,1,2) [2025-02-08 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428462', 'tblTempUsageDetail_20' ) start [2025-02-08 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428462', 'tblTempUsageDetail_20' ) end [2025-02-08 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:22:21] Production.INFO: ==9987== Releasing lock... [2025-02-08 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-08 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:23:05 [end_date_ymd] => 2025-02-08 08:23:05 [RateCDR] => 1 ) [2025-02-08 08:23: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` >= '2025-02-08 05:23:05' and `end` < '2025-02-08 08:23: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 ,'') [2025-02-08 08:23:19] Production.INFO: count ==271 [2025-02-08 08:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:23:05 - End Time 2025-02-08 08:23:05 [2025-02-08 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428467', 'tblTempUsageDetail_20' ) start [2025-02-08 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428467', 'tblTempUsageDetail_20' ) end [2025-02-08 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428467', 'tblTempVendorCDR_20' ) start [2025-02-08 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428467', 'tblTempVendorCDR_20' ) end [2025-02-08 08:23:19] Production.INFO: ProcessCDR(1,14428467,1,1,2) [2025-02-08 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428467', 'tblTempUsageDetail_20' ) start [2025-02-08 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428467', 'tblTempUsageDetail_20' ) end [2025-02-08 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:23:23] Production.INFO: ==10097== Releasing lock... [2025-02-08 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:23:23] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:24:04 [end_date_ymd] => 2025-02-08 08:24:04 [RateCDR] => 1 ) [2025-02-08 08:24:04] 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-02-08 05:24:04' and `end` < '2025-02-08 08:24:04' 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-02-08 08:24:17] Production.INFO: count ==275 [2025-02-08 08:24:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:24:04 - End Time 2025-02-08 08:24:04 [2025-02-08 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428468', 'tblTempUsageDetail_20' ) start [2025-02-08 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428468', 'tblTempUsageDetail_20' ) end [2025-02-08 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428468', 'tblTempVendorCDR_20' ) start [2025-02-08 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428468', 'tblTempVendorCDR_20' ) end [2025-02-08 08:24:17] Production.INFO: ProcessCDR(1,14428468,1,1,2) [2025-02-08 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428468', 'tblTempUsageDetail_20' ) start [2025-02-08 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428468', 'tblTempUsageDetail_20' ) end [2025-02-08 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:24:21] Production.INFO: ==10168== Releasing lock... [2025-02-08 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:25:05 [end_date_ymd] => 2025-02-08 08:25:05 [RateCDR] => 1 ) [2025-02-08 08:25: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` >= '2025-02-08 05:25:05' and `end` < '2025-02-08 08:25: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 ,'') [2025-02-08 08:25:18] Production.INFO: count ==276 [2025-02-08 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:25:05 - End Time 2025-02-08 08:25:05 [2025-02-08 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428477', 'tblTempUsageDetail_20' ) start [2025-02-08 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428477', 'tblTempUsageDetail_20' ) end [2025-02-08 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428477', 'tblTempVendorCDR_20' ) start [2025-02-08 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428477', 'tblTempVendorCDR_20' ) end [2025-02-08 08:25:18] Production.INFO: ProcessCDR(1,14428477,1,1,2) [2025-02-08 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428477', 'tblTempUsageDetail_20' ) start [2025-02-08 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428477', 'tblTempUsageDetail_20' ) end [2025-02-08 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:25:21] Production.INFO: ==10245== Releasing lock... [2025-02-08 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:25:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:26:04 [end_date_ymd] => 2025-02-08 08:26:04 [RateCDR] => 1 ) [2025-02-08 08:26:04] 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-02-08 05:26:04' and `end` < '2025-02-08 08:26:04' 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-02-08 08:26:17] Production.INFO: count ==281 [2025-02-08 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:26:04 - End Time 2025-02-08 08:26:04 [2025-02-08 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428482', 'tblTempUsageDetail_20' ) start [2025-02-08 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428482', 'tblTempUsageDetail_20' ) end [2025-02-08 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428482', 'tblTempVendorCDR_20' ) start [2025-02-08 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428482', 'tblTempVendorCDR_20' ) end [2025-02-08 08:26:17] Production.INFO: ProcessCDR(1,14428482,1,1,2) [2025-02-08 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428482', 'tblTempUsageDetail_20' ) start [2025-02-08 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428482', 'tblTempUsageDetail_20' ) end [2025-02-08 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:26:20] Production.INFO: ==10319== Releasing lock... [2025-02-08 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:26:20] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:27:06 [end_date_ymd] => 2025-02-08 08:27:06 [RateCDR] => 1 ) [2025-02-08 08:27: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-02-08 05:27:06' and `end` < '2025-02-08 08:27: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-02-08 08:27:18] Production.INFO: count ==281 [2025-02-08 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:27:06 - End Time 2025-02-08 08:27:06 [2025-02-08 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428487', 'tblTempUsageDetail_20' ) start [2025-02-08 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428487', 'tblTempUsageDetail_20' ) end [2025-02-08 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428487', 'tblTempVendorCDR_20' ) start [2025-02-08 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428487', 'tblTempVendorCDR_20' ) end [2025-02-08 08:27:18] Production.INFO: ProcessCDR(1,14428487,1,1,2) [2025-02-08 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428487', 'tblTempUsageDetail_20' ) start [2025-02-08 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428487', 'tblTempUsageDetail_20' ) end [2025-02-08 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:27:22] Production.INFO: ==10393== Releasing lock... [2025-02-08 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:27:22] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:28:06 [end_date_ymd] => 2025-02-08 08:28:06 [RateCDR] => 1 ) [2025-02-08 08:28: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-02-08 05:28:06' and `end` < '2025-02-08 08:28: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-02-08 08:28:19] Production.INFO: count ==281 [2025-02-08 08:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:28:06 - End Time 2025-02-08 08:28:06 [2025-02-08 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428492', 'tblTempUsageDetail_20' ) start [2025-02-08 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428492', 'tblTempUsageDetail_20' ) end [2025-02-08 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428492', 'tblTempVendorCDR_20' ) start [2025-02-08 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428492', 'tblTempVendorCDR_20' ) end [2025-02-08 08:28:19] Production.INFO: ProcessCDR(1,14428492,1,1,2) [2025-02-08 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428492', 'tblTempUsageDetail_20' ) start [2025-02-08 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428492', 'tblTempUsageDetail_20' ) end [2025-02-08 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:28:23] Production.INFO: ==10465== Releasing lock... [2025-02-08 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:28:23] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:29:05 [end_date_ymd] => 2025-02-08 08:29:05 [RateCDR] => 1 ) [2025-02-08 08:29: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` >= '2025-02-08 05:29:05' and `end` < '2025-02-08 08:29: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 ,'') [2025-02-08 08:29:17] Production.INFO: count ==281 [2025-02-08 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:29:05 - End Time 2025-02-08 08:29:05 [2025-02-08 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428497', 'tblTempUsageDetail_20' ) start [2025-02-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428497', 'tblTempUsageDetail_20' ) end [2025-02-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428497', 'tblTempVendorCDR_20' ) start [2025-02-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428497', 'tblTempVendorCDR_20' ) end [2025-02-08 08:29:17] Production.INFO: ProcessCDR(1,14428497,1,1,2) [2025-02-08 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428497', 'tblTempUsageDetail_20' ) start [2025-02-08 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428497', 'tblTempUsageDetail_20' ) end [2025-02-08 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:29:21] Production.INFO: ==10537== Releasing lock... [2025-02-08 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:29:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:30:06 [end_date_ymd] => 2025-02-08 08:30:06 [RateCDR] => 1 ) [2025-02-08 08:30: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-02-08 05:30:06' and `end` < '2025-02-08 08:30: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-02-08 08:30:19] Production.INFO: count ==285 [2025-02-08 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:30:06 - End Time 2025-02-08 08:30:06 [2025-02-08 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428503', 'tblTempUsageDetail_20' ) start [2025-02-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428503', 'tblTempUsageDetail_20' ) end [2025-02-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428503', 'tblTempVendorCDR_20' ) start [2025-02-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428503', 'tblTempVendorCDR_20' ) end [2025-02-08 08:30:19] Production.INFO: ProcessCDR(1,14428503,1,1,2) [2025-02-08 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428503', 'tblTempUsageDetail_20' ) start [2025-02-08 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428503', 'tblTempUsageDetail_20' ) end [2025-02-08 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:30:22] Production.INFO: ==10613== Releasing lock... [2025-02-08 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:31:05 [end_date_ymd] => 2025-02-08 08:31:05 [RateCDR] => 1 ) [2025-02-08 08:31: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` >= '2025-02-08 05:31:05' and `end` < '2025-02-08 08:31: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 ,'') [2025-02-08 08:31:18] Production.INFO: count ==295 [2025-02-08 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:31:05 - End Time 2025-02-08 08:31:05 [2025-02-08 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428508', 'tblTempUsageDetail_20' ) start [2025-02-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428508', 'tblTempUsageDetail_20' ) end [2025-02-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428508', 'tblTempVendorCDR_20' ) start [2025-02-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428508', 'tblTempVendorCDR_20' ) end [2025-02-08 08:31:18] Production.INFO: ProcessCDR(1,14428508,1,1,2) [2025-02-08 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428508', 'tblTempUsageDetail_20' ) start [2025-02-08 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428508', 'tblTempUsageDetail_20' ) end [2025-02-08 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:31:21] Production.INFO: ==10692== Releasing lock... [2025-02-08 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:32:05 [end_date_ymd] => 2025-02-08 08:32:05 [RateCDR] => 1 ) [2025-02-08 08:32: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` >= '2025-02-08 05:32:05' and `end` < '2025-02-08 08:32: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 ,'') [2025-02-08 08:32:18] Production.INFO: count ==295 [2025-02-08 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:32:05 - End Time 2025-02-08 08:32:05 [2025-02-08 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428513', 'tblTempUsageDetail_20' ) start [2025-02-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428513', 'tblTempUsageDetail_20' ) end [2025-02-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428513', 'tblTempVendorCDR_20' ) start [2025-02-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428513', 'tblTempVendorCDR_20' ) end [2025-02-08 08:32:18] Production.INFO: ProcessCDR(1,14428513,1,1,2) [2025-02-08 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428513', 'tblTempUsageDetail_20' ) start [2025-02-08 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428513', 'tblTempUsageDetail_20' ) end [2025-02-08 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:32:21] Production.INFO: ==10763== Releasing lock... [2025-02-08 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:33:05 [end_date_ymd] => 2025-02-08 08:33:05 [RateCDR] => 1 ) [2025-02-08 08:33: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` >= '2025-02-08 05:33:05' and `end` < '2025-02-08 08:33: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 ,'') [2025-02-08 08:33:18] Production.INFO: count ==298 [2025-02-08 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:33:05 - End Time 2025-02-08 08:33:05 [2025-02-08 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428518', 'tblTempUsageDetail_20' ) start [2025-02-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428518', 'tblTempUsageDetail_20' ) end [2025-02-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428518', 'tblTempVendorCDR_20' ) start [2025-02-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428518', 'tblTempVendorCDR_20' ) end [2025-02-08 08:33:18] Production.INFO: ProcessCDR(1,14428518,1,1,2) [2025-02-08 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428518', 'tblTempUsageDetail_20' ) start [2025-02-08 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428518', 'tblTempUsageDetail_20' ) end [2025-02-08 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:33:21] Production.INFO: ==10834== Releasing lock... [2025-02-08 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:34:05 [end_date_ymd] => 2025-02-08 08:34:05 [RateCDR] => 1 ) [2025-02-08 08:34: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` >= '2025-02-08 05:34:05' and `end` < '2025-02-08 08:34: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 ,'') [2025-02-08 08:34:18] Production.INFO: count ==301 [2025-02-08 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:34:05 - End Time 2025-02-08 08:34:05 [2025-02-08 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428523', 'tblTempUsageDetail_20' ) start [2025-02-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428523', 'tblTempUsageDetail_20' ) end [2025-02-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428523', 'tblTempVendorCDR_20' ) start [2025-02-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428523', 'tblTempVendorCDR_20' ) end [2025-02-08 08:34:18] Production.INFO: ProcessCDR(1,14428523,1,1,2) [2025-02-08 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428523', 'tblTempUsageDetail_20' ) start [2025-02-08 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428523', 'tblTempUsageDetail_20' ) end [2025-02-08 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:34:21] Production.INFO: ==10907== Releasing lock... [2025-02-08 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:35:04 [end_date_ymd] => 2025-02-08 08:35:04 [RateCDR] => 1 ) [2025-02-08 08:35:04] 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-02-08 05:35:04' and `end` < '2025-02-08 08:35:04' 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-02-08 08:35:17] Production.INFO: count ==301 [2025-02-08 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:35:04 - End Time 2025-02-08 08:35:04 [2025-02-08 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428528', 'tblTempUsageDetail_20' ) start [2025-02-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428528', 'tblTempUsageDetail_20' ) end [2025-02-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428528', 'tblTempVendorCDR_20' ) start [2025-02-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428528', 'tblTempVendorCDR_20' ) end [2025-02-08 08:35:17] Production.INFO: ProcessCDR(1,14428528,1,1,2) [2025-02-08 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428528', 'tblTempUsageDetail_20' ) start [2025-02-08 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428528', 'tblTempUsageDetail_20' ) end [2025-02-08 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:35:21] Production.INFO: ==10979== Releasing lock... [2025-02-08 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:36:05 [end_date_ymd] => 2025-02-08 08:36:05 [RateCDR] => 1 ) [2025-02-08 08:36: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` >= '2025-02-08 05:36:05' and `end` < '2025-02-08 08:36: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 ,'') [2025-02-08 08:36:18] Production.INFO: count ==303 [2025-02-08 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:36:05 - End Time 2025-02-08 08:36:05 [2025-02-08 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428533', 'tblTempUsageDetail_20' ) start [2025-02-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428533', 'tblTempUsageDetail_20' ) end [2025-02-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428533', 'tblTempVendorCDR_20' ) start [2025-02-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428533', 'tblTempVendorCDR_20' ) end [2025-02-08 08:36:18] Production.INFO: ProcessCDR(1,14428533,1,1,2) [2025-02-08 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428533', 'tblTempUsageDetail_20' ) start [2025-02-08 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428533', 'tblTempUsageDetail_20' ) end [2025-02-08 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:36:23] Production.INFO: ==11048== Releasing lock... [2025-02-08 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:36:23] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:37:04 [end_date_ymd] => 2025-02-08 08:37:04 [RateCDR] => 1 ) [2025-02-08 08:37:04] 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-02-08 05:37:04' and `end` < '2025-02-08 08:37:04' 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-02-08 08:37:17] Production.INFO: count ==303 [2025-02-08 08:37:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:37:04 - End Time 2025-02-08 08:37:04 [2025-02-08 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428538', 'tblTempUsageDetail_20' ) start [2025-02-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428538', 'tblTempUsageDetail_20' ) end [2025-02-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428538', 'tblTempVendorCDR_20' ) start [2025-02-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428538', 'tblTempVendorCDR_20' ) end [2025-02-08 08:37:17] Production.INFO: ProcessCDR(1,14428538,1,1,2) [2025-02-08 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428538', 'tblTempUsageDetail_20' ) start [2025-02-08 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428538', 'tblTempUsageDetail_20' ) end [2025-02-08 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:37:21] Production.INFO: ==11120== Releasing lock... [2025-02-08 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:38:05 [end_date_ymd] => 2025-02-08 08:38:05 [RateCDR] => 1 ) [2025-02-08 08:38: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` >= '2025-02-08 05:38:05' and `end` < '2025-02-08 08:38: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 ,'') [2025-02-08 08:38:18] Production.INFO: count ==303 [2025-02-08 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:38:05 - End Time 2025-02-08 08:38:05 [2025-02-08 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428543', 'tblTempUsageDetail_20' ) start [2025-02-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428543', 'tblTempUsageDetail_20' ) end [2025-02-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428543', 'tblTempVendorCDR_20' ) start [2025-02-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428543', 'tblTempVendorCDR_20' ) end [2025-02-08 08:38:18] Production.INFO: ProcessCDR(1,14428543,1,1,2) [2025-02-08 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428543', 'tblTempUsageDetail_20' ) start [2025-02-08 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428543', 'tblTempUsageDetail_20' ) end [2025-02-08 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:38:21] Production.INFO: ==11192== Releasing lock... [2025-02-08 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-08 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:39:05 [end_date_ymd] => 2025-02-08 08:39:05 [RateCDR] => 1 ) [2025-02-08 08:39: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` >= '2025-02-08 05:39:05' and `end` < '2025-02-08 08:39: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 ,'') [2025-02-08 08:39:21] Production.INFO: count ==309 [2025-02-08 08:39:21] Production.ERROR: pbx CDR StartTime 2025-02-08 05:39:05 - End Time 2025-02-08 08:39:05 [2025-02-08 08:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428548', 'tblTempUsageDetail_20' ) start [2025-02-08 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428548', 'tblTempUsageDetail_20' ) end [2025-02-08 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428548', 'tblTempVendorCDR_20' ) start [2025-02-08 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428548', 'tblTempVendorCDR_20' ) end [2025-02-08 08:39:21] Production.INFO: ProcessCDR(1,14428548,1,1,2) [2025-02-08 08:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428548', 'tblTempUsageDetail_20' ) start [2025-02-08 08:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428548', 'tblTempUsageDetail_20' ) end [2025-02-08 08:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:39:25] Production.INFO: ==11306== Releasing lock... [2025-02-08 08:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:39:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:40:06 [end_date_ymd] => 2025-02-08 08:40:06 [RateCDR] => 1 ) [2025-02-08 08:40: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-02-08 05:40:06' and `end` < '2025-02-08 08:40: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-02-08 08:40:19] Production.INFO: count ==315 [2025-02-08 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:40:06 - End Time 2025-02-08 08:40:06 [2025-02-08 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428554', 'tblTempUsageDetail_20' ) start [2025-02-08 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428554', 'tblTempUsageDetail_20' ) end [2025-02-08 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428554', 'tblTempVendorCDR_20' ) start [2025-02-08 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428554', 'tblTempVendorCDR_20' ) end [2025-02-08 08:40:19] Production.INFO: ProcessCDR(1,14428554,1,1,2) [2025-02-08 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428554', 'tblTempUsageDetail_20' ) start [2025-02-08 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428554', 'tblTempUsageDetail_20' ) end [2025-02-08 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:40:22] Production.INFO: ==11385== Releasing lock... [2025-02-08 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:41:05 [end_date_ymd] => 2025-02-08 08:41:05 [RateCDR] => 1 ) [2025-02-08 08:41: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` >= '2025-02-08 05:41:05' and `end` < '2025-02-08 08:41: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 ,'') [2025-02-08 08:41:18] Production.INFO: count ==327 [2025-02-08 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:41:05 - End Time 2025-02-08 08:41:05 [2025-02-08 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428559', 'tblTempUsageDetail_20' ) start [2025-02-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428559', 'tblTempUsageDetail_20' ) end [2025-02-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428559', 'tblTempVendorCDR_20' ) start [2025-02-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428559', 'tblTempVendorCDR_20' ) end [2025-02-08 08:41:18] Production.INFO: ProcessCDR(1,14428559,1,1,2) [2025-02-08 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428559', 'tblTempUsageDetail_20' ) start [2025-02-08 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428559', 'tblTempUsageDetail_20' ) end [2025-02-08 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:41:21] Production.INFO: ==11459== Releasing lock... [2025-02-08 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:42:04 [end_date_ymd] => 2025-02-08 08:42:04 [RateCDR] => 1 ) [2025-02-08 08:42:04] 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-02-08 05:42:04' and `end` < '2025-02-08 08:42:04' 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-02-08 08:42:17] Production.INFO: count ==327 [2025-02-08 08:42:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:42:04 - End Time 2025-02-08 08:42:04 [2025-02-08 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428564', 'tblTempUsageDetail_20' ) start [2025-02-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428564', 'tblTempUsageDetail_20' ) end [2025-02-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428564', 'tblTempVendorCDR_20' ) start [2025-02-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428564', 'tblTempVendorCDR_20' ) end [2025-02-08 08:42:17] Production.INFO: ProcessCDR(1,14428564,1,1,2) [2025-02-08 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428564', 'tblTempUsageDetail_20' ) start [2025-02-08 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428564', 'tblTempUsageDetail_20' ) end [2025-02-08 08:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:42:20] Production.INFO: ==11532== Releasing lock... [2025-02-08 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:42:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-08 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:43:05 [end_date_ymd] => 2025-02-08 08:43:05 [RateCDR] => 1 ) [2025-02-08 08:43: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` >= '2025-02-08 05:43:05' and `end` < '2025-02-08 08:43: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 ,'') [2025-02-08 08:43:18] Production.INFO: count ==328 [2025-02-08 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:43:05 - End Time 2025-02-08 08:43:05 [2025-02-08 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428569', 'tblTempUsageDetail_20' ) start [2025-02-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428569', 'tblTempUsageDetail_20' ) end [2025-02-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428569', 'tblTempVendorCDR_20' ) start [2025-02-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428569', 'tblTempVendorCDR_20' ) end [2025-02-08 08:43:18] Production.INFO: ProcessCDR(1,14428569,1,1,2) [2025-02-08 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428569', 'tblTempUsageDetail_20' ) start [2025-02-08 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428569', 'tblTempUsageDetail_20' ) end [2025-02-08 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:43:21] Production.INFO: ==11606== Releasing lock... [2025-02-08 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:44:05 [end_date_ymd] => 2025-02-08 08:44:05 [RateCDR] => 1 ) [2025-02-08 08:44: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` >= '2025-02-08 05:44:05' and `end` < '2025-02-08 08:44: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 ,'') [2025-02-08 08:44:18] Production.INFO: count ==330 [2025-02-08 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:44:05 - End Time 2025-02-08 08:44:05 [2025-02-08 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428574', 'tblTempUsageDetail_20' ) start [2025-02-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428574', 'tblTempUsageDetail_20' ) end [2025-02-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428574', 'tblTempVendorCDR_20' ) start [2025-02-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428574', 'tblTempVendorCDR_20' ) end [2025-02-08 08:44:18] Production.INFO: ProcessCDR(1,14428574,1,1,2) [2025-02-08 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428574', 'tblTempUsageDetail_20' ) start [2025-02-08 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428574', 'tblTempUsageDetail_20' ) end [2025-02-08 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:44:21] Production.INFO: ==11677== Releasing lock... [2025-02-08 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:45:05 [end_date_ymd] => 2025-02-08 08:45:05 [RateCDR] => 1 ) [2025-02-08 08:45: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` >= '2025-02-08 05:45:05' and `end` < '2025-02-08 08:45: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 ,'') [2025-02-08 08:45:18] Production.INFO: count ==330 [2025-02-08 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:45:05 - End Time 2025-02-08 08:45:05 [2025-02-08 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428579', 'tblTempUsageDetail_20' ) start [2025-02-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428579', 'tblTempUsageDetail_20' ) end [2025-02-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428579', 'tblTempVendorCDR_20' ) start [2025-02-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428579', 'tblTempVendorCDR_20' ) end [2025-02-08 08:45:18] Production.INFO: ProcessCDR(1,14428579,1,1,2) [2025-02-08 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428579', 'tblTempUsageDetail_20' ) start [2025-02-08 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428579', 'tblTempUsageDetail_20' ) end [2025-02-08 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:45:21] Production.INFO: ==11772== Releasing lock... [2025-02-08 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:46:05 [end_date_ymd] => 2025-02-08 08:46:05 [RateCDR] => 1 ) [2025-02-08 08:46: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` >= '2025-02-08 05:46:05' and `end` < '2025-02-08 08:46: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 ,'') [2025-02-08 08:46:18] Production.INFO: count ==330 [2025-02-08 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:46:05 - End Time 2025-02-08 08:46:05 [2025-02-08 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428584', 'tblTempUsageDetail_20' ) start [2025-02-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428584', 'tblTempUsageDetail_20' ) end [2025-02-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428584', 'tblTempVendorCDR_20' ) start [2025-02-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428584', 'tblTempVendorCDR_20' ) end [2025-02-08 08:46:18] Production.INFO: ProcessCDR(1,14428584,1,1,2) [2025-02-08 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428584', 'tblTempUsageDetail_20' ) start [2025-02-08 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428584', 'tblTempUsageDetail_20' ) end [2025-02-08 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:46:21] Production.INFO: ==11846== Releasing lock... [2025-02-08 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:47:05 [end_date_ymd] => 2025-02-08 08:47:05 [RateCDR] => 1 ) [2025-02-08 08:47: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` >= '2025-02-08 05:47:05' and `end` < '2025-02-08 08:47: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 ,'') [2025-02-08 08:47:19] Production.INFO: count ==330 [2025-02-08 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:47:05 - End Time 2025-02-08 08:47:05 [2025-02-08 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428589', 'tblTempUsageDetail_20' ) start [2025-02-08 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428589', 'tblTempUsageDetail_20' ) end [2025-02-08 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428589', 'tblTempVendorCDR_20' ) start [2025-02-08 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428589', 'tblTempVendorCDR_20' ) end [2025-02-08 08:47:19] Production.INFO: ProcessCDR(1,14428589,1,1,2) [2025-02-08 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428589', 'tblTempUsageDetail_20' ) start [2025-02-08 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428589', 'tblTempUsageDetail_20' ) end [2025-02-08 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:47:22] Production.INFO: ==11917== Releasing lock... [2025-02-08 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:48:05 [end_date_ymd] => 2025-02-08 08:48:05 [RateCDR] => 1 ) [2025-02-08 08:48: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` >= '2025-02-08 05:48:05' and `end` < '2025-02-08 08:48: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 ,'') [2025-02-08 08:48:17] Production.INFO: count ==330 [2025-02-08 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-08 05:48:05 - End Time 2025-02-08 08:48:05 [2025-02-08 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428594', 'tblTempUsageDetail_20' ) start [2025-02-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428594', 'tblTempUsageDetail_20' ) end [2025-02-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428594', 'tblTempVendorCDR_20' ) start [2025-02-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428594', 'tblTempVendorCDR_20' ) end [2025-02-08 08:48:17] Production.INFO: ProcessCDR(1,14428594,1,1,2) [2025-02-08 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428594', 'tblTempUsageDetail_20' ) start [2025-02-08 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428594', 'tblTempUsageDetail_20' ) end [2025-02-08 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:48:21] Production.INFO: ==11986== Releasing lock... [2025-02-08 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:49:05 [end_date_ymd] => 2025-02-08 08:49:05 [RateCDR] => 1 ) [2025-02-08 08:49: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` >= '2025-02-08 05:49:05' and `end` < '2025-02-08 08:49: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 ,'') [2025-02-08 08:49:19] Production.INFO: count ==330 [2025-02-08 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:49:05 - End Time 2025-02-08 08:49:05 [2025-02-08 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428599', 'tblTempUsageDetail_20' ) start [2025-02-08 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428599', 'tblTempUsageDetail_20' ) end [2025-02-08 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428599', 'tblTempVendorCDR_20' ) start [2025-02-08 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428599', 'tblTempVendorCDR_20' ) end [2025-02-08 08:49:19] Production.INFO: ProcessCDR(1,14428599,1,1,2) [2025-02-08 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428599', 'tblTempUsageDetail_20' ) start [2025-02-08 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428599', 'tblTempUsageDetail_20' ) end [2025-02-08 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:49:22] Production.INFO: ==12061== Releasing lock... [2025-02-08 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-08 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:50:06 [end_date_ymd] => 2025-02-08 08:50:06 [RateCDR] => 1 ) [2025-02-08 08:50: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-02-08 05:50:06' and `end` < '2025-02-08 08:50: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-02-08 08:50:19] Production.INFO: count ==333 [2025-02-08 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:50:06 - End Time 2025-02-08 08:50:06 [2025-02-08 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428605', 'tblTempUsageDetail_20' ) start [2025-02-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428605', 'tblTempUsageDetail_20' ) end [2025-02-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428605', 'tblTempVendorCDR_20' ) start [2025-02-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428605', 'tblTempVendorCDR_20' ) end [2025-02-08 08:50:19] Production.INFO: ProcessCDR(1,14428605,1,1,2) [2025-02-08 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428605', 'tblTempUsageDetail_20' ) start [2025-02-08 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428605', 'tblTempUsageDetail_20' ) end [2025-02-08 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:50:24] Production.INFO: ==12135== Releasing lock... [2025-02-08 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:50:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:51:05 [end_date_ymd] => 2025-02-08 08:51:05 [RateCDR] => 1 ) [2025-02-08 08:51: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` >= '2025-02-08 05:51:05' and `end` < '2025-02-08 08:51: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 ,'') [2025-02-08 08:51:18] Production.INFO: count ==345 [2025-02-08 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:51:05 - End Time 2025-02-08 08:51:05 [2025-02-08 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428610', 'tblTempUsageDetail_20' ) start [2025-02-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428610', 'tblTempUsageDetail_20' ) end [2025-02-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428610', 'tblTempVendorCDR_20' ) start [2025-02-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428610', 'tblTempVendorCDR_20' ) end [2025-02-08 08:51:18] Production.INFO: ProcessCDR(1,14428610,1,1,2) [2025-02-08 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428610', 'tblTempUsageDetail_20' ) start [2025-02-08 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428610', 'tblTempUsageDetail_20' ) end [2025-02-08 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:51:23] Production.INFO: ==12211== Releasing lock... [2025-02-08 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:52:05 [end_date_ymd] => 2025-02-08 08:52:05 [RateCDR] => 1 ) [2025-02-08 08:52: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` >= '2025-02-08 05:52:05' and `end` < '2025-02-08 08:52: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 ,'') [2025-02-08 08:52:18] Production.INFO: count ==346 [2025-02-08 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:52:05 - End Time 2025-02-08 08:52:05 [2025-02-08 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428615', 'tblTempUsageDetail_20' ) start [2025-02-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428615', 'tblTempUsageDetail_20' ) end [2025-02-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428615', 'tblTempVendorCDR_20' ) start [2025-02-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428615', 'tblTempVendorCDR_20' ) end [2025-02-08 08:52:18] Production.INFO: ProcessCDR(1,14428615,1,1,2) [2025-02-08 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428615', 'tblTempUsageDetail_20' ) start [2025-02-08 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428615', 'tblTempUsageDetail_20' ) end [2025-02-08 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:52:22] Production.INFO: ==12288== Releasing lock... [2025-02-08 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:53:05 [end_date_ymd] => 2025-02-08 08:53:05 [RateCDR] => 1 ) [2025-02-08 08:53: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` >= '2025-02-08 05:53:05' and `end` < '2025-02-08 08:53: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 ,'') [2025-02-08 08:53:18] Production.INFO: count ==346 [2025-02-08 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:53:05 - End Time 2025-02-08 08:53:05 [2025-02-08 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428620', 'tblTempUsageDetail_20' ) start [2025-02-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428620', 'tblTempUsageDetail_20' ) end [2025-02-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428620', 'tblTempVendorCDR_20' ) start [2025-02-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428620', 'tblTempVendorCDR_20' ) end [2025-02-08 08:53:18] Production.INFO: ProcessCDR(1,14428620,1,1,2) [2025-02-08 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428620', 'tblTempUsageDetail_20' ) start [2025-02-08 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428620', 'tblTempUsageDetail_20' ) end [2025-02-08 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:53:21] Production.INFO: ==12363== Releasing lock... [2025-02-08 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:54:05 [end_date_ymd] => 2025-02-08 08:54:05 [RateCDR] => 1 ) [2025-02-08 08:54: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` >= '2025-02-08 05:54:05' and `end` < '2025-02-08 08:54: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 ,'') [2025-02-08 08:54:18] Production.INFO: count ==354 [2025-02-08 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:54:05 - End Time 2025-02-08 08:54:05 [2025-02-08 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428625', 'tblTempUsageDetail_20' ) start [2025-02-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428625', 'tblTempUsageDetail_20' ) end [2025-02-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428625', 'tblTempVendorCDR_20' ) start [2025-02-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428625', 'tblTempVendorCDR_20' ) end [2025-02-08 08:54:18] Production.INFO: ProcessCDR(1,14428625,1,1,2) [2025-02-08 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428625', 'tblTempUsageDetail_20' ) start [2025-02-08 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428625', 'tblTempUsageDetail_20' ) end [2025-02-08 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:54:21] Production.INFO: ==12474== Releasing lock... [2025-02-08 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:55:05 [end_date_ymd] => 2025-02-08 08:55:05 [RateCDR] => 1 ) [2025-02-08 08:55: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` >= '2025-02-08 05:55:05' and `end` < '2025-02-08 08:55: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 ,'') [2025-02-08 08:55:19] Production.INFO: count ==360 [2025-02-08 08:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:55:05 - End Time 2025-02-08 08:55:05 [2025-02-08 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428630', 'tblTempUsageDetail_20' ) start [2025-02-08 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428630', 'tblTempUsageDetail_20' ) end [2025-02-08 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428630', 'tblTempVendorCDR_20' ) start [2025-02-08 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428630', 'tblTempVendorCDR_20' ) end [2025-02-08 08:55:19] Production.INFO: ProcessCDR(1,14428630,1,1,2) [2025-02-08 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428630', 'tblTempUsageDetail_20' ) start [2025-02-08 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428630', 'tblTempUsageDetail_20' ) end [2025-02-08 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:55:23] Production.INFO: ==12546== Releasing lock... [2025-02-08 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:55:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:56:05 [end_date_ymd] => 2025-02-08 08:56:05 [RateCDR] => 1 ) [2025-02-08 08:56: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` >= '2025-02-08 05:56:05' and `end` < '2025-02-08 08:56: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 ,'') [2025-02-08 08:56:18] Production.INFO: count ==364 [2025-02-08 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:56:05 - End Time 2025-02-08 08:56:05 [2025-02-08 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428635', 'tblTempUsageDetail_20' ) start [2025-02-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428635', 'tblTempUsageDetail_20' ) end [2025-02-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428635', 'tblTempVendorCDR_20' ) start [2025-02-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428635', 'tblTempVendorCDR_20' ) end [2025-02-08 08:56:19] Production.INFO: ProcessCDR(1,14428635,1,1,2) [2025-02-08 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428635', 'tblTempUsageDetail_20' ) start [2025-02-08 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428635', 'tblTempUsageDetail_20' ) end [2025-02-08 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:56:23] Production.INFO: ==12617== Releasing lock... [2025-02-08 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:56:23] Production.INFO: 31 MB #Memory Used# [2025-02-08 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:57:05 [end_date_ymd] => 2025-02-08 08:57:05 [RateCDR] => 1 ) [2025-02-08 08:57: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` >= '2025-02-08 05:57:05' and `end` < '2025-02-08 08:57: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 ,'') [2025-02-08 08:57:18] Production.INFO: count ==365 [2025-02-08 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 05:57:05 - End Time 2025-02-08 08:57:05 [2025-02-08 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428640', 'tblTempUsageDetail_20' ) start [2025-02-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428640', 'tblTempUsageDetail_20' ) end [2025-02-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428640', 'tblTempVendorCDR_20' ) start [2025-02-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428640', 'tblTempVendorCDR_20' ) end [2025-02-08 08:57:18] Production.INFO: ProcessCDR(1,14428640,1,1,2) [2025-02-08 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428640', 'tblTempUsageDetail_20' ) start [2025-02-08 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428640', 'tblTempUsageDetail_20' ) end [2025-02-08 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:57:23] Production.INFO: ==12688== Releasing lock... [2025-02-08 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:57:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-08 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:58:05 [end_date_ymd] => 2025-02-08 08:58:05 [RateCDR] => 1 ) [2025-02-08 08:58: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` >= '2025-02-08 05:58:05' and `end` < '2025-02-08 08:58: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 ,'') [2025-02-08 08:58:20] Production.INFO: count ==369 [2025-02-08 08:58:20] Production.ERROR: pbx CDR StartTime 2025-02-08 05:58:05 - End Time 2025-02-08 08:58:05 [2025-02-08 08:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428645', 'tblTempUsageDetail_20' ) start [2025-02-08 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428645', 'tblTempUsageDetail_20' ) end [2025-02-08 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428645', 'tblTempVendorCDR_20' ) start [2025-02-08 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428645', 'tblTempVendorCDR_20' ) end [2025-02-08 08:58:20] Production.INFO: ProcessCDR(1,14428645,1,1,2) [2025-02-08 08:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428645', 'tblTempUsageDetail_20' ) start [2025-02-08 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428645', 'tblTempUsageDetail_20' ) end [2025-02-08 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:58:24] Production.INFO: ==12758== Releasing lock... [2025-02-08 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:58:24] Production.INFO: 31 MB #Memory Used# [2025-02-08 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 05:59:05 [end_date_ymd] => 2025-02-08 08:59:05 [RateCDR] => 1 ) [2025-02-08 08:59: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` >= '2025-02-08 05:59:05' and `end` < '2025-02-08 08:59: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 ,'') [2025-02-08 08:59:19] Production.INFO: count ==369 [2025-02-08 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 05:59:05 - End Time 2025-02-08 08:59:05 [2025-02-08 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428650', 'tblTempUsageDetail_20' ) start [2025-02-08 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428650', 'tblTempUsageDetail_20' ) end [2025-02-08 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428650', 'tblTempVendorCDR_20' ) start [2025-02-08 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428650', 'tblTempVendorCDR_20' ) end [2025-02-08 08:59:19] Production.INFO: ProcessCDR(1,14428650,1,1,2) [2025-02-08 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428650', 'tblTempUsageDetail_20' ) start [2025-02-08 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428650', 'tblTempUsageDetail_20' ) end [2025-02-08 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 08:59:22] Production.INFO: ==12829== Releasing lock... [2025-02-08 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 08:59:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:00:05 [end_date_ymd] => 2025-02-08 09:00:05 [RateCDR] => 1 ) [2025-02-08 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 06:00:05' and `end` < '2025-02-08 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 09:00:18] Production.INFO: count ==371 [2025-02-08 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:00:05 - End Time 2025-02-08 09:00:05 [2025-02-08 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428656', 'tblTempUsageDetail_20' ) start [2025-02-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428656', 'tblTempUsageDetail_20' ) end [2025-02-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428656', 'tblTempVendorCDR_20' ) start [2025-02-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428656', 'tblTempVendorCDR_20' ) end [2025-02-08 09:00:18] Production.INFO: ProcessCDR(1,14428656,1,1,2) [2025-02-08 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428656', 'tblTempUsageDetail_20' ) start [2025-02-08 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428656', 'tblTempUsageDetail_20' ) end [2025-02-08 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:00:22] Production.INFO: ==12902== Releasing lock... [2025-02-08 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:00:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:01:05 [end_date_ymd] => 2025-02-08 09:01:05 [RateCDR] => 1 ) [2025-02-08 09: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` >= '2025-02-08 06:01:05' and `end` < '2025-02-08 09: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 ,'') [2025-02-08 09:01:18] Production.INFO: count ==372 [2025-02-08 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:01:05 - End Time 2025-02-08 09:01:05 [2025-02-08 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428661', 'tblTempUsageDetail_20' ) start [2025-02-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428661', 'tblTempUsageDetail_20' ) end [2025-02-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428661', 'tblTempVendorCDR_20' ) start [2025-02-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428661', 'tblTempVendorCDR_20' ) end [2025-02-08 09:01:19] Production.INFO: ProcessCDR(1,14428661,1,1,2) [2025-02-08 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428661', 'tblTempUsageDetail_20' ) start [2025-02-08 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428661', 'tblTempUsageDetail_20' ) end [2025-02-08 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:01:22] Production.INFO: ==12989== Releasing lock... [2025-02-08 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:01:22] Production.INFO: 31 MB #Memory Used# [2025-02-08 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:02:05 [end_date_ymd] => 2025-02-08 09:02:05 [RateCDR] => 1 ) [2025-02-08 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 06:02:05' and `end` < '2025-02-08 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 09:02:17] Production.INFO: count ==387 [2025-02-08 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:02:05 - End Time 2025-02-08 09:02:05 [2025-02-08 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428664', 'tblTempUsageDetail_20' ) start [2025-02-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428664', 'tblTempUsageDetail_20' ) end [2025-02-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428664', 'tblTempVendorCDR_20' ) start [2025-02-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428664', 'tblTempVendorCDR_20' ) end [2025-02-08 09:02:18] Production.INFO: ProcessCDR(1,14428664,1,1,2) [2025-02-08 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428664', 'tblTempUsageDetail_20' ) start [2025-02-08 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428664', 'tblTempUsageDetail_20' ) end [2025-02-08 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:02:21] Production.INFO: ==13059== Releasing lock... [2025-02-08 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:03:05 [end_date_ymd] => 2025-02-08 09:03:05 [RateCDR] => 1 ) [2025-02-08 09:03: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` >= '2025-02-08 06:03:05' and `end` < '2025-02-08 09:03: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 ,'') [2025-02-08 09:03:19] Production.INFO: count ==393 [2025-02-08 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:03:05 - End Time 2025-02-08 09:03:05 [2025-02-08 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428671', 'tblTempUsageDetail_20' ) start [2025-02-08 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428671', 'tblTempUsageDetail_20' ) end [2025-02-08 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428671', 'tblTempVendorCDR_20' ) start [2025-02-08 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428671', 'tblTempVendorCDR_20' ) end [2025-02-08 09:03:20] Production.INFO: ProcessCDR(1,14428671,1,1,2) [2025-02-08 09:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428671', 'tblTempUsageDetail_20' ) start [2025-02-08 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428671', 'tblTempUsageDetail_20' ) end [2025-02-08 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:03:24] Production.INFO: ==13137== Releasing lock... [2025-02-08 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:03:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:04:05 [end_date_ymd] => 2025-02-08 09:04:05 [RateCDR] => 1 ) [2025-02-08 09:04: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` >= '2025-02-08 06:04:05' and `end` < '2025-02-08 09:04: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 ,'') [2025-02-08 09:04:19] Production.INFO: count ==399 [2025-02-08 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:04:05 - End Time 2025-02-08 09:04:05 [2025-02-08 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428676', 'tblTempUsageDetail_20' ) start [2025-02-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428676', 'tblTempUsageDetail_20' ) end [2025-02-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428676', 'tblTempVendorCDR_20' ) start [2025-02-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428676', 'tblTempVendorCDR_20' ) end [2025-02-08 09:04:19] Production.INFO: ProcessCDR(1,14428676,1,1,2) [2025-02-08 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428676', 'tblTempUsageDetail_20' ) start [2025-02-08 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428676', 'tblTempUsageDetail_20' ) end [2025-02-08 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:04:22] Production.INFO: ==13212== Releasing lock... [2025-02-08 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:04:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:05:05 [end_date_ymd] => 2025-02-08 09:05:05 [RateCDR] => 1 ) [2025-02-08 09:05: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` >= '2025-02-08 06:05:05' and `end` < '2025-02-08 09:05: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 ,'') [2025-02-08 09:05:17] Production.INFO: count ==403 [2025-02-08 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:05:05 - End Time 2025-02-08 09:05:05 [2025-02-08 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428681', 'tblTempUsageDetail_20' ) start [2025-02-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428681', 'tblTempUsageDetail_20' ) end [2025-02-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428681', 'tblTempVendorCDR_20' ) start [2025-02-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428681', 'tblTempVendorCDR_20' ) end [2025-02-08 09:05:18] Production.INFO: ProcessCDR(1,14428681,1,1,2) [2025-02-08 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428681', 'tblTempUsageDetail_20' ) start [2025-02-08 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428681', 'tblTempUsageDetail_20' ) end [2025-02-08 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:05:21] Production.INFO: ==13287== Releasing lock... [2025-02-08 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:06:05 [end_date_ymd] => 2025-02-08 09:06:05 [RateCDR] => 1 ) [2025-02-08 09:06: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` >= '2025-02-08 06:06:05' and `end` < '2025-02-08 09:06: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 ,'') [2025-02-08 09:06:19] Production.INFO: count ==409 [2025-02-08 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:06:05 - End Time 2025-02-08 09:06:05 [2025-02-08 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428686', 'tblTempUsageDetail_20' ) start [2025-02-08 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428686', 'tblTempUsageDetail_20' ) end [2025-02-08 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428686', 'tblTempVendorCDR_20' ) start [2025-02-08 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428686', 'tblTempVendorCDR_20' ) end [2025-02-08 09:06:19] Production.INFO: ProcessCDR(1,14428686,1,1,2) [2025-02-08 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428686', 'tblTempUsageDetail_20' ) start [2025-02-08 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428686', 'tblTempUsageDetail_20' ) end [2025-02-08 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:06:23] Production.INFO: ==13366== Releasing lock... [2025-02-08 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:06:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-08 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:07:05 [end_date_ymd] => 2025-02-08 09:07:05 [RateCDR] => 1 ) [2025-02-08 09:07: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` >= '2025-02-08 06:07:05' and `end` < '2025-02-08 09:07: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 ,'') [2025-02-08 09:07:18] Production.INFO: count ==414 [2025-02-08 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:07:05 - End Time 2025-02-08 09:07:05 [2025-02-08 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428691', 'tblTempUsageDetail_20' ) start [2025-02-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428691', 'tblTempUsageDetail_20' ) end [2025-02-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428691', 'tblTempVendorCDR_20' ) start [2025-02-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428691', 'tblTempVendorCDR_20' ) end [2025-02-08 09:07:18] Production.INFO: ProcessCDR(1,14428691,1,1,2) [2025-02-08 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428691', 'tblTempUsageDetail_20' ) start [2025-02-08 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428691', 'tblTempUsageDetail_20' ) end [2025-02-08 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:07:21] Production.INFO: ==13449== Releasing lock... [2025-02-08 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-08 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:08:05 [end_date_ymd] => 2025-02-08 09:08:05 [RateCDR] => 1 ) [2025-02-08 09:08: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` >= '2025-02-08 06:08:05' and `end` < '2025-02-08 09:08: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 ,'') [2025-02-08 09:08:19] Production.INFO: count ==426 [2025-02-08 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:08:05 - End Time 2025-02-08 09:08:05 [2025-02-08 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428696', 'tblTempUsageDetail_20' ) start [2025-02-08 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428696', 'tblTempUsageDetail_20' ) end [2025-02-08 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428696', 'tblTempVendorCDR_20' ) start [2025-02-08 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428696', 'tblTempVendorCDR_20' ) end [2025-02-08 09:08:19] Production.INFO: ProcessCDR(1,14428696,1,1,2) [2025-02-08 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428696', 'tblTempUsageDetail_20' ) start [2025-02-08 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428696', 'tblTempUsageDetail_20' ) end [2025-02-08 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:08:22] Production.INFO: ==13522== Releasing lock... [2025-02-08 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:09:04 [end_date_ymd] => 2025-02-08 09:09:04 [RateCDR] => 1 ) [2025-02-08 09:09:04] 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-02-08 06:09:04' and `end` < '2025-02-08 09:09:04' 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-02-08 09:09:17] Production.INFO: count ==429 [2025-02-08 09:09:17] Production.ERROR: pbx CDR StartTime 2025-02-08 06:09:04 - End Time 2025-02-08 09:09:04 [2025-02-08 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428701', 'tblTempUsageDetail_20' ) start [2025-02-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428701', 'tblTempUsageDetail_20' ) end [2025-02-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428701', 'tblTempVendorCDR_20' ) start [2025-02-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428701', 'tblTempVendorCDR_20' ) end [2025-02-08 09:09:17] Production.INFO: ProcessCDR(1,14428701,1,1,2) [2025-02-08 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428701', 'tblTempUsageDetail_20' ) start [2025-02-08 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428701', 'tblTempUsageDetail_20' ) end [2025-02-08 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:09:21] Production.INFO: ==13594== Releasing lock... [2025-02-08 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:10:06 [end_date_ymd] => 2025-02-08 09:10:06 [RateCDR] => 1 ) [2025-02-08 09:10: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-02-08 06:10:06' and `end` < '2025-02-08 09:10: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-02-08 09:10:19] Production.INFO: count ==441 [2025-02-08 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:10:06 - End Time 2025-02-08 09:10:06 [2025-02-08 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428707', 'tblTempUsageDetail_20' ) start [2025-02-08 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428707', 'tblTempUsageDetail_20' ) end [2025-02-08 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428707', 'tblTempVendorCDR_20' ) start [2025-02-08 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428707', 'tblTempVendorCDR_20' ) end [2025-02-08 09:10:19] Production.INFO: ProcessCDR(1,14428707,1,1,2) [2025-02-08 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428707', 'tblTempUsageDetail_20' ) start [2025-02-08 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428707', 'tblTempUsageDetail_20' ) end [2025-02-08 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:10:22] Production.INFO: ==13712== Releasing lock... [2025-02-08 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-08 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:11:04 [end_date_ymd] => 2025-02-08 09:11:04 [RateCDR] => 1 ) [2025-02-08 09:11:04] 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-02-08 06:11:04' and `end` < '2025-02-08 09:11:04' 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-02-08 09:11:18] Production.INFO: count ==452 [2025-02-08 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:11:04 - End Time 2025-02-08 09:11:04 [2025-02-08 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428712', 'tblTempUsageDetail_20' ) start [2025-02-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428712', 'tblTempUsageDetail_20' ) end [2025-02-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428712', 'tblTempVendorCDR_20' ) start [2025-02-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428712', 'tblTempVendorCDR_20' ) end [2025-02-08 09:11:18] Production.INFO: ProcessCDR(1,14428712,1,1,2) [2025-02-08 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428712', 'tblTempUsageDetail_20' ) start [2025-02-08 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428712', 'tblTempUsageDetail_20' ) end [2025-02-08 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:11:23] Production.INFO: ==13788== Releasing lock... [2025-02-08 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:11:23] Production.INFO: 32 MB #Memory Used# [2025-02-08 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:12:05 [end_date_ymd] => 2025-02-08 09:12:05 [RateCDR] => 1 ) [2025-02-08 09:12: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` >= '2025-02-08 06:12:05' and `end` < '2025-02-08 09:12: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 ,'') [2025-02-08 09:12:18] Production.INFO: count ==452 [2025-02-08 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:12:05 - End Time 2025-02-08 09:12:05 [2025-02-08 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428717', 'tblTempUsageDetail_20' ) start [2025-02-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428717', 'tblTempUsageDetail_20' ) end [2025-02-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428717', 'tblTempVendorCDR_20' ) start [2025-02-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428717', 'tblTempVendorCDR_20' ) end [2025-02-08 09:12:18] Production.INFO: ProcessCDR(1,14428717,1,1,2) [2025-02-08 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428717', 'tblTempUsageDetail_20' ) start [2025-02-08 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428717', 'tblTempUsageDetail_20' ) end [2025-02-08 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:12:21] Production.INFO: ==13860== Releasing lock... [2025-02-08 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:12:21] Production.INFO: 32 MB #Memory Used# [2025-02-08 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:13:06 [end_date_ymd] => 2025-02-08 09:13:06 [RateCDR] => 1 ) [2025-02-08 09:13: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-02-08 06:13:06' and `end` < '2025-02-08 09:13: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-02-08 09:13:19] Production.INFO: count ==454 [2025-02-08 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:13:06 - End Time 2025-02-08 09:13:06 [2025-02-08 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428722', 'tblTempUsageDetail_20' ) start [2025-02-08 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428722', 'tblTempUsageDetail_20' ) end [2025-02-08 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428722', 'tblTempVendorCDR_20' ) start [2025-02-08 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428722', 'tblTempVendorCDR_20' ) end [2025-02-08 09:13:19] Production.INFO: ProcessCDR(1,14428722,1,1,2) [2025-02-08 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428722', 'tblTempUsageDetail_20' ) start [2025-02-08 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428722', 'tblTempUsageDetail_20' ) end [2025-02-08 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:13:22] Production.INFO: ==13945== Releasing lock... [2025-02-08 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:13:22] Production.INFO: 32 MB #Memory Used# [2025-02-08 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:14:05 [end_date_ymd] => 2025-02-08 09:14:05 [RateCDR] => 1 ) [2025-02-08 09:14: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` >= '2025-02-08 06:14:05' and `end` < '2025-02-08 09:14: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 ,'') [2025-02-08 09:14:18] Production.INFO: count ==469 [2025-02-08 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:14:05 - End Time 2025-02-08 09:14:05 [2025-02-08 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428727', 'tblTempUsageDetail_20' ) start [2025-02-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428727', 'tblTempUsageDetail_20' ) end [2025-02-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428727', 'tblTempVendorCDR_20' ) start [2025-02-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428727', 'tblTempVendorCDR_20' ) end [2025-02-08 09:14:18] Production.INFO: ProcessCDR(1,14428727,1,1,2) [2025-02-08 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428727', 'tblTempUsageDetail_20' ) start [2025-02-08 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428727', 'tblTempUsageDetail_20' ) end [2025-02-08 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:14:22] Production.INFO: ==14057== Releasing lock... [2025-02-08 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:14:22] Production.INFO: 32 MB #Memory Used# [2025-02-08 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:15:05 [end_date_ymd] => 2025-02-08 09:15:05 [RateCDR] => 1 ) [2025-02-08 09:15: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` >= '2025-02-08 06:15:05' and `end` < '2025-02-08 09:15: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 ,'') [2025-02-08 09:15:18] Production.INFO: count ==477 [2025-02-08 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:15:05 - End Time 2025-02-08 09:15:05 [2025-02-08 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428732', 'tblTempUsageDetail_20' ) start [2025-02-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428732', 'tblTempUsageDetail_20' ) end [2025-02-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428732', 'tblTempVendorCDR_20' ) start [2025-02-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428732', 'tblTempVendorCDR_20' ) end [2025-02-08 09:15:18] Production.INFO: ProcessCDR(1,14428732,1,1,2) [2025-02-08 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428732', 'tblTempUsageDetail_20' ) start [2025-02-08 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428732', 'tblTempUsageDetail_20' ) end [2025-02-08 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:15:21] Production.INFO: ==14153== Releasing lock... [2025-02-08 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:15:21] Production.INFO: 32 MB #Memory Used# [2025-02-08 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:16:05 [end_date_ymd] => 2025-02-08 09:16:05 [RateCDR] => 1 ) [2025-02-08 09:16: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` >= '2025-02-08 06:16:05' and `end` < '2025-02-08 09:16: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 ,'') [2025-02-08 09:16:18] Production.INFO: count ==493 [2025-02-08 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:16:05 - End Time 2025-02-08 09:16:05 [2025-02-08 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428737', 'tblTempUsageDetail_20' ) start [2025-02-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428737', 'tblTempUsageDetail_20' ) end [2025-02-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428737', 'tblTempVendorCDR_20' ) start [2025-02-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428737', 'tblTempVendorCDR_20' ) end [2025-02-08 09:16:18] Production.INFO: ProcessCDR(1,14428737,1,1,2) [2025-02-08 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428737', 'tblTempUsageDetail_20' ) start [2025-02-08 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428737', 'tblTempUsageDetail_20' ) end [2025-02-08 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:16:21] Production.INFO: ==14261== Releasing lock... [2025-02-08 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-08 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:17:05 [end_date_ymd] => 2025-02-08 09:17:05 [RateCDR] => 1 ) [2025-02-08 09:17: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` >= '2025-02-08 06:17:05' and `end` < '2025-02-08 09:17: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 ,'') [2025-02-08 09:17:20] Production.INFO: count ==501 [2025-02-08 09:17:20] Production.ERROR: pbx CDR StartTime 2025-02-08 06:17:05 - End Time 2025-02-08 09:17:05 [2025-02-08 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428742', 'tblTempUsageDetail_20' ) start [2025-02-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428742', 'tblTempUsageDetail_20' ) end [2025-02-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428742', 'tblTempVendorCDR_20' ) start [2025-02-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428742', 'tblTempVendorCDR_20' ) end [2025-02-08 09:17:20] Production.INFO: ProcessCDR(1,14428742,1,1,2) [2025-02-08 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428742', 'tblTempUsageDetail_20' ) start [2025-02-08 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428742', 'tblTempUsageDetail_20' ) end [2025-02-08 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:17:23] Production.INFO: ==14355== Releasing lock... [2025-02-08 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:17:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-08 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:18:04 [end_date_ymd] => 2025-02-08 09:18:04 [RateCDR] => 1 ) [2025-02-08 09:18:04] 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-02-08 06:18:04' and `end` < '2025-02-08 09:18:04' 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-02-08 09:18:17] Production.INFO: count ==504 [2025-02-08 09:18:17] Production.ERROR: pbx CDR StartTime 2025-02-08 06:18:04 - End Time 2025-02-08 09:18:04 [2025-02-08 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428744', 'tblTempUsageDetail_20' ) start [2025-02-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428744', 'tblTempUsageDetail_20' ) end [2025-02-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428744', 'tblTempVendorCDR_20' ) start [2025-02-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428744', 'tblTempVendorCDR_20' ) end [2025-02-08 09:18:17] Production.INFO: ProcessCDR(1,14428744,1,1,2) [2025-02-08 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428744', 'tblTempUsageDetail_20' ) start [2025-02-08 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428744', 'tblTempUsageDetail_20' ) end [2025-02-08 09:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:18:20] Production.INFO: ==14457== Releasing lock... [2025-02-08 09:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-08 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:19:05 [end_date_ymd] => 2025-02-08 09:19:05 [RateCDR] => 1 ) [2025-02-08 09:19: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` >= '2025-02-08 06:19:05' and `end` < '2025-02-08 09:19: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 ,'') [2025-02-08 09:19:18] Production.INFO: count ==505 [2025-02-08 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:19:05 - End Time 2025-02-08 09:19:05 [2025-02-08 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428752', 'tblTempUsageDetail_20' ) start [2025-02-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428752', 'tblTempUsageDetail_20' ) end [2025-02-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428752', 'tblTempVendorCDR_20' ) start [2025-02-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428752', 'tblTempVendorCDR_20' ) end [2025-02-08 09:19:18] Production.INFO: ProcessCDR(1,14428752,1,1,2) [2025-02-08 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428752', 'tblTempUsageDetail_20' ) start [2025-02-08 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428752', 'tblTempUsageDetail_20' ) end [2025-02-08 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:19:22] Production.INFO: ==14556== Releasing lock... [2025-02-08 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:19:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-08 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:20:05 [end_date_ymd] => 2025-02-08 09:20:05 [RateCDR] => 1 ) [2025-02-08 09:20: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` >= '2025-02-08 06:20:05' and `end` < '2025-02-08 09:20: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 ,'') [2025-02-08 09:20:18] Production.INFO: count ==512 [2025-02-08 09:20:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:20:05 - End Time 2025-02-08 09:20:05 [2025-02-08 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428757', 'tblTempUsageDetail_20' ) start [2025-02-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428757', 'tblTempUsageDetail_20' ) end [2025-02-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428757', 'tblTempVendorCDR_20' ) start [2025-02-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428757', 'tblTempVendorCDR_20' ) end [2025-02-08 09:20:18] Production.INFO: ProcessCDR(1,14428757,1,1,2) [2025-02-08 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428757', 'tblTempUsageDetail_20' ) start [2025-02-08 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428757', 'tblTempUsageDetail_20' ) end [2025-02-08 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:20:22] Production.INFO: ==14656== Releasing lock... [2025-02-08 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:20:22] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:21:05 [end_date_ymd] => 2025-02-08 09:21:05 [RateCDR] => 1 ) [2025-02-08 09:21: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` >= '2025-02-08 06:21:05' and `end` < '2025-02-08 09:21: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 ,'') [2025-02-08 09:21:19] Production.INFO: count ==525 [2025-02-08 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:21:05 - End Time 2025-02-08 09:21:05 [2025-02-08 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428763', 'tblTempUsageDetail_20' ) start [2025-02-08 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428763', 'tblTempUsageDetail_20' ) end [2025-02-08 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428763', 'tblTempVendorCDR_20' ) start [2025-02-08 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428763', 'tblTempVendorCDR_20' ) end [2025-02-08 09:21:19] Production.INFO: ProcessCDR(1,14428763,1,1,2) [2025-02-08 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428763', 'tblTempUsageDetail_20' ) start [2025-02-08 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428763', 'tblTempUsageDetail_20' ) end [2025-02-08 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:21:22] Production.INFO: ==14764== Releasing lock... [2025-02-08 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-08 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:22:05 [end_date_ymd] => 2025-02-08 09:22:05 [RateCDR] => 1 ) [2025-02-08 09:22: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` >= '2025-02-08 06:22:05' and `end` < '2025-02-08 09:22: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 ,'') [2025-02-08 09:22:18] Production.INFO: count ==532 [2025-02-08 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:22:05 - End Time 2025-02-08 09:22:05 [2025-02-08 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428768', 'tblTempUsageDetail_20' ) start [2025-02-08 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428768', 'tblTempUsageDetail_20' ) end [2025-02-08 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428768', 'tblTempVendorCDR_20' ) start [2025-02-08 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428768', 'tblTempVendorCDR_20' ) end [2025-02-08 09:22:18] Production.INFO: ProcessCDR(1,14428768,1,1,2) [2025-02-08 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428768', 'tblTempUsageDetail_20' ) start [2025-02-08 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428768', 'tblTempUsageDetail_20' ) end [2025-02-08 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:22:23] Production.INFO: ==14864== Releasing lock... [2025-02-08 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:22:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-08 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:23:05 [end_date_ymd] => 2025-02-08 09:23:05 [RateCDR] => 1 ) [2025-02-08 09:23: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` >= '2025-02-08 06:23:05' and `end` < '2025-02-08 09:23: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 ,'') [2025-02-08 09:23:18] Production.INFO: count ==538 [2025-02-08 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:23:05 - End Time 2025-02-08 09:23:05 [2025-02-08 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428773', 'tblTempUsageDetail_20' ) start [2025-02-08 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428773', 'tblTempUsageDetail_20' ) end [2025-02-08 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428773', 'tblTempVendorCDR_20' ) start [2025-02-08 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428773', 'tblTempVendorCDR_20' ) end [2025-02-08 09:23:18] Production.INFO: ProcessCDR(1,14428773,1,1,2) [2025-02-08 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428773', 'tblTempUsageDetail_20' ) start [2025-02-08 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428773', 'tblTempUsageDetail_20' ) end [2025-02-08 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:23:21] Production.INFO: ==14971== Releasing lock... [2025-02-08 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:23:21] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:24:06 [end_date_ymd] => 2025-02-08 09:24:06 [RateCDR] => 1 ) [2025-02-08 09:24: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-02-08 06:24:06' and `end` < '2025-02-08 09:24: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-02-08 09:24:19] Production.INFO: count ==544 [2025-02-08 09:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:24:06 - End Time 2025-02-08 09:24:06 [2025-02-08 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428778', 'tblTempUsageDetail_20' ) start [2025-02-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428778', 'tblTempUsageDetail_20' ) end [2025-02-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428778', 'tblTempVendorCDR_20' ) start [2025-02-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428778', 'tblTempVendorCDR_20' ) end [2025-02-08 09:24:19] Production.INFO: ProcessCDR(1,14428778,1,1,2) [2025-02-08 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428778', 'tblTempUsageDetail_20' ) start [2025-02-08 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428778', 'tblTempUsageDetail_20' ) end [2025-02-08 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:24:23] Production.INFO: ==15080== Releasing lock... [2025-02-08 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:24:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-08 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:25:05 [end_date_ymd] => 2025-02-08 09:25:05 [RateCDR] => 1 ) [2025-02-08 09:25: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` >= '2025-02-08 06:25:05' and `end` < '2025-02-08 09:25: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 ,'') [2025-02-08 09:25:18] Production.INFO: count ==544 [2025-02-08 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:25:05 - End Time 2025-02-08 09:25:05 [2025-02-08 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428783', 'tblTempUsageDetail_20' ) start [2025-02-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428783', 'tblTempUsageDetail_20' ) end [2025-02-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428783', 'tblTempVendorCDR_20' ) start [2025-02-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428783', 'tblTempVendorCDR_20' ) end [2025-02-08 09:25:18] Production.INFO: ProcessCDR(1,14428783,1,1,2) [2025-02-08 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428783', 'tblTempUsageDetail_20' ) start [2025-02-08 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428783', 'tblTempUsageDetail_20' ) end [2025-02-08 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:25:21] Production.INFO: ==15218== Releasing lock... [2025-02-08 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-08 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:26:05 [end_date_ymd] => 2025-02-08 09:26:05 [RateCDR] => 1 ) [2025-02-08 09:26: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` >= '2025-02-08 06:26:05' and `end` < '2025-02-08 09:26: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 ,'') [2025-02-08 09:26:18] Production.INFO: count ==542 [2025-02-08 09:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:26:05 - End Time 2025-02-08 09:26:05 [2025-02-08 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428788', 'tblTempUsageDetail_20' ) start [2025-02-08 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428788', 'tblTempUsageDetail_20' ) end [2025-02-08 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428788', 'tblTempVendorCDR_20' ) start [2025-02-08 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428788', 'tblTempVendorCDR_20' ) end [2025-02-08 09:26:18] Production.INFO: ProcessCDR(1,14428788,1,1,2) [2025-02-08 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428788', 'tblTempUsageDetail_20' ) start [2025-02-08 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428788', 'tblTempUsageDetail_20' ) end [2025-02-08 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:26:21] Production.INFO: ==15317== Releasing lock... [2025-02-08 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-08 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:27:05 [end_date_ymd] => 2025-02-08 09:27:05 [RateCDR] => 1 ) [2025-02-08 09:27: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` >= '2025-02-08 06:27:05' and `end` < '2025-02-08 09:27: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 ,'') [2025-02-08 09:27:18] Production.INFO: count ==548 [2025-02-08 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:27:05 - End Time 2025-02-08 09:27:05 [2025-02-08 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428793', 'tblTempUsageDetail_20' ) start [2025-02-08 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428793', 'tblTempUsageDetail_20' ) end [2025-02-08 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428793', 'tblTempVendorCDR_20' ) start [2025-02-08 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428793', 'tblTempVendorCDR_20' ) end [2025-02-08 09:27:18] Production.INFO: ProcessCDR(1,14428793,1,1,2) [2025-02-08 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428793', 'tblTempUsageDetail_20' ) start [2025-02-08 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428793', 'tblTempUsageDetail_20' ) end [2025-02-08 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:27:21] Production.INFO: ==15391== Releasing lock... [2025-02-08 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:27:21] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:28:05 [end_date_ymd] => 2025-02-08 09:28:05 [RateCDR] => 1 ) [2025-02-08 09:28: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` >= '2025-02-08 06:28:05' and `end` < '2025-02-08 09:28: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 ,'') [2025-02-08 09:28:18] Production.INFO: count ==561 [2025-02-08 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:28:05 - End Time 2025-02-08 09:28:05 [2025-02-08 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428798', 'tblTempUsageDetail_20' ) start [2025-02-08 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428798', 'tblTempUsageDetail_20' ) end [2025-02-08 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428798', 'tblTempVendorCDR_20' ) start [2025-02-08 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428798', 'tblTempVendorCDR_20' ) end [2025-02-08 09:28:18] Production.INFO: ProcessCDR(1,14428798,1,1,2) [2025-02-08 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428798', 'tblTempUsageDetail_20' ) start [2025-02-08 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428798', 'tblTempUsageDetail_20' ) end [2025-02-08 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:28:21] Production.INFO: ==15463== Releasing lock... [2025-02-08 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:28:21] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:29:05 [end_date_ymd] => 2025-02-08 09:29:05 [RateCDR] => 1 ) [2025-02-08 09:29: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` >= '2025-02-08 06:29:05' and `end` < '2025-02-08 09:29: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 ,'') [2025-02-08 09:29:19] Production.INFO: count ==566 [2025-02-08 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:29:05 - End Time 2025-02-08 09:29:05 [2025-02-08 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428803', 'tblTempUsageDetail_20' ) start [2025-02-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428803', 'tblTempUsageDetail_20' ) end [2025-02-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428803', 'tblTempVendorCDR_20' ) start [2025-02-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428803', 'tblTempVendorCDR_20' ) end [2025-02-08 09:29:19] Production.INFO: ProcessCDR(1,14428803,1,1,2) [2025-02-08 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428803', 'tblTempUsageDetail_20' ) start [2025-02-08 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428803', 'tblTempUsageDetail_20' ) end [2025-02-08 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:29:23] Production.INFO: ==15538== Releasing lock... [2025-02-08 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:29:23] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:30:06 [end_date_ymd] => 2025-02-08 09:30:06 [RateCDR] => 1 ) [2025-02-08 09:30: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-02-08 06:30:06' and `end` < '2025-02-08 09:30: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-02-08 09:30:20] Production.INFO: count ==581 [2025-02-08 09:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 06:30:06 - End Time 2025-02-08 09:30:06 [2025-02-08 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428809', 'tblTempUsageDetail_20' ) start [2025-02-08 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428809', 'tblTempUsageDetail_20' ) end [2025-02-08 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428809', 'tblTempVendorCDR_20' ) start [2025-02-08 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428809', 'tblTempVendorCDR_20' ) end [2025-02-08 09:30:20] Production.INFO: ProcessCDR(1,14428809,1,1,2) [2025-02-08 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428809', 'tblTempUsageDetail_20' ) start [2025-02-08 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428809', 'tblTempUsageDetail_20' ) end [2025-02-08 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:30:23] Production.INFO: ==15613== Releasing lock... [2025-02-08 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:31:05 [end_date_ymd] => 2025-02-08 09:31:05 [RateCDR] => 1 ) [2025-02-08 09:31: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` >= '2025-02-08 06:31:05' and `end` < '2025-02-08 09:31: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 ,'') [2025-02-08 09:31:18] Production.INFO: count ==592 [2025-02-08 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:31:05 - End Time 2025-02-08 09:31:05 [2025-02-08 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428814', 'tblTempUsageDetail_20' ) start [2025-02-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428814', 'tblTempUsageDetail_20' ) end [2025-02-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428814', 'tblTempVendorCDR_20' ) start [2025-02-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428814', 'tblTempVendorCDR_20' ) end [2025-02-08 09:31:18] Production.INFO: ProcessCDR(1,14428814,1,1,2) [2025-02-08 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428814', 'tblTempUsageDetail_20' ) start [2025-02-08 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428814', 'tblTempUsageDetail_20' ) end [2025-02-08 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:31:23] Production.INFO: ==15688== Releasing lock... [2025-02-08 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:31:23] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:32:06 [end_date_ymd] => 2025-02-08 09:32:06 [RateCDR] => 1 ) [2025-02-08 09:32: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-02-08 06:32:06' and `end` < '2025-02-08 09:32: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-02-08 09:32:18] Production.INFO: count ==592 [2025-02-08 09:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:32:06 - End Time 2025-02-08 09:32:06 [2025-02-08 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428819', 'tblTempUsageDetail_20' ) start [2025-02-08 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428819', 'tblTempUsageDetail_20' ) end [2025-02-08 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428819', 'tblTempVendorCDR_20' ) start [2025-02-08 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428819', 'tblTempVendorCDR_20' ) end [2025-02-08 09:32:19] Production.INFO: ProcessCDR(1,14428819,1,1,2) [2025-02-08 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428819', 'tblTempUsageDetail_20' ) start [2025-02-08 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428819', 'tblTempUsageDetail_20' ) end [2025-02-08 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:32:22] Production.INFO: ==15761== Releasing lock... [2025-02-08 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:32:22] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:33:05 [end_date_ymd] => 2025-02-08 09:33:05 [RateCDR] => 1 ) [2025-02-08 09:33: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` >= '2025-02-08 06:33:05' and `end` < '2025-02-08 09:33: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 ,'') [2025-02-08 09:33:19] Production.INFO: count ==592 [2025-02-08 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:33:05 - End Time 2025-02-08 09:33:05 [2025-02-08 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428824', 'tblTempUsageDetail_20' ) start [2025-02-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428824', 'tblTempUsageDetail_20' ) end [2025-02-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428824', 'tblTempVendorCDR_20' ) start [2025-02-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428824', 'tblTempVendorCDR_20' ) end [2025-02-08 09:33:19] Production.INFO: ProcessCDR(1,14428824,1,1,2) [2025-02-08 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428824', 'tblTempUsageDetail_20' ) start [2025-02-08 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428824', 'tblTempUsageDetail_20' ) end [2025-02-08 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:33:22] Production.INFO: ==15835== Releasing lock... [2025-02-08 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:33:22] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:34:05 [end_date_ymd] => 2025-02-08 09:34:05 [RateCDR] => 1 ) [2025-02-08 09:34: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` >= '2025-02-08 06:34:05' and `end` < '2025-02-08 09:34: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 ,'') [2025-02-08 09:34:18] Production.INFO: count ==593 [2025-02-08 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:34:05 - End Time 2025-02-08 09:34:05 [2025-02-08 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428829', 'tblTempUsageDetail_20' ) start [2025-02-08 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428829', 'tblTempUsageDetail_20' ) end [2025-02-08 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428829', 'tblTempVendorCDR_20' ) start [2025-02-08 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428829', 'tblTempVendorCDR_20' ) end [2025-02-08 09:34:18] Production.INFO: ProcessCDR(1,14428829,1,1,2) [2025-02-08 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428829', 'tblTempUsageDetail_20' ) start [2025-02-08 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428829', 'tblTempUsageDetail_20' ) end [2025-02-08 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:34:23] Production.INFO: ==15911== Releasing lock... [2025-02-08 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:34:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:35:05 [end_date_ymd] => 2025-02-08 09:35:05 [RateCDR] => 1 ) [2025-02-08 09:35: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` >= '2025-02-08 06:35:05' and `end` < '2025-02-08 09:35: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 ,'') [2025-02-08 09:35:18] Production.INFO: count ==593 [2025-02-08 09:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:35:05 - End Time 2025-02-08 09:35:05 [2025-02-08 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428834', 'tblTempUsageDetail_20' ) start [2025-02-08 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428834', 'tblTempUsageDetail_20' ) end [2025-02-08 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428834', 'tblTempVendorCDR_20' ) start [2025-02-08 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428834', 'tblTempVendorCDR_20' ) end [2025-02-08 09:35:18] Production.INFO: ProcessCDR(1,14428834,1,1,2) [2025-02-08 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428834', 'tblTempUsageDetail_20' ) start [2025-02-08 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428834', 'tblTempUsageDetail_20' ) end [2025-02-08 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:35:22] Production.INFO: ==15980== Releasing lock... [2025-02-08 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:36:05 [end_date_ymd] => 2025-02-08 09:36:05 [RateCDR] => 1 ) [2025-02-08 09:36: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` >= '2025-02-08 06:36:05' and `end` < '2025-02-08 09:36: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 ,'') [2025-02-08 09:36:19] Production.INFO: count ==593 [2025-02-08 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:36:05 - End Time 2025-02-08 09:36:05 [2025-02-08 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428839', 'tblTempUsageDetail_20' ) start [2025-02-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428839', 'tblTempUsageDetail_20' ) end [2025-02-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428839', 'tblTempVendorCDR_20' ) start [2025-02-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428839', 'tblTempVendorCDR_20' ) end [2025-02-08 09:36:19] Production.INFO: ProcessCDR(1,14428839,1,1,2) [2025-02-08 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428839', 'tblTempUsageDetail_20' ) start [2025-02-08 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428839', 'tblTempUsageDetail_20' ) end [2025-02-08 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:36:22] Production.INFO: ==16050== Releasing lock... [2025-02-08 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:37:05 [end_date_ymd] => 2025-02-08 09:37:05 [RateCDR] => 1 ) [2025-02-08 09:37: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` >= '2025-02-08 06:37:05' and `end` < '2025-02-08 09:37: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 ,'') [2025-02-08 09:37:18] Production.INFO: count ==593 [2025-02-08 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:37:05 - End Time 2025-02-08 09:37:05 [2025-02-08 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428844', 'tblTempUsageDetail_20' ) start [2025-02-08 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428844', 'tblTempUsageDetail_20' ) end [2025-02-08 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428844', 'tblTempVendorCDR_20' ) start [2025-02-08 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428844', 'tblTempVendorCDR_20' ) end [2025-02-08 09:37:18] Production.INFO: ProcessCDR(1,14428844,1,1,2) [2025-02-08 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428844', 'tblTempUsageDetail_20' ) start [2025-02-08 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428844', 'tblTempUsageDetail_20' ) end [2025-02-08 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:37:22] Production.INFO: ==16128== Releasing lock... [2025-02-08 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:38:05 [end_date_ymd] => 2025-02-08 09:38:05 [RateCDR] => 1 ) [2025-02-08 09:38: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` >= '2025-02-08 06:38:05' and `end` < '2025-02-08 09:38: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 ,'') [2025-02-08 09:38:18] Production.INFO: count ==599 [2025-02-08 09:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:38:05 - End Time 2025-02-08 09:38:05 [2025-02-08 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428849', 'tblTempUsageDetail_20' ) start [2025-02-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428849', 'tblTempUsageDetail_20' ) end [2025-02-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428849', 'tblTempVendorCDR_20' ) start [2025-02-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428849', 'tblTempVendorCDR_20' ) end [2025-02-08 09:38:18] Production.INFO: ProcessCDR(1,14428849,1,1,2) [2025-02-08 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428849', 'tblTempUsageDetail_20' ) start [2025-02-08 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428849', 'tblTempUsageDetail_20' ) end [2025-02-08 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:38:21] Production.INFO: ==16202== Releasing lock... [2025-02-08 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:39:05 [end_date_ymd] => 2025-02-08 09:39:05 [RateCDR] => 1 ) [2025-02-08 09:39: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` >= '2025-02-08 06:39:05' and `end` < '2025-02-08 09:39: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 ,'') [2025-02-08 09:39:18] Production.INFO: count ==600 [2025-02-08 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:39:05 - End Time 2025-02-08 09:39:05 [2025-02-08 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428854', 'tblTempUsageDetail_20' ) start [2025-02-08 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428854', 'tblTempUsageDetail_20' ) end [2025-02-08 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428854', 'tblTempVendorCDR_20' ) start [2025-02-08 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428854', 'tblTempVendorCDR_20' ) end [2025-02-08 09:39:18] Production.INFO: ProcessCDR(1,14428854,1,1,2) [2025-02-08 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428854', 'tblTempUsageDetail_20' ) start [2025-02-08 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428854', 'tblTempUsageDetail_20' ) end [2025-02-08 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:39:22] Production.INFO: ==16274== Releasing lock... [2025-02-08 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:40:05 [end_date_ymd] => 2025-02-08 09:40:05 [RateCDR] => 1 ) [2025-02-08 09:40: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` >= '2025-02-08 06:40:05' and `end` < '2025-02-08 09:40: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 ,'') [2025-02-08 09:40:18] Production.INFO: count ==603 [2025-02-08 09:40:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:40:05 - End Time 2025-02-08 09:40:05 [2025-02-08 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428860', 'tblTempUsageDetail_20' ) start [2025-02-08 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428860', 'tblTempUsageDetail_20' ) end [2025-02-08 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428860', 'tblTempVendorCDR_20' ) start [2025-02-08 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428860', 'tblTempVendorCDR_20' ) end [2025-02-08 09:40:18] Production.INFO: ProcessCDR(1,14428860,1,1,2) [2025-02-08 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428860', 'tblTempUsageDetail_20' ) start [2025-02-08 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428860', 'tblTempUsageDetail_20' ) end [2025-02-08 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:40:22] Production.INFO: ==16348== Releasing lock... [2025-02-08 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:41:05 [end_date_ymd] => 2025-02-08 09:41:05 [RateCDR] => 1 ) [2025-02-08 09:41: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` >= '2025-02-08 06:41:05' and `end` < '2025-02-08 09:41: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 ,'') [2025-02-08 09:41:18] Production.INFO: count ==618 [2025-02-08 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:41:05 - End Time 2025-02-08 09:41:05 [2025-02-08 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428865', 'tblTempUsageDetail_20' ) start [2025-02-08 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428865', 'tblTempUsageDetail_20' ) end [2025-02-08 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428865', 'tblTempVendorCDR_20' ) start [2025-02-08 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428865', 'tblTempVendorCDR_20' ) end [2025-02-08 09:41:18] Production.INFO: ProcessCDR(1,14428865,1,1,2) [2025-02-08 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428865', 'tblTempUsageDetail_20' ) start [2025-02-08 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428865', 'tblTempUsageDetail_20' ) end [2025-02-08 09:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:41:22] Production.INFO: ==16464== Releasing lock... [2025-02-08 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:42:05 [end_date_ymd] => 2025-02-08 09:42:05 [RateCDR] => 1 ) [2025-02-08 09:42: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` >= '2025-02-08 06:42:05' and `end` < '2025-02-08 09:42: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 ,'') [2025-02-08 09:42:18] Production.INFO: count ==621 [2025-02-08 09:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:42:05 - End Time 2025-02-08 09:42:05 [2025-02-08 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428870', 'tblTempUsageDetail_20' ) start [2025-02-08 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428870', 'tblTempUsageDetail_20' ) end [2025-02-08 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428870', 'tblTempVendorCDR_20' ) start [2025-02-08 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428870', 'tblTempVendorCDR_20' ) end [2025-02-08 09:42:18] Production.INFO: ProcessCDR(1,14428870,1,1,2) [2025-02-08 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428870', 'tblTempUsageDetail_20' ) start [2025-02-08 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428870', 'tblTempUsageDetail_20' ) end [2025-02-08 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:42:23] Production.INFO: ==16537== Releasing lock... [2025-02-08 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:42:23] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:43:05 [end_date_ymd] => 2025-02-08 09:43:05 [RateCDR] => 1 ) [2025-02-08 09:43: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` >= '2025-02-08 06:43:05' and `end` < '2025-02-08 09:43: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 ,'') [2025-02-08 09:43:19] Production.INFO: count ==624 [2025-02-08 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:43:05 - End Time 2025-02-08 09:43:05 [2025-02-08 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428875', 'tblTempUsageDetail_20' ) start [2025-02-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428875', 'tblTempUsageDetail_20' ) end [2025-02-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428875', 'tblTempVendorCDR_20' ) start [2025-02-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428875', 'tblTempVendorCDR_20' ) end [2025-02-08 09:43:19] Production.INFO: ProcessCDR(1,14428875,1,1,2) [2025-02-08 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428875', 'tblTempUsageDetail_20' ) start [2025-02-08 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428875', 'tblTempUsageDetail_20' ) end [2025-02-08 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:43:24] Production.INFO: ==16612== Releasing lock... [2025-02-08 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:44:04 [end_date_ymd] => 2025-02-08 09:44:04 [RateCDR] => 1 ) [2025-02-08 09:44:04] 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-02-08 06:44:04' and `end` < '2025-02-08 09:44:04' 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-02-08 09:44:18] Production.INFO: count ==632 [2025-02-08 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:44:04 - End Time 2025-02-08 09:44:04 [2025-02-08 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428880', 'tblTempUsageDetail_20' ) start [2025-02-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428880', 'tblTempUsageDetail_20' ) end [2025-02-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428880', 'tblTempVendorCDR_20' ) start [2025-02-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428880', 'tblTempVendorCDR_20' ) end [2025-02-08 09:44:18] Production.INFO: ProcessCDR(1,14428880,1,1,2) [2025-02-08 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428880', 'tblTempUsageDetail_20' ) start [2025-02-08 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428880', 'tblTempUsageDetail_20' ) end [2025-02-08 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:44:22] Production.INFO: ==16687== Releasing lock... [2025-02-08 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:45:05 [end_date_ymd] => 2025-02-08 09:45:05 [RateCDR] => 1 ) [2025-02-08 09:45: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` >= '2025-02-08 06:45:05' and `end` < '2025-02-08 09:45: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 ,'') [2025-02-08 09:45:18] Production.INFO: count ==653 [2025-02-08 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:45:05 - End Time 2025-02-08 09:45:05 [2025-02-08 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428885', 'tblTempUsageDetail_20' ) start [2025-02-08 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428885', 'tblTempUsageDetail_20' ) end [2025-02-08 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428885', 'tblTempVendorCDR_20' ) start [2025-02-08 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428885', 'tblTempVendorCDR_20' ) end [2025-02-08 09:45:18] Production.INFO: ProcessCDR(1,14428885,1,1,2) [2025-02-08 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428885', 'tblTempUsageDetail_20' ) start [2025-02-08 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428885', 'tblTempUsageDetail_20' ) end [2025-02-08 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:45:21] Production.INFO: ==16768== Releasing lock... [2025-02-08 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:46:05 [end_date_ymd] => 2025-02-08 09:46:05 [RateCDR] => 1 ) [2025-02-08 09:46: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` >= '2025-02-08 06:46:05' and `end` < '2025-02-08 09:46: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 ,'') [2025-02-08 09:46:19] Production.INFO: count ==654 [2025-02-08 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:46:05 - End Time 2025-02-08 09:46:05 [2025-02-08 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428890', 'tblTempUsageDetail_20' ) start [2025-02-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428890', 'tblTempUsageDetail_20' ) end [2025-02-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428890', 'tblTempVendorCDR_20' ) start [2025-02-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428890', 'tblTempVendorCDR_20' ) end [2025-02-08 09:46:19] Production.INFO: ProcessCDR(1,14428890,1,1,2) [2025-02-08 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428890', 'tblTempUsageDetail_20' ) start [2025-02-08 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428890', 'tblTempUsageDetail_20' ) end [2025-02-08 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:46:24] Production.INFO: ==16841== Releasing lock... [2025-02-08 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:46:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:47:05 [end_date_ymd] => 2025-02-08 09:47:05 [RateCDR] => 1 ) [2025-02-08 09:47: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` >= '2025-02-08 06:47:05' and `end` < '2025-02-08 09:47: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 ,'') [2025-02-08 09:47:19] Production.INFO: count ==654 [2025-02-08 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:47:05 - End Time 2025-02-08 09:47:05 [2025-02-08 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428895', 'tblTempUsageDetail_20' ) start [2025-02-08 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428895', 'tblTempUsageDetail_20' ) end [2025-02-08 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428895', 'tblTempVendorCDR_20' ) start [2025-02-08 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428895', 'tblTempVendorCDR_20' ) end [2025-02-08 09:47:20] Production.INFO: ProcessCDR(1,14428895,1,1,2) [2025-02-08 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428895', 'tblTempUsageDetail_20' ) start [2025-02-08 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428895', 'tblTempUsageDetail_20' ) end [2025-02-08 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:47:23] Production.INFO: ==16917== Releasing lock... [2025-02-08 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:48:05 [end_date_ymd] => 2025-02-08 09:48:05 [RateCDR] => 1 ) [2025-02-08 09:48: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` >= '2025-02-08 06:48:05' and `end` < '2025-02-08 09:48: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 ,'') [2025-02-08 09:48:18] Production.INFO: count ==660 [2025-02-08 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:48:05 - End Time 2025-02-08 09:48:05 [2025-02-08 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428900', 'tblTempUsageDetail_20' ) start [2025-02-08 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428900', 'tblTempUsageDetail_20' ) end [2025-02-08 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428900', 'tblTempVendorCDR_20' ) start [2025-02-08 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428900', 'tblTempVendorCDR_20' ) end [2025-02-08 09:48:18] Production.INFO: ProcessCDR(1,14428900,1,1,2) [2025-02-08 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428900', 'tblTempUsageDetail_20' ) start [2025-02-08 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428900', 'tblTempUsageDetail_20' ) end [2025-02-08 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:48:21] Production.INFO: ==16994== Releasing lock... [2025-02-08 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-08 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:49:05 [end_date_ymd] => 2025-02-08 09:49:05 [RateCDR] => 1 ) [2025-02-08 09:49: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` >= '2025-02-08 06:49:05' and `end` < '2025-02-08 09:49: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 ,'') [2025-02-08 09:49:18] Production.INFO: count ==661 [2025-02-08 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:49:05 - End Time 2025-02-08 09:49:05 [2025-02-08 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428905', 'tblTempUsageDetail_20' ) start [2025-02-08 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428905', 'tblTempUsageDetail_20' ) end [2025-02-08 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428905', 'tblTempVendorCDR_20' ) start [2025-02-08 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428905', 'tblTempVendorCDR_20' ) end [2025-02-08 09:49:18] Production.INFO: ProcessCDR(1,14428905,1,1,2) [2025-02-08 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428905', 'tblTempUsageDetail_20' ) start [2025-02-08 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428905', 'tblTempUsageDetail_20' ) end [2025-02-08 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:49:23] Production.INFO: ==17077== Releasing lock... [2025-02-08 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:49:23] Production.INFO: 33 MB #Memory Used# [2025-02-08 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:50:06 [end_date_ymd] => 2025-02-08 09:50:06 [RateCDR] => 1 ) [2025-02-08 09:50: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-02-08 06:50:06' and `end` < '2025-02-08 09:50: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-02-08 09:50:19] Production.INFO: count ==684 [2025-02-08 09:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:50:06 - End Time 2025-02-08 09:50:06 [2025-02-08 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428911', 'tblTempUsageDetail_20' ) start [2025-02-08 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428911', 'tblTempUsageDetail_20' ) end [2025-02-08 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428911', 'tblTempVendorCDR_20' ) start [2025-02-08 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428911', 'tblTempVendorCDR_20' ) end [2025-02-08 09:50:19] Production.INFO: ProcessCDR(1,14428911,1,1,2) [2025-02-08 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428911', 'tblTempUsageDetail_20' ) start [2025-02-08 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428911', 'tblTempUsageDetail_20' ) end [2025-02-08 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:50:24] Production.INFO: ==17151== Releasing lock... [2025-02-08 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:50:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-08 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:51:05 [end_date_ymd] => 2025-02-08 09:51:05 [RateCDR] => 1 ) [2025-02-08 09:51: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` >= '2025-02-08 06:51:05' and `end` < '2025-02-08 09:51: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 ,'') [2025-02-08 09:51:18] Production.INFO: count ==718 [2025-02-08 09:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:51:05 - End Time 2025-02-08 09:51:05 [2025-02-08 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428916', 'tblTempUsageDetail_20' ) start [2025-02-08 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428916', 'tblTempUsageDetail_20' ) end [2025-02-08 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428916', 'tblTempVendorCDR_20' ) start [2025-02-08 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428916', 'tblTempVendorCDR_20' ) end [2025-02-08 09:51:18] Production.INFO: ProcessCDR(1,14428916,1,1,2) [2025-02-08 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428916', 'tblTempUsageDetail_20' ) start [2025-02-08 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428916', 'tblTempUsageDetail_20' ) end [2025-02-08 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:51:22] Production.INFO: ==17226== Releasing lock... [2025-02-08 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:51:22] Production.INFO: 34 MB #Memory Used# [2025-02-08 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:52:05 [end_date_ymd] => 2025-02-08 09:52:05 [RateCDR] => 1 ) [2025-02-08 09:52: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` >= '2025-02-08 06:52:05' and `end` < '2025-02-08 09:52: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 ,'') [2025-02-08 09:52:18] Production.INFO: count ==725 [2025-02-08 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:52:05 - End Time 2025-02-08 09:52:05 [2025-02-08 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428921', 'tblTempUsageDetail_20' ) start [2025-02-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428921', 'tblTempUsageDetail_20' ) end [2025-02-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428921', 'tblTempVendorCDR_20' ) start [2025-02-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428921', 'tblTempVendorCDR_20' ) end [2025-02-08 09:52:18] Production.INFO: ProcessCDR(1,14428921,1,1,2) [2025-02-08 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428921', 'tblTempUsageDetail_20' ) start [2025-02-08 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428921', 'tblTempUsageDetail_20' ) end [2025-02-08 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:52:21] Production.INFO: ==17301== Releasing lock... [2025-02-08 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:53:04 [end_date_ymd] => 2025-02-08 09:53:04 [RateCDR] => 1 ) [2025-02-08 09:53:04] 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-02-08 06:53:04' and `end` < '2025-02-08 09:53:04' 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-02-08 09:53:17] Production.INFO: count ==725 [2025-02-08 09:53:17] Production.ERROR: pbx CDR StartTime 2025-02-08 06:53:04 - End Time 2025-02-08 09:53:04 [2025-02-08 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428926', 'tblTempUsageDetail_20' ) start [2025-02-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428926', 'tblTempUsageDetail_20' ) end [2025-02-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428926', 'tblTempVendorCDR_20' ) start [2025-02-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428926', 'tblTempVendorCDR_20' ) end [2025-02-08 09:53:17] Production.INFO: ProcessCDR(1,14428926,1,1,2) [2025-02-08 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428926', 'tblTempUsageDetail_20' ) start [2025-02-08 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428926', 'tblTempUsageDetail_20' ) end [2025-02-08 09:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:53:20] Production.INFO: ==17377== Releasing lock... [2025-02-08 09:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:53:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:54:05 [end_date_ymd] => 2025-02-08 09:54:05 [RateCDR] => 1 ) [2025-02-08 09:54: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` >= '2025-02-08 06:54:05' and `end` < '2025-02-08 09:54: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 ,'') [2025-02-08 09:54:18] Production.INFO: count ==725 [2025-02-08 09:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:54:05 - End Time 2025-02-08 09:54:05 [2025-02-08 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428931', 'tblTempUsageDetail_20' ) start [2025-02-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428931', 'tblTempUsageDetail_20' ) end [2025-02-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428931', 'tblTempVendorCDR_20' ) start [2025-02-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428931', 'tblTempVendorCDR_20' ) end [2025-02-08 09:54:18] Production.INFO: ProcessCDR(1,14428931,1,1,2) [2025-02-08 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428931', 'tblTempUsageDetail_20' ) start [2025-02-08 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428931', 'tblTempUsageDetail_20' ) end [2025-02-08 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:54:21] Production.INFO: ==17455== Releasing lock... [2025-02-08 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:55:05 [end_date_ymd] => 2025-02-08 09:55:05 [RateCDR] => 1 ) [2025-02-08 09:55: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` >= '2025-02-08 06:55:05' and `end` < '2025-02-08 09:55: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 ,'') [2025-02-08 09:55:18] Production.INFO: count ==729 [2025-02-08 09:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:55:05 - End Time 2025-02-08 09:55:05 [2025-02-08 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428936', 'tblTempUsageDetail_20' ) start [2025-02-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428936', 'tblTempUsageDetail_20' ) end [2025-02-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428936', 'tblTempVendorCDR_20' ) start [2025-02-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428936', 'tblTempVendorCDR_20' ) end [2025-02-08 09:55:18] Production.INFO: ProcessCDR(1,14428936,1,1,2) [2025-02-08 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428936', 'tblTempUsageDetail_20' ) start [2025-02-08 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428936', 'tblTempUsageDetail_20' ) end [2025-02-08 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:55:22] Production.INFO: ==17528== Releasing lock... [2025-02-08 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:56:05 [end_date_ymd] => 2025-02-08 09:56:05 [RateCDR] => 1 ) [2025-02-08 09:56: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` >= '2025-02-08 06:56:05' and `end` < '2025-02-08 09:56: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 ,'') [2025-02-08 09:56:18] Production.INFO: count ==729 [2025-02-08 09:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:56:05 - End Time 2025-02-08 09:56:05 [2025-02-08 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428941', 'tblTempUsageDetail_20' ) start [2025-02-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428941', 'tblTempUsageDetail_20' ) end [2025-02-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428941', 'tblTempVendorCDR_20' ) start [2025-02-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428941', 'tblTempVendorCDR_20' ) end [2025-02-08 09:56:18] Production.INFO: ProcessCDR(1,14428941,1,1,2) [2025-02-08 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428941', 'tblTempUsageDetail_20' ) start [2025-02-08 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428941', 'tblTempUsageDetail_20' ) end [2025-02-08 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:56:21] Production.INFO: ==17643== Releasing lock... [2025-02-08 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:57:05 [end_date_ymd] => 2025-02-08 09:57:05 [RateCDR] => 1 ) [2025-02-08 09:57: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` >= '2025-02-08 06:57:05' and `end` < '2025-02-08 09:57: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 ,'') [2025-02-08 09:57:19] Production.INFO: count ==729 [2025-02-08 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:57:05 - End Time 2025-02-08 09:57:05 [2025-02-08 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428946', 'tblTempUsageDetail_20' ) start [2025-02-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428946', 'tblTempUsageDetail_20' ) end [2025-02-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428946', 'tblTempVendorCDR_20' ) start [2025-02-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428946', 'tblTempVendorCDR_20' ) end [2025-02-08 09:57:19] Production.INFO: ProcessCDR(1,14428946,1,1,2) [2025-02-08 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428946', 'tblTempUsageDetail_20' ) start [2025-02-08 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428946', 'tblTempUsageDetail_20' ) end [2025-02-08 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:57:22] Production.INFO: ==17717== Releasing lock... [2025-02-08 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:58:05 [end_date_ymd] => 2025-02-08 09:58:05 [RateCDR] => 1 ) [2025-02-08 09:58: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` >= '2025-02-08 06:58:05' and `end` < '2025-02-08 09:58: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 ,'') [2025-02-08 09:58:18] Production.INFO: count ==734 [2025-02-08 09:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 06:58:05 - End Time 2025-02-08 09:58:05 [2025-02-08 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428951', 'tblTempUsageDetail_20' ) start [2025-02-08 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428951', 'tblTempUsageDetail_20' ) end [2025-02-08 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428951', 'tblTempVendorCDR_20' ) start [2025-02-08 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428951', 'tblTempVendorCDR_20' ) end [2025-02-08 09:58:19] Production.INFO: ProcessCDR(1,14428951,1,1,2) [2025-02-08 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428951', 'tblTempUsageDetail_20' ) start [2025-02-08 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428951', 'tblTempUsageDetail_20' ) end [2025-02-08 09:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:58:22] Production.INFO: ==17791== Releasing lock... [2025-02-08 09:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:58:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-08 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 06:59:05 [end_date_ymd] => 2025-02-08 09:59:05 [RateCDR] => 1 ) [2025-02-08 09:59: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` >= '2025-02-08 06:59:05' and `end` < '2025-02-08 09:59: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 ,'') [2025-02-08 09:59:18] Production.INFO: count ==737 [2025-02-08 09:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 06:59:05 - End Time 2025-02-08 09:59:05 [2025-02-08 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428956', 'tblTempUsageDetail_20' ) start [2025-02-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428956', 'tblTempUsageDetail_20' ) end [2025-02-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428956', 'tblTempVendorCDR_20' ) start [2025-02-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428956', 'tblTempVendorCDR_20' ) end [2025-02-08 09:59:18] Production.INFO: ProcessCDR(1,14428956,1,1,2) [2025-02-08 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428956', 'tblTempUsageDetail_20' ) start [2025-02-08 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428956', 'tblTempUsageDetail_20' ) end [2025-02-08 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 09:59:21] Production.INFO: ==17862== Releasing lock... [2025-02-08 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 09:59:21] Production.INFO: 34 MB #Memory Used# [2025-02-08 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:00:06 [end_date_ymd] => 2025-02-08 10:00:06 [RateCDR] => 1 ) [2025-02-08 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 07:00:06' and `end` < '2025-02-08 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 10:00:19] Production.INFO: count ==748 [2025-02-08 10:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:00:06 - End Time 2025-02-08 10:00:06 [2025-02-08 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428962', 'tblTempUsageDetail_20' ) start [2025-02-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428962', 'tblTempUsageDetail_20' ) end [2025-02-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428962', 'tblTempVendorCDR_20' ) start [2025-02-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428962', 'tblTempVendorCDR_20' ) end [2025-02-08 10:00:19] Production.INFO: ProcessCDR(1,14428962,1,1,2) [2025-02-08 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428962', 'tblTempUsageDetail_20' ) start [2025-02-08 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428962', 'tblTempUsageDetail_20' ) end [2025-02-08 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:00:23] Production.INFO: ==17944== Releasing lock... [2025-02-08 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:00:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-08 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:01:05 [end_date_ymd] => 2025-02-08 10:01:05 [RateCDR] => 1 ) [2025-02-08 10: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` >= '2025-02-08 07:01:05' and `end` < '2025-02-08 10: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 ,'') [2025-02-08 10:01:20] Production.INFO: count ==769 [2025-02-08 10:01:20] Production.ERROR: pbx CDR StartTime 2025-02-08 07:01:05 - End Time 2025-02-08 10:01:05 [2025-02-08 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428967', 'tblTempUsageDetail_20' ) start [2025-02-08 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428967', 'tblTempUsageDetail_20' ) end [2025-02-08 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428967', 'tblTempVendorCDR_20' ) start [2025-02-08 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428967', 'tblTempVendorCDR_20' ) end [2025-02-08 10:01:20] Production.INFO: ProcessCDR(1,14428967,1,1,2) [2025-02-08 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428967', 'tblTempUsageDetail_20' ) start [2025-02-08 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428967', 'tblTempUsageDetail_20' ) end [2025-02-08 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:01:23] Production.INFO: ==18041== Releasing lock... [2025-02-08 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-08 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:02:04 [end_date_ymd] => 2025-02-08 10:02:04 [RateCDR] => 1 ) [2025-02-08 10:02:04] 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-02-08 07:02:04' and `end` < '2025-02-08 10:02:04' 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-02-08 10:02:18] Production.INFO: count ==776 [2025-02-08 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:02:04 - End Time 2025-02-08 10:02:04 [2025-02-08 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428972', 'tblTempUsageDetail_20' ) start [2025-02-08 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428972', 'tblTempUsageDetail_20' ) end [2025-02-08 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428972', 'tblTempVendorCDR_20' ) start [2025-02-08 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428972', 'tblTempVendorCDR_20' ) end [2025-02-08 10:02:19] Production.INFO: ProcessCDR(1,14428972,1,1,2) [2025-02-08 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428972', 'tblTempUsageDetail_20' ) start [2025-02-08 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428972', 'tblTempUsageDetail_20' ) end [2025-02-08 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:02:22] Production.INFO: ==18114== Releasing lock... [2025-02-08 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:02:22] Production.INFO: 34 MB #Memory Used# [2025-02-08 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:03:05 [end_date_ymd] => 2025-02-08 10:03:05 [RateCDR] => 1 ) [2025-02-08 10:03: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` >= '2025-02-08 07:03:05' and `end` < '2025-02-08 10:03: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 ,'') [2025-02-08 10:03:18] Production.INFO: count ==783 [2025-02-08 10:03:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:03:05 - End Time 2025-02-08 10:03:05 [2025-02-08 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428977', 'tblTempUsageDetail_20' ) start [2025-02-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428977', 'tblTempUsageDetail_20' ) end [2025-02-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428977', 'tblTempVendorCDR_20' ) start [2025-02-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428977', 'tblTempVendorCDR_20' ) end [2025-02-08 10:03:19] Production.INFO: ProcessCDR(1,14428977,1,1,2) [2025-02-08 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428977', 'tblTempUsageDetail_20' ) start [2025-02-08 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428977', 'tblTempUsageDetail_20' ) end [2025-02-08 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:03:22] Production.INFO: ==18190== Releasing lock... [2025-02-08 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-08 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:04:05 [end_date_ymd] => 2025-02-08 10:04:05 [RateCDR] => 1 ) [2025-02-08 10:04: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` >= '2025-02-08 07:04:05' and `end` < '2025-02-08 10:04: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 ,'') [2025-02-08 10:04:19] Production.INFO: count ==791 [2025-02-08 10:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:04:05 - End Time 2025-02-08 10:04:05 [2025-02-08 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428982', 'tblTempUsageDetail_20' ) start [2025-02-08 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428982', 'tblTempUsageDetail_20' ) end [2025-02-08 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428982', 'tblTempVendorCDR_20' ) start [2025-02-08 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428982', 'tblTempVendorCDR_20' ) end [2025-02-08 10:04:19] Production.INFO: ProcessCDR(1,14428982,1,1,2) [2025-02-08 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428982', 'tblTempUsageDetail_20' ) start [2025-02-08 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428982', 'tblTempUsageDetail_20' ) end [2025-02-08 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:04:23] Production.INFO: ==18268== Releasing lock... [2025-02-08 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-08 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:05:05 [end_date_ymd] => 2025-02-08 10:05:05 [RateCDR] => 1 ) [2025-02-08 10:05: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` >= '2025-02-08 07:05:05' and `end` < '2025-02-08 10:05: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 ,'') [2025-02-08 10:05:18] Production.INFO: count ==802 [2025-02-08 10:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:05:05 - End Time 2025-02-08 10:05:05 [2025-02-08 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428987', 'tblTempUsageDetail_20' ) start [2025-02-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428987', 'tblTempUsageDetail_20' ) end [2025-02-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428987', 'tblTempVendorCDR_20' ) start [2025-02-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428987', 'tblTempVendorCDR_20' ) end [2025-02-08 10:05:18] Production.INFO: ProcessCDR(1,14428987,1,1,2) [2025-02-08 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428987', 'tblTempUsageDetail_20' ) start [2025-02-08 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428987', 'tblTempUsageDetail_20' ) end [2025-02-08 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:05:21] Production.INFO: ==18344== Releasing lock... [2025-02-08 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:05:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-08 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:06:06 [end_date_ymd] => 2025-02-08 10:06:06 [RateCDR] => 1 ) [2025-02-08 10:06: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-02-08 07:06:06' and `end` < '2025-02-08 10:06: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-02-08 10:06:19] Production.INFO: count ==821 [2025-02-08 10:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:06:06 - End Time 2025-02-08 10:06:06 [2025-02-08 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428992', 'tblTempUsageDetail_20' ) start [2025-02-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428992', 'tblTempUsageDetail_20' ) end [2025-02-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428992', 'tblTempVendorCDR_20' ) start [2025-02-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428992', 'tblTempVendorCDR_20' ) end [2025-02-08 10:06:19] Production.INFO: ProcessCDR(1,14428992,1,1,2) [2025-02-08 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428992', 'tblTempUsageDetail_20' ) start [2025-02-08 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428992', 'tblTempUsageDetail_20' ) end [2025-02-08 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:06:24] Production.INFO: ==18419== Releasing lock... [2025-02-08 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:06:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-08 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:07:05 [end_date_ymd] => 2025-02-08 10:07:05 [RateCDR] => 1 ) [2025-02-08 10:07: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` >= '2025-02-08 07:07:05' and `end` < '2025-02-08 10:07: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 ,'') [2025-02-08 10:07:18] Production.INFO: count ==836 [2025-02-08 10:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:07:05 - End Time 2025-02-08 10:07:05 [2025-02-08 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428997', 'tblTempUsageDetail_20' ) start [2025-02-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14428997', 'tblTempUsageDetail_20' ) end [2025-02-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428997', 'tblTempVendorCDR_20' ) start [2025-02-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14428997', 'tblTempVendorCDR_20' ) end [2025-02-08 10:07:18] Production.INFO: ProcessCDR(1,14428997,1,1,2) [2025-02-08 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14428997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14428997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14428997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14428997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428997', 'tblTempUsageDetail_20' ) start [2025-02-08 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14428997', 'tblTempUsageDetail_20' ) end [2025-02-08 10:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:07:22] Production.INFO: ==18495== Releasing lock... [2025-02-08 10:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-08 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:08:05 [end_date_ymd] => 2025-02-08 10:08:05 [RateCDR] => 1 ) [2025-02-08 10:08: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` >= '2025-02-08 07:08:05' and `end` < '2025-02-08 10:08: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 ,'') [2025-02-08 10:08:18] Production.INFO: count ==848 [2025-02-08 10:08:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:08:05 - End Time 2025-02-08 10:08:05 [2025-02-08 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429002', 'tblTempUsageDetail_20' ) start [2025-02-08 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429002', 'tblTempUsageDetail_20' ) end [2025-02-08 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429002', 'tblTempVendorCDR_20' ) start [2025-02-08 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429002', 'tblTempVendorCDR_20' ) end [2025-02-08 10:08:18] Production.INFO: ProcessCDR(1,14429002,1,1,2) [2025-02-08 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429002', 'tblTempUsageDetail_20' ) start [2025-02-08 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429002', 'tblTempUsageDetail_20' ) end [2025-02-08 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:08:22] Production.INFO: ==18574== Releasing lock... [2025-02-08 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-08 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:09:04 [end_date_ymd] => 2025-02-08 10:09:04 [RateCDR] => 1 ) [2025-02-08 10:09:04] 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-02-08 07:09:04' and `end` < '2025-02-08 10:09:04' 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-02-08 10:09:17] Production.INFO: count ==852 [2025-02-08 10:09:17] Production.ERROR: pbx CDR StartTime 2025-02-08 07:09:04 - End Time 2025-02-08 10:09:04 [2025-02-08 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429007', 'tblTempUsageDetail_20' ) start [2025-02-08 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429007', 'tblTempUsageDetail_20' ) end [2025-02-08 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429007', 'tblTempVendorCDR_20' ) start [2025-02-08 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429007', 'tblTempVendorCDR_20' ) end [2025-02-08 10:09:17] Production.INFO: ProcessCDR(1,14429007,1,1,2) [2025-02-08 10:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429007', 'tblTempUsageDetail_20' ) start [2025-02-08 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429007', 'tblTempUsageDetail_20' ) end [2025-02-08 10:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:09:21] Production.INFO: ==18647== Releasing lock... [2025-02-08 10:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:09:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-08 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:10:06 [end_date_ymd] => 2025-02-08 10:10:06 [RateCDR] => 1 ) [2025-02-08 10:10: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-02-08 07:10:06' and `end` < '2025-02-08 10:10: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-02-08 10:10:19] Production.INFO: count ==865 [2025-02-08 10:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:10:06 - End Time 2025-02-08 10:10:06 [2025-02-08 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429012', 'tblTempUsageDetail_20' ) start [2025-02-08 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429012', 'tblTempUsageDetail_20' ) end [2025-02-08 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429012', 'tblTempVendorCDR_20' ) start [2025-02-08 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429012', 'tblTempVendorCDR_20' ) end [2025-02-08 10:10:19] Production.INFO: ProcessCDR(1,14429012,1,1,2) [2025-02-08 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429012', 'tblTempUsageDetail_20' ) start [2025-02-08 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429012', 'tblTempUsageDetail_20' ) end [2025-02-08 10:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:10:22] Production.INFO: ==18726== Releasing lock... [2025-02-08 10:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:10:22] Production.INFO: 35 MB #Memory Used# [2025-02-08 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:11:05 [end_date_ymd] => 2025-02-08 10:11:05 [RateCDR] => 1 ) [2025-02-08 10:11: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` >= '2025-02-08 07:11:05' and `end` < '2025-02-08 10:11: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 ,'') [2025-02-08 10:11:19] Production.INFO: count ==909 [2025-02-08 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:11:05 - End Time 2025-02-08 10:11:05 [2025-02-08 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429018', 'tblTempUsageDetail_20' ) start [2025-02-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429018', 'tblTempUsageDetail_20' ) end [2025-02-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429018', 'tblTempVendorCDR_20' ) start [2025-02-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429018', 'tblTempVendorCDR_20' ) end [2025-02-08 10:11:19] Production.INFO: ProcessCDR(1,14429018,1,1,2) [2025-02-08 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429018', 'tblTempUsageDetail_20' ) start [2025-02-08 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429018', 'tblTempUsageDetail_20' ) end [2025-02-08 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:11:24] Production.INFO: ==18841== Releasing lock... [2025-02-08 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:11:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-08 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:12:05 [end_date_ymd] => 2025-02-08 10:12:05 [RateCDR] => 1 ) [2025-02-08 10:12: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` >= '2025-02-08 07:12:05' and `end` < '2025-02-08 10:12: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 ,'') [2025-02-08 10:12:18] Production.INFO: count ==917 [2025-02-08 10:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:12:05 - End Time 2025-02-08 10:12:05 [2025-02-08 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429023', 'tblTempUsageDetail_20' ) start [2025-02-08 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429023', 'tblTempUsageDetail_20' ) end [2025-02-08 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429023', 'tblTempVendorCDR_20' ) start [2025-02-08 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429023', 'tblTempVendorCDR_20' ) end [2025-02-08 10:12:19] Production.INFO: ProcessCDR(1,14429023,1,1,2) [2025-02-08 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429023', 'tblTempUsageDetail_20' ) start [2025-02-08 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429023', 'tblTempUsageDetail_20' ) end [2025-02-08 10:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:12:22] Production.INFO: ==18916== Releasing lock... [2025-02-08 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:12:22] Production.INFO: 35 MB #Memory Used# [2025-02-08 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:13:05 [end_date_ymd] => 2025-02-08 10:13:05 [RateCDR] => 1 ) [2025-02-08 10:13: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` >= '2025-02-08 07:13:05' and `end` < '2025-02-08 10:13: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 ,'') [2025-02-08 10:13:18] Production.INFO: count ==955 [2025-02-08 10:13:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:13:05 - End Time 2025-02-08 10:13:05 [2025-02-08 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429028', 'tblTempUsageDetail_20' ) start [2025-02-08 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429028', 'tblTempUsageDetail_20' ) end [2025-02-08 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429028', 'tblTempVendorCDR_20' ) start [2025-02-08 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429028', 'tblTempVendorCDR_20' ) end [2025-02-08 10:13:18] Production.INFO: ProcessCDR(1,14429028,1,1,2) [2025-02-08 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429028', 'tblTempUsageDetail_20' ) start [2025-02-08 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429028', 'tblTempUsageDetail_20' ) end [2025-02-08 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:13:23] Production.INFO: ==18989== Releasing lock... [2025-02-08 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:13:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-08 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:14:05 [end_date_ymd] => 2025-02-08 10:14:05 [RateCDR] => 1 ) [2025-02-08 10:14: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` >= '2025-02-08 07:14:05' and `end` < '2025-02-08 10:14: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 ,'') [2025-02-08 10:14:19] Production.INFO: count ==959 [2025-02-08 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:14:05 - End Time 2025-02-08 10:14:05 [2025-02-08 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429033', 'tblTempUsageDetail_20' ) start [2025-02-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429033', 'tblTempUsageDetail_20' ) end [2025-02-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429033', 'tblTempVendorCDR_20' ) start [2025-02-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429033', 'tblTempVendorCDR_20' ) end [2025-02-08 10:14:19] Production.INFO: ProcessCDR(1,14429033,1,1,2) [2025-02-08 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429033', 'tblTempUsageDetail_20' ) start [2025-02-08 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429033', 'tblTempUsageDetail_20' ) end [2025-02-08 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:14:24] Production.INFO: ==19064== Releasing lock... [2025-02-08 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:14:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-08 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:15:05 [end_date_ymd] => 2025-02-08 10:15:05 [RateCDR] => 1 ) [2025-02-08 10:15: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` >= '2025-02-08 07:15:05' and `end` < '2025-02-08 10:15: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 ,'') [2025-02-08 10:15:18] Production.INFO: count ==968 [2025-02-08 10:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:15:05 - End Time 2025-02-08 10:15:05 [2025-02-08 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429038', 'tblTempUsageDetail_20' ) start [2025-02-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429038', 'tblTempUsageDetail_20' ) end [2025-02-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429038', 'tblTempVendorCDR_20' ) start [2025-02-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429038', 'tblTempVendorCDR_20' ) end [2025-02-08 10:15:19] Production.INFO: ProcessCDR(1,14429038,1,1,2) [2025-02-08 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429038', 'tblTempUsageDetail_20' ) start [2025-02-08 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429038', 'tblTempUsageDetail_20' ) end [2025-02-08 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:15:22] Production.INFO: ==19149== Releasing lock... [2025-02-08 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:15:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:16:05 [end_date_ymd] => 2025-02-08 10:16:05 [RateCDR] => 1 ) [2025-02-08 10:16: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` >= '2025-02-08 07:16:05' and `end` < '2025-02-08 10:16: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 ,'') [2025-02-08 10:16:19] Production.INFO: count ==976 [2025-02-08 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:16:05 - End Time 2025-02-08 10:16:05 [2025-02-08 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429039', 'tblTempUsageDetail_20' ) start [2025-02-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429039', 'tblTempUsageDetail_20' ) end [2025-02-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429039', 'tblTempVendorCDR_20' ) start [2025-02-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429039', 'tblTempVendorCDR_20' ) end [2025-02-08 10:16:19] Production.INFO: ProcessCDR(1,14429039,1,1,2) [2025-02-08 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429039', 'tblTempUsageDetail_20' ) start [2025-02-08 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429039', 'tblTempUsageDetail_20' ) end [2025-02-08 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:16:22] Production.INFO: ==19222== Releasing lock... [2025-02-08 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:16:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-08 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:17:05 [end_date_ymd] => 2025-02-08 10:17:05 [RateCDR] => 1 ) [2025-02-08 10:17: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` >= '2025-02-08 07:17:05' and `end` < '2025-02-08 10:17: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 ,'') [2025-02-08 10:17:19] Production.INFO: count ==969 [2025-02-08 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:17:05 - End Time 2025-02-08 10:17:05 [2025-02-08 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429048', 'tblTempUsageDetail_20' ) start [2025-02-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429048', 'tblTempUsageDetail_20' ) end [2025-02-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429048', 'tblTempVendorCDR_20' ) start [2025-02-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429048', 'tblTempVendorCDR_20' ) end [2025-02-08 10:17:19] Production.INFO: ProcessCDR(1,14429048,1,1,2) [2025-02-08 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429048', 'tblTempUsageDetail_20' ) start [2025-02-08 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429048', 'tblTempUsageDetail_20' ) end [2025-02-08 10:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:17:22] Production.INFO: ==19294== Releasing lock... [2025-02-08 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:17:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-08 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:18:05 [end_date_ymd] => 2025-02-08 10:18:05 [RateCDR] => 1 ) [2025-02-08 10:18: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` >= '2025-02-08 07:18:05' and `end` < '2025-02-08 10:18: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 ,'') [2025-02-08 10:18:18] Production.INFO: count ==964 [2025-02-08 10:18:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:18:05 - End Time 2025-02-08 10:18:05 [2025-02-08 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429053', 'tblTempUsageDetail_20' ) start [2025-02-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429053', 'tblTempUsageDetail_20' ) end [2025-02-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429053', 'tblTempVendorCDR_20' ) start [2025-02-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429053', 'tblTempVendorCDR_20' ) end [2025-02-08 10:18:18] Production.INFO: ProcessCDR(1,14429053,1,1,2) [2025-02-08 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429053', 'tblTempUsageDetail_20' ) start [2025-02-08 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429053', 'tblTempUsageDetail_20' ) end [2025-02-08 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:18:21] Production.INFO: ==19368== Releasing lock... [2025-02-08 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:18:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:19:05 [end_date_ymd] => 2025-02-08 10:19:05 [RateCDR] => 1 ) [2025-02-08 10:19: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` >= '2025-02-08 07:19:05' and `end` < '2025-02-08 10:19: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 ,'') [2025-02-08 10:19:18] Production.INFO: count ==972 [2025-02-08 10:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:19:05 - End Time 2025-02-08 10:19:05 [2025-02-08 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429058', 'tblTempUsageDetail_20' ) start [2025-02-08 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429058', 'tblTempUsageDetail_20' ) end [2025-02-08 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429058', 'tblTempVendorCDR_20' ) start [2025-02-08 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429058', 'tblTempVendorCDR_20' ) end [2025-02-08 10:19:18] Production.INFO: ProcessCDR(1,14429058,1,1,2) [2025-02-08 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429058', 'tblTempUsageDetail_20' ) start [2025-02-08 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429058', 'tblTempUsageDetail_20' ) end [2025-02-08 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:19:21] Production.INFO: ==19439== Releasing lock... [2025-02-08 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:19:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-08 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:20:06 [end_date_ymd] => 2025-02-08 10:20:06 [RateCDR] => 1 ) [2025-02-08 10:20: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-02-08 07:20:06' and `end` < '2025-02-08 10:20: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-02-08 10:20:19] Production.INFO: count ==982 [2025-02-08 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 07:20:06 - End Time 2025-02-08 10:20:06 [2025-02-08 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429064', 'tblTempUsageDetail_20' ) start [2025-02-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429064', 'tblTempUsageDetail_20' ) end [2025-02-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429064', 'tblTempVendorCDR_20' ) start [2025-02-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429064', 'tblTempVendorCDR_20' ) end [2025-02-08 10:20:20] Production.INFO: ProcessCDR(1,14429064,1,1,2) [2025-02-08 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429064', 'tblTempUsageDetail_20' ) start [2025-02-08 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429064', 'tblTempUsageDetail_20' ) end [2025-02-08 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:20:25] Production.INFO: ==19523== Releasing lock... [2025-02-08 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:20:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:21:05 [end_date_ymd] => 2025-02-08 10:21:05 [RateCDR] => 1 ) [2025-02-08 10:21: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` >= '2025-02-08 07:21:05' and `end` < '2025-02-08 10:21: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 ,'') [2025-02-08 10:21:18] Production.INFO: count ==994 [2025-02-08 10:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:21:05 - End Time 2025-02-08 10:21:05 [2025-02-08 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429069', 'tblTempUsageDetail_20' ) start [2025-02-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429069', 'tblTempUsageDetail_20' ) end [2025-02-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429069', 'tblTempVendorCDR_20' ) start [2025-02-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429069', 'tblTempVendorCDR_20' ) end [2025-02-08 10:21:18] Production.INFO: ProcessCDR(1,14429069,1,1,2) [2025-02-08 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429069', 'tblTempUsageDetail_20' ) start [2025-02-08 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429069', 'tblTempUsageDetail_20' ) end [2025-02-08 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:21:23] Production.INFO: ==19618== Releasing lock... [2025-02-08 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:21:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:22:06 [end_date_ymd] => 2025-02-08 10:22:06 [RateCDR] => 1 ) [2025-02-08 10:22: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-02-08 07:22:06' and `end` < '2025-02-08 10:22: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-02-08 10:22:19] Production.INFO: count ==996 [2025-02-08 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:22:06 - End Time 2025-02-08 10:22:06 [2025-02-08 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429074', 'tblTempUsageDetail_20' ) start [2025-02-08 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429074', 'tblTempUsageDetail_20' ) end [2025-02-08 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429074', 'tblTempVendorCDR_20' ) start [2025-02-08 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429074', 'tblTempVendorCDR_20' ) end [2025-02-08 10:22:19] Production.INFO: ProcessCDR(1,14429074,1,1,2) [2025-02-08 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429074', 'tblTempUsageDetail_20' ) start [2025-02-08 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429074', 'tblTempUsageDetail_20' ) end [2025-02-08 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:22:24] Production.INFO: ==19706== Releasing lock... [2025-02-08 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:22:24] Production.INFO: 36 MB #Memory Used# [2025-02-08 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:23:05 [end_date_ymd] => 2025-02-08 10:23:05 [RateCDR] => 1 ) [2025-02-08 10:23: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` >= '2025-02-08 07:23:05' and `end` < '2025-02-08 10:23: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 ,'') [2025-02-08 10:23:18] Production.INFO: count ==1002 [2025-02-08 10:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:23:05 - End Time 2025-02-08 10:23:05 [2025-02-08 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429079', 'tblTempUsageDetail_20' ) start [2025-02-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429079', 'tblTempUsageDetail_20' ) end [2025-02-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429079', 'tblTempVendorCDR_20' ) start [2025-02-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429079', 'tblTempVendorCDR_20' ) end [2025-02-08 10:23:18] Production.INFO: ProcessCDR(1,14429079,1,1,2) [2025-02-08 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429079', 'tblTempUsageDetail_20' ) start [2025-02-08 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429079', 'tblTempUsageDetail_20' ) end [2025-02-08 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:23:23] Production.INFO: ==19799== Releasing lock... [2025-02-08 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:23:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:24:05 [end_date_ymd] => 2025-02-08 10:24:05 [RateCDR] => 1 ) [2025-02-08 10:24: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` >= '2025-02-08 07:24:05' and `end` < '2025-02-08 10:24: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 ,'') [2025-02-08 10:24:19] Production.INFO: count ==1006 [2025-02-08 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:24:05 - End Time 2025-02-08 10:24:05 [2025-02-08 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429083', 'tblTempUsageDetail_20' ) start [2025-02-08 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429083', 'tblTempUsageDetail_20' ) end [2025-02-08 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429083', 'tblTempVendorCDR_20' ) start [2025-02-08 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429083', 'tblTempVendorCDR_20' ) end [2025-02-08 10:24:19] Production.INFO: ProcessCDR(1,14429083,1,1,2) [2025-02-08 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429083', 'tblTempUsageDetail_20' ) start [2025-02-08 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429083', 'tblTempUsageDetail_20' ) end [2025-02-08 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:24:24] Production.INFO: ==19891== Releasing lock... [2025-02-08 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:24:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:25:04 [end_date_ymd] => 2025-02-08 10:25:04 [RateCDR] => 1 ) [2025-02-08 10:25:04] 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-02-08 07:25:04' and `end` < '2025-02-08 10:25:04' 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-02-08 10:25:17] Production.INFO: count ==1013 [2025-02-08 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:25:04 - End Time 2025-02-08 10:25:04 [2025-02-08 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429089', 'tblTempUsageDetail_20' ) start [2025-02-08 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429089', 'tblTempUsageDetail_20' ) end [2025-02-08 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429089', 'tblTempVendorCDR_20' ) start [2025-02-08 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429089', 'tblTempVendorCDR_20' ) end [2025-02-08 10:25:18] Production.INFO: ProcessCDR(1,14429089,1,1,2) [2025-02-08 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429089', 'tblTempUsageDetail_20' ) start [2025-02-08 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429089', 'tblTempUsageDetail_20' ) end [2025-02-08 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:25:22] Production.INFO: ==19974== Releasing lock... [2025-02-08 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:25:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-08 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:26:05 [end_date_ymd] => 2025-02-08 10:26:05 [RateCDR] => 1 ) [2025-02-08 10:26: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` >= '2025-02-08 07:26:05' and `end` < '2025-02-08 10:26: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 ,'') [2025-02-08 10:26:18] Production.INFO: count ==1016 [2025-02-08 10:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:26:05 - End Time 2025-02-08 10:26:05 [2025-02-08 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429094', 'tblTempUsageDetail_20' ) start [2025-02-08 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429094', 'tblTempUsageDetail_20' ) end [2025-02-08 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429094', 'tblTempVendorCDR_20' ) start [2025-02-08 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429094', 'tblTempVendorCDR_20' ) end [2025-02-08 10:26:19] Production.INFO: ProcessCDR(1,14429094,1,1,2) [2025-02-08 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429094', 'tblTempUsageDetail_20' ) start [2025-02-08 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429094', 'tblTempUsageDetail_20' ) end [2025-02-08 10:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:26:23] Production.INFO: ==20048== Releasing lock... [2025-02-08 10:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:26:23] Production.INFO: 36 MB #Memory Used# [2025-02-08 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:27:05 [end_date_ymd] => 2025-02-08 10:27:05 [RateCDR] => 1 ) [2025-02-08 10:27: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` >= '2025-02-08 07:27:05' and `end` < '2025-02-08 10:27: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 ,'') [2025-02-08 10:27:18] Production.INFO: count ==1028 [2025-02-08 10:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:27:05 - End Time 2025-02-08 10:27:05 [2025-02-08 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429099', 'tblTempUsageDetail_20' ) start [2025-02-08 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429099', 'tblTempUsageDetail_20' ) end [2025-02-08 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429099', 'tblTempVendorCDR_20' ) start [2025-02-08 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429099', 'tblTempVendorCDR_20' ) end [2025-02-08 10:27:18] Production.INFO: ProcessCDR(1,14429099,1,1,2) [2025-02-08 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429099', 'tblTempUsageDetail_20' ) start [2025-02-08 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429099', 'tblTempUsageDetail_20' ) end [2025-02-08 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:27:21] Production.INFO: ==20166== Releasing lock... [2025-02-08 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:28:05 [end_date_ymd] => 2025-02-08 10:28:05 [RateCDR] => 1 ) [2025-02-08 10:28: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` >= '2025-02-08 07:28:05' and `end` < '2025-02-08 10:28: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 ,'') [2025-02-08 10:28:18] Production.INFO: count ==1028 [2025-02-08 10:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:28:05 - End Time 2025-02-08 10:28:05 [2025-02-08 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429104', 'tblTempUsageDetail_20' ) start [2025-02-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429104', 'tblTempUsageDetail_20' ) end [2025-02-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429104', 'tblTempVendorCDR_20' ) start [2025-02-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429104', 'tblTempVendorCDR_20' ) end [2025-02-08 10:28:18] Production.INFO: ProcessCDR(1,14429104,1,1,2) [2025-02-08 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429104', 'tblTempUsageDetail_20' ) start [2025-02-08 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429104', 'tblTempUsageDetail_20' ) end [2025-02-08 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:28:21] Production.INFO: ==20243== Releasing lock... [2025-02-08 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:29:05 [end_date_ymd] => 2025-02-08 10:29:05 [RateCDR] => 1 ) [2025-02-08 10:29: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` >= '2025-02-08 07:29:05' and `end` < '2025-02-08 10:29: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 ,'') [2025-02-08 10:29:18] Production.INFO: count ==1028 [2025-02-08 10:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:29:05 - End Time 2025-02-08 10:29:05 [2025-02-08 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429109', 'tblTempUsageDetail_20' ) start [2025-02-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429109', 'tblTempUsageDetail_20' ) end [2025-02-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429109', 'tblTempVendorCDR_20' ) start [2025-02-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429109', 'tblTempVendorCDR_20' ) end [2025-02-08 10:29:19] Production.INFO: ProcessCDR(1,14429109,1,1,2) [2025-02-08 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429109', 'tblTempUsageDetail_20' ) start [2025-02-08 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429109', 'tblTempUsageDetail_20' ) end [2025-02-08 10:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:29:22] Production.INFO: ==20314== Releasing lock... [2025-02-08 10:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-08 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:30:06 [end_date_ymd] => 2025-02-08 10:30:06 [RateCDR] => 1 ) [2025-02-08 10:30: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-02-08 07:30:06' and `end` < '2025-02-08 10:30: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-02-08 10:30:19] Production.INFO: count ==1040 [2025-02-08 10:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:30:06 - End Time 2025-02-08 10:30:06 [2025-02-08 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429115', 'tblTempUsageDetail_20' ) start [2025-02-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429115', 'tblTempUsageDetail_20' ) end [2025-02-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429115', 'tblTempVendorCDR_20' ) start [2025-02-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429115', 'tblTempVendorCDR_20' ) end [2025-02-08 10:30:19] Production.INFO: ProcessCDR(1,14429115,1,1,2) [2025-02-08 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429115', 'tblTempUsageDetail_20' ) start [2025-02-08 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429115', 'tblTempUsageDetail_20' ) end [2025-02-08 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:30:24] Production.INFO: ==20387== Releasing lock... [2025-02-08 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:30:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-08 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:31:04 [end_date_ymd] => 2025-02-08 10:31:04 [RateCDR] => 1 ) [2025-02-08 10:31:04] 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-02-08 07:31:04' and `end` < '2025-02-08 10:31:04' 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-02-08 10:31:18] Production.INFO: count ==1065 [2025-02-08 10:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:31:04 - End Time 2025-02-08 10:31:04 [2025-02-08 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429120', 'tblTempUsageDetail_20' ) start [2025-02-08 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429120', 'tblTempUsageDetail_20' ) end [2025-02-08 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429120', 'tblTempVendorCDR_20' ) start [2025-02-08 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429120', 'tblTempVendorCDR_20' ) end [2025-02-08 10:31:18] Production.INFO: ProcessCDR(1,14429120,1,1,2) [2025-02-08 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429120', 'tblTempUsageDetail_20' ) start [2025-02-08 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429120', 'tblTempUsageDetail_20' ) end [2025-02-08 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:31:23] Production.INFO: ==20460== Releasing lock... [2025-02-08 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:31:23] Production.INFO: 36 MB #Memory Used# [2025-02-08 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:32:05 [end_date_ymd] => 2025-02-08 10:32:05 [RateCDR] => 1 ) [2025-02-08 10:32: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` >= '2025-02-08 07:32:05' and `end` < '2025-02-08 10:32: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 ,'') [2025-02-08 10:32:18] Production.INFO: count ==1065 [2025-02-08 10:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:32:05 - End Time 2025-02-08 10:32:05 [2025-02-08 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429125', 'tblTempUsageDetail_20' ) start [2025-02-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429125', 'tblTempUsageDetail_20' ) end [2025-02-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429125', 'tblTempVendorCDR_20' ) start [2025-02-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429125', 'tblTempVendorCDR_20' ) end [2025-02-08 10:32:18] Production.INFO: ProcessCDR(1,14429125,1,1,2) [2025-02-08 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429125', 'tblTempUsageDetail_20' ) start [2025-02-08 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429125', 'tblTempUsageDetail_20' ) end [2025-02-08 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:32:22] Production.INFO: ==20531== Releasing lock... [2025-02-08 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:32:22] Production.INFO: 36 MB #Memory Used# [2025-02-08 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:33:06 [end_date_ymd] => 2025-02-08 10:33:06 [RateCDR] => 1 ) [2025-02-08 10:33: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-02-08 07:33:06' and `end` < '2025-02-08 10:33: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-02-08 10:33:19] Production.INFO: count ==1069 [2025-02-08 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:33:06 - End Time 2025-02-08 10:33:06 [2025-02-08 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429130', 'tblTempUsageDetail_20' ) start [2025-02-08 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429130', 'tblTempUsageDetail_20' ) end [2025-02-08 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429130', 'tblTempVendorCDR_20' ) start [2025-02-08 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429130', 'tblTempVendorCDR_20' ) end [2025-02-08 10:33:19] Production.INFO: ProcessCDR(1,14429130,1,1,2) [2025-02-08 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429130', 'tblTempUsageDetail_20' ) start [2025-02-08 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429130', 'tblTempUsageDetail_20' ) end [2025-02-08 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:33:22] Production.INFO: ==20605== Releasing lock... [2025-02-08 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:33:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-08 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:34:05 [end_date_ymd] => 2025-02-08 10:34:05 [RateCDR] => 1 ) [2025-02-08 10:34: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` >= '2025-02-08 07:34:05' and `end` < '2025-02-08 10:34: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 ,'') [2025-02-08 10:34:18] Production.INFO: count ==1083 [2025-02-08 10:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:34:05 - End Time 2025-02-08 10:34:05 [2025-02-08 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429135', 'tblTempUsageDetail_20' ) start [2025-02-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429135', 'tblTempUsageDetail_20' ) end [2025-02-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429135', 'tblTempVendorCDR_20' ) start [2025-02-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429135', 'tblTempVendorCDR_20' ) end [2025-02-08 10:34:18] Production.INFO: ProcessCDR(1,14429135,1,1,2) [2025-02-08 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429135', 'tblTempUsageDetail_20' ) start [2025-02-08 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429135', 'tblTempUsageDetail_20' ) end [2025-02-08 10:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:34:23] Production.INFO: ==20676== Releasing lock... [2025-02-08 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:34:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-08 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:35:06 [end_date_ymd] => 2025-02-08 10:35:06 [RateCDR] => 1 ) [2025-02-08 10:35: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-02-08 07:35:06' and `end` < '2025-02-08 10:35: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-02-08 10:35:19] Production.INFO: count ==1095 [2025-02-08 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:35:06 - End Time 2025-02-08 10:35:06 [2025-02-08 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429140', 'tblTempUsageDetail_20' ) start [2025-02-08 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429140', 'tblTempUsageDetail_20' ) end [2025-02-08 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429140', 'tblTempVendorCDR_20' ) start [2025-02-08 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429140', 'tblTempVendorCDR_20' ) end [2025-02-08 10:35:19] Production.INFO: ProcessCDR(1,14429140,1,1,2) [2025-02-08 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429140', 'tblTempUsageDetail_20' ) start [2025-02-08 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429140', 'tblTempUsageDetail_20' ) end [2025-02-08 10:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:35:23] Production.INFO: ==20752== Releasing lock... [2025-02-08 10:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:35:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-08 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:36:05 [end_date_ymd] => 2025-02-08 10:36:05 [RateCDR] => 1 ) [2025-02-08 10:36: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` >= '2025-02-08 07:36:05' and `end` < '2025-02-08 10:36: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 ,'') [2025-02-08 10:36:18] Production.INFO: count ==1106 [2025-02-08 10:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:36:05 - End Time 2025-02-08 10:36:05 [2025-02-08 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429145', 'tblTempUsageDetail_20' ) start [2025-02-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429145', 'tblTempUsageDetail_20' ) end [2025-02-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429145', 'tblTempVendorCDR_20' ) start [2025-02-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429145', 'tblTempVendorCDR_20' ) end [2025-02-08 10:36:19] Production.INFO: ProcessCDR(1,14429145,1,1,2) [2025-02-08 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429145', 'tblTempUsageDetail_20' ) start [2025-02-08 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429145', 'tblTempUsageDetail_20' ) end [2025-02-08 10:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:36:22] Production.INFO: ==20825== Releasing lock... [2025-02-08 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:36:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-08 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:37:05 [end_date_ymd] => 2025-02-08 10:37:05 [RateCDR] => 1 ) [2025-02-08 10:37: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` >= '2025-02-08 07:37:05' and `end` < '2025-02-08 10:37: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 ,'') [2025-02-08 10:37:18] Production.INFO: count ==1114 [2025-02-08 10:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:37:05 - End Time 2025-02-08 10:37:05 [2025-02-08 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429150', 'tblTempUsageDetail_20' ) start [2025-02-08 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429150', 'tblTempUsageDetail_20' ) end [2025-02-08 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429150', 'tblTempVendorCDR_20' ) start [2025-02-08 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429150', 'tblTempVendorCDR_20' ) end [2025-02-08 10:37:19] Production.INFO: ProcessCDR(1,14429150,1,1,2) [2025-02-08 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429150', 'tblTempUsageDetail_20' ) start [2025-02-08 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429150', 'tblTempUsageDetail_20' ) end [2025-02-08 10:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:37:22] Production.INFO: ==20896== Releasing lock... [2025-02-08 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:37:22] Production.INFO: 37 MB #Memory Used# [2025-02-08 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:38:05 [end_date_ymd] => 2025-02-08 10:38:05 [RateCDR] => 1 ) [2025-02-08 10:38: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` >= '2025-02-08 07:38:05' and `end` < '2025-02-08 10:38: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 ,'') [2025-02-08 10:38:18] Production.INFO: count ==1118 [2025-02-08 10:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:38:05 - End Time 2025-02-08 10:38:05 [2025-02-08 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429155', 'tblTempUsageDetail_20' ) start [2025-02-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429155', 'tblTempUsageDetail_20' ) end [2025-02-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429155', 'tblTempVendorCDR_20' ) start [2025-02-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429155', 'tblTempVendorCDR_20' ) end [2025-02-08 10:38:18] Production.INFO: ProcessCDR(1,14429155,1,1,2) [2025-02-08 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429155', 'tblTempUsageDetail_20' ) start [2025-02-08 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429155', 'tblTempUsageDetail_20' ) end [2025-02-08 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:38:23] Production.INFO: ==20965== Releasing lock... [2025-02-08 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:38:23] Production.INFO: 37 MB #Memory Used# [2025-02-08 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:39:05 [end_date_ymd] => 2025-02-08 10:39:05 [RateCDR] => 1 ) [2025-02-08 10:39: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` >= '2025-02-08 07:39:05' and `end` < '2025-02-08 10:39: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 ,'') [2025-02-08 10:39:19] Production.INFO: count ==1120 [2025-02-08 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:39:05 - End Time 2025-02-08 10:39:05 [2025-02-08 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429160', 'tblTempUsageDetail_20' ) start [2025-02-08 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429160', 'tblTempUsageDetail_20' ) end [2025-02-08 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429160', 'tblTempVendorCDR_20' ) start [2025-02-08 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429160', 'tblTempVendorCDR_20' ) end [2025-02-08 10:39:19] Production.INFO: ProcessCDR(1,14429160,1,1,2) [2025-02-08 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429160', 'tblTempUsageDetail_20' ) start [2025-02-08 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429160', 'tblTempUsageDetail_20' ) end [2025-02-08 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:39:24] Production.INFO: ==21040== Releasing lock... [2025-02-08 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:39:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-08 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:40:05 [end_date_ymd] => 2025-02-08 10:40:05 [RateCDR] => 1 ) [2025-02-08 10:40: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` >= '2025-02-08 07:40:05' and `end` < '2025-02-08 10:40: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 ,'') [2025-02-08 10:40:18] Production.INFO: count ==1122 [2025-02-08 10:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:40:05 - End Time 2025-02-08 10:40:05 [2025-02-08 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429166', 'tblTempUsageDetail_20' ) start [2025-02-08 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429166', 'tblTempUsageDetail_20' ) end [2025-02-08 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429166', 'tblTempVendorCDR_20' ) start [2025-02-08 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429166', 'tblTempVendorCDR_20' ) end [2025-02-08 10:40:19] Production.INFO: ProcessCDR(1,14429166,1,1,2) [2025-02-08 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429166', 'tblTempUsageDetail_20' ) start [2025-02-08 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429166', 'tblTempUsageDetail_20' ) end [2025-02-08 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:40:23] Production.INFO: ==21111== Releasing lock... [2025-02-08 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:40:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-08 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:41:05 [end_date_ymd] => 2025-02-08 10:41:05 [RateCDR] => 1 ) [2025-02-08 10:41: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` >= '2025-02-08 07:41:05' and `end` < '2025-02-08 10:41: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 ,'') [2025-02-08 10:41:18] Production.INFO: count ==1142 [2025-02-08 10:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:41:05 - End Time 2025-02-08 10:41:05 [2025-02-08 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429171', 'tblTempUsageDetail_20' ) start [2025-02-08 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429171', 'tblTempUsageDetail_20' ) end [2025-02-08 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429171', 'tblTempVendorCDR_20' ) start [2025-02-08 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429171', 'tblTempVendorCDR_20' ) end [2025-02-08 10:41:19] Production.INFO: ProcessCDR(1,14429171,1,1,2) [2025-02-08 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429171', 'tblTempUsageDetail_20' ) start [2025-02-08 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429171', 'tblTempUsageDetail_20' ) end [2025-02-08 10:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:41:22] Production.INFO: ==21188== Releasing lock... [2025-02-08 10:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-08 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:42:04 [end_date_ymd] => 2025-02-08 10:42:04 [RateCDR] => 1 ) [2025-02-08 10:42:04] 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-02-08 07:42:04' and `end` < '2025-02-08 10:42:04' 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-02-08 10:42:18] Production.INFO: count ==1147 [2025-02-08 10:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:42:04 - End Time 2025-02-08 10:42:04 [2025-02-08 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429176', 'tblTempUsageDetail_20' ) start [2025-02-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429176', 'tblTempUsageDetail_20' ) end [2025-02-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429176', 'tblTempVendorCDR_20' ) start [2025-02-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429176', 'tblTempVendorCDR_20' ) end [2025-02-08 10:42:18] Production.INFO: ProcessCDR(1,14429176,1,1,2) [2025-02-08 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429176', 'tblTempUsageDetail_20' ) start [2025-02-08 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429176', 'tblTempUsageDetail_20' ) end [2025-02-08 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:42:22] Production.INFO: ==21309== Releasing lock... [2025-02-08 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-08 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:43:05 [end_date_ymd] => 2025-02-08 10:43:05 [RateCDR] => 1 ) [2025-02-08 10:43: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` >= '2025-02-08 07:43:05' and `end` < '2025-02-08 10:43: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 ,'') [2025-02-08 10:43:18] Production.INFO: count ==1150 [2025-02-08 10:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:43:05 - End Time 2025-02-08 10:43:05 [2025-02-08 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429181', 'tblTempUsageDetail_20' ) start [2025-02-08 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429181', 'tblTempUsageDetail_20' ) end [2025-02-08 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429181', 'tblTempVendorCDR_20' ) start [2025-02-08 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429181', 'tblTempVendorCDR_20' ) end [2025-02-08 10:43:19] Production.INFO: ProcessCDR(1,14429181,1,1,2) [2025-02-08 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429181', 'tblTempUsageDetail_20' ) start [2025-02-08 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429181', 'tblTempUsageDetail_20' ) end [2025-02-08 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:43:23] Production.INFO: ==21394== Releasing lock... [2025-02-08 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:43:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-08 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:44:06 [end_date_ymd] => 2025-02-08 10:44:06 [RateCDR] => 1 ) [2025-02-08 10:44: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-02-08 07:44:06' and `end` < '2025-02-08 10:44: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-02-08 10:44:19] Production.INFO: count ==1155 [2025-02-08 10:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:44:06 - End Time 2025-02-08 10:44:06 [2025-02-08 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429186', 'tblTempUsageDetail_20' ) start [2025-02-08 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429186', 'tblTempUsageDetail_20' ) end [2025-02-08 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429186', 'tblTempVendorCDR_20' ) start [2025-02-08 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429186', 'tblTempVendorCDR_20' ) end [2025-02-08 10:44:19] Production.INFO: ProcessCDR(1,14429186,1,1,2) [2025-02-08 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429186', 'tblTempUsageDetail_20' ) start [2025-02-08 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429186', 'tblTempUsageDetail_20' ) end [2025-02-08 10:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:44:22] Production.INFO: ==21481== Releasing lock... [2025-02-08 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:44:22] Production.INFO: 37 MB #Memory Used# [2025-02-08 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:45:05 [end_date_ymd] => 2025-02-08 10:45:05 [RateCDR] => 1 ) [2025-02-08 10:45: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` >= '2025-02-08 07:45:05' and `end` < '2025-02-08 10:45: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 ,'') [2025-02-08 10:45:18] Production.INFO: count ==1169 [2025-02-08 10:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:45:05 - End Time 2025-02-08 10:45:05 [2025-02-08 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429191', 'tblTempUsageDetail_20' ) start [2025-02-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429191', 'tblTempUsageDetail_20' ) end [2025-02-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429191', 'tblTempVendorCDR_20' ) start [2025-02-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429191', 'tblTempVendorCDR_20' ) end [2025-02-08 10:45:18] Production.INFO: ProcessCDR(1,14429191,1,1,2) [2025-02-08 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429191', 'tblTempUsageDetail_20' ) start [2025-02-08 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429191', 'tblTempUsageDetail_20' ) end [2025-02-08 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:45:23] Production.INFO: ==21567== Releasing lock... [2025-02-08 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:45:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-08 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:46:05 [end_date_ymd] => 2025-02-08 10:46:05 [RateCDR] => 1 ) [2025-02-08 10:46: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` >= '2025-02-08 07:46:05' and `end` < '2025-02-08 10:46: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 ,'') [2025-02-08 10:46:20] Production.INFO: count ==1171 [2025-02-08 10:46:20] Production.ERROR: pbx CDR StartTime 2025-02-08 07:46:05 - End Time 2025-02-08 10:46:05 [2025-02-08 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429196', 'tblTempUsageDetail_20' ) start [2025-02-08 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429196', 'tblTempUsageDetail_20' ) end [2025-02-08 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429196', 'tblTempVendorCDR_20' ) start [2025-02-08 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429196', 'tblTempVendorCDR_20' ) end [2025-02-08 10:46:20] Production.INFO: ProcessCDR(1,14429196,1,1,2) [2025-02-08 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429196', 'tblTempUsageDetail_20' ) start [2025-02-08 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429196', 'tblTempUsageDetail_20' ) end [2025-02-08 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:46:25] Production.INFO: ==21653== Releasing lock... [2025-02-08 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:46:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-08 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:47:05 [end_date_ymd] => 2025-02-08 10:47:05 [RateCDR] => 1 ) [2025-02-08 10:47: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` >= '2025-02-08 07:47:05' and `end` < '2025-02-08 10:47: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 ,'') [2025-02-08 10:47:18] Production.INFO: count ==1183 [2025-02-08 10:47:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:47:05 - End Time 2025-02-08 10:47:05 [2025-02-08 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429201', 'tblTempUsageDetail_20' ) start [2025-02-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429201', 'tblTempUsageDetail_20' ) end [2025-02-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429201', 'tblTempVendorCDR_20' ) start [2025-02-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429201', 'tblTempVendorCDR_20' ) end [2025-02-08 10:47:18] Production.INFO: ProcessCDR(1,14429201,1,1,2) [2025-02-08 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429201', 'tblTempUsageDetail_20' ) start [2025-02-08 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429201', 'tblTempUsageDetail_20' ) end [2025-02-08 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:47:23] Production.INFO: ==21740== Releasing lock... [2025-02-08 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:47:23] Production.INFO: 37 MB #Memory Used# [2025-02-08 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:48:05 [end_date_ymd] => 2025-02-08 10:48:05 [RateCDR] => 1 ) [2025-02-08 10:48: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` >= '2025-02-08 07:48:05' and `end` < '2025-02-08 10:48: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 ,'') [2025-02-08 10:48:18] Production.INFO: count ==1197 [2025-02-08 10:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:48:05 - End Time 2025-02-08 10:48:05 [2025-02-08 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429206', 'tblTempUsageDetail_20' ) start [2025-02-08 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429206', 'tblTempUsageDetail_20' ) end [2025-02-08 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429206', 'tblTempVendorCDR_20' ) start [2025-02-08 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429206', 'tblTempVendorCDR_20' ) end [2025-02-08 10:48:19] Production.INFO: ProcessCDR(1,14429206,1,1,2) [2025-02-08 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429206', 'tblTempUsageDetail_20' ) start [2025-02-08 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429206', 'tblTempUsageDetail_20' ) end [2025-02-08 10:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:48:23] Production.INFO: ==21828== Releasing lock... [2025-02-08 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:48:23] Production.INFO: 37 MB #Memory Used# [2025-02-08 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:49:04 [end_date_ymd] => 2025-02-08 10:49:04 [RateCDR] => 1 ) [2025-02-08 10:49:04] 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-02-08 07:49:04' and `end` < '2025-02-08 10:49:04' 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-02-08 10:49:17] Production.INFO: count ==1209 [2025-02-08 10:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:49:04 - End Time 2025-02-08 10:49:04 [2025-02-08 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429211', 'tblTempUsageDetail_20' ) start [2025-02-08 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429211', 'tblTempUsageDetail_20' ) end [2025-02-08 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429211', 'tblTempVendorCDR_20' ) start [2025-02-08 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429211', 'tblTempVendorCDR_20' ) end [2025-02-08 10:49:18] Production.INFO: ProcessCDR(1,14429211,1,1,2) [2025-02-08 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429211', 'tblTempUsageDetail_20' ) start [2025-02-08 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429211', 'tblTempUsageDetail_20' ) end [2025-02-08 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:49:22] Production.INFO: ==21919== Releasing lock... [2025-02-08 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:49:22] Production.INFO: 37 MB #Memory Used# [2025-02-08 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:50:06 [end_date_ymd] => 2025-02-08 10:50:06 [RateCDR] => 1 ) [2025-02-08 10:50: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-02-08 07:50:06' and `end` < '2025-02-08 10:50: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-02-08 10:50:19] Production.INFO: count ==1228 [2025-02-08 10:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 07:50:06 - End Time 2025-02-08 10:50:06 [2025-02-08 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429217', 'tblTempUsageDetail_20' ) start [2025-02-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429217', 'tblTempUsageDetail_20' ) end [2025-02-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429217', 'tblTempVendorCDR_20' ) start [2025-02-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429217', 'tblTempVendorCDR_20' ) end [2025-02-08 10:50:20] Production.INFO: ProcessCDR(1,14429217,1,1,2) [2025-02-08 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429217', 'tblTempUsageDetail_20' ) start [2025-02-08 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429217', 'tblTempUsageDetail_20' ) end [2025-02-08 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:50:23] Production.INFO: ==22009== Releasing lock... [2025-02-08 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-08 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:51:05 [end_date_ymd] => 2025-02-08 10:51:05 [RateCDR] => 1 ) [2025-02-08 10:51: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` >= '2025-02-08 07:51:05' and `end` < '2025-02-08 10:51: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 ,'') [2025-02-08 10:51:19] Production.INFO: count ==1264 [2025-02-08 10:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:51:05 - End Time 2025-02-08 10:51:05 [2025-02-08 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429222', 'tblTempUsageDetail_20' ) start [2025-02-08 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429222', 'tblTempUsageDetail_20' ) end [2025-02-08 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429222', 'tblTempVendorCDR_20' ) start [2025-02-08 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429222', 'tblTempVendorCDR_20' ) end [2025-02-08 10:51:19] Production.INFO: ProcessCDR(1,14429222,1,1,2) [2025-02-08 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429222', 'tblTempUsageDetail_20' ) start [2025-02-08 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429222', 'tblTempUsageDetail_20' ) end [2025-02-08 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:51:24] Production.INFO: ==22097== Releasing lock... [2025-02-08 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:51:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-08 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:52:05 [end_date_ymd] => 2025-02-08 10:52:05 [RateCDR] => 1 ) [2025-02-08 10:52: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` >= '2025-02-08 07:52:05' and `end` < '2025-02-08 10:52: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 ,'') [2025-02-08 10:52:18] Production.INFO: count ==1286 [2025-02-08 10:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:52:05 - End Time 2025-02-08 10:52:05 [2025-02-08 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429227', 'tblTempUsageDetail_20' ) start [2025-02-08 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429227', 'tblTempUsageDetail_20' ) end [2025-02-08 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429227', 'tblTempVendorCDR_20' ) start [2025-02-08 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429227', 'tblTempVendorCDR_20' ) end [2025-02-08 10:52:19] Production.INFO: ProcessCDR(1,14429227,1,1,2) [2025-02-08 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429227', 'tblTempUsageDetail_20' ) start [2025-02-08 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429227', 'tblTempUsageDetail_20' ) end [2025-02-08 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:52:22] Production.INFO: ==22187== Releasing lock... [2025-02-08 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-08 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:53:04 [end_date_ymd] => 2025-02-08 10:53:04 [RateCDR] => 1 ) [2025-02-08 10:53:04] 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-02-08 07:53:04' and `end` < '2025-02-08 10:53:04' 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-02-08 10:53:18] Production.INFO: count ==1310 [2025-02-08 10:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:53:04 - End Time 2025-02-08 10:53:04 [2025-02-08 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429232', 'tblTempUsageDetail_20' ) start [2025-02-08 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429232', 'tblTempUsageDetail_20' ) end [2025-02-08 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429232', 'tblTempVendorCDR_20' ) start [2025-02-08 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429232', 'tblTempVendorCDR_20' ) end [2025-02-08 10:53:18] Production.INFO: ProcessCDR(1,14429232,1,1,2) [2025-02-08 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429232', 'tblTempUsageDetail_20' ) start [2025-02-08 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429232', 'tblTempUsageDetail_20' ) end [2025-02-08 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:53:21] Production.INFO: ==22272== Releasing lock... [2025-02-08 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:53:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-08 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:54:05 [end_date_ymd] => 2025-02-08 10:54:05 [RateCDR] => 1 ) [2025-02-08 10:54: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` >= '2025-02-08 07:54:05' and `end` < '2025-02-08 10:54: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 ,'') [2025-02-08 10:54:18] Production.INFO: count ==1311 [2025-02-08 10:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:54:05 - End Time 2025-02-08 10:54:05 [2025-02-08 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429237', 'tblTempUsageDetail_20' ) start [2025-02-08 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429237', 'tblTempUsageDetail_20' ) end [2025-02-08 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429237', 'tblTempVendorCDR_20' ) start [2025-02-08 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429237', 'tblTempVendorCDR_20' ) end [2025-02-08 10:54:19] Production.INFO: ProcessCDR(1,14429237,1,1,2) [2025-02-08 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429237', 'tblTempUsageDetail_20' ) start [2025-02-08 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429237', 'tblTempUsageDetail_20' ) end [2025-02-08 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:54:23] Production.INFO: ==22361== Releasing lock... [2025-02-08 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:54:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:55:05 [end_date_ymd] => 2025-02-08 10:55:05 [RateCDR] => 1 ) [2025-02-08 10:55: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` >= '2025-02-08 07:55:05' and `end` < '2025-02-08 10:55: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 ,'') [2025-02-08 10:55:18] Production.INFO: count ==1308 [2025-02-08 10:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:55:05 - End Time 2025-02-08 10:55:05 [2025-02-08 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429242', 'tblTempUsageDetail_20' ) start [2025-02-08 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429242', 'tblTempUsageDetail_20' ) end [2025-02-08 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429242', 'tblTempVendorCDR_20' ) start [2025-02-08 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429242', 'tblTempVendorCDR_20' ) end [2025-02-08 10:55:19] Production.INFO: ProcessCDR(1,14429242,1,1,2) [2025-02-08 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429242', 'tblTempUsageDetail_20' ) start [2025-02-08 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429242', 'tblTempUsageDetail_20' ) end [2025-02-08 10:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:55:22] Production.INFO: ==22452== Releasing lock... [2025-02-08 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:55:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-08 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:56:05 [end_date_ymd] => 2025-02-08 10:56:05 [RateCDR] => 1 ) [2025-02-08 10:56: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` >= '2025-02-08 07:56:05' and `end` < '2025-02-08 10:56: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 ,'') [2025-02-08 10:56:18] Production.INFO: count ==1312 [2025-02-08 10:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:56:05 - End Time 2025-02-08 10:56:05 [2025-02-08 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429247', 'tblTempUsageDetail_20' ) start [2025-02-08 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429247', 'tblTempUsageDetail_20' ) end [2025-02-08 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429247', 'tblTempVendorCDR_20' ) start [2025-02-08 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429247', 'tblTempVendorCDR_20' ) end [2025-02-08 10:56:19] Production.INFO: ProcessCDR(1,14429247,1,1,2) [2025-02-08 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429247', 'tblTempUsageDetail_20' ) start [2025-02-08 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429247', 'tblTempUsageDetail_20' ) end [2025-02-08 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:56:23] Production.INFO: ==22540== Releasing lock... [2025-02-08 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:56:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:57:05 [end_date_ymd] => 2025-02-08 10:57:05 [RateCDR] => 1 ) [2025-02-08 10:57: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` >= '2025-02-08 07:57:05' and `end` < '2025-02-08 10:57: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 ,'') [2025-02-08 10:57:18] Production.INFO: count ==1319 [2025-02-08 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:57:05 - End Time 2025-02-08 10:57:05 [2025-02-08 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429252', 'tblTempUsageDetail_20' ) start [2025-02-08 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429252', 'tblTempUsageDetail_20' ) end [2025-02-08 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429252', 'tblTempVendorCDR_20' ) start [2025-02-08 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429252', 'tblTempVendorCDR_20' ) end [2025-02-08 10:57:19] Production.INFO: ProcessCDR(1,14429252,1,1,2) [2025-02-08 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429252', 'tblTempUsageDetail_20' ) start [2025-02-08 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429252', 'tblTempUsageDetail_20' ) end [2025-02-08 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:57:22] Production.INFO: ==22624== Releasing lock... [2025-02-08 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:57:22] Production.INFO: 38 MB #Memory Used# [2025-02-08 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:58:05 [end_date_ymd] => 2025-02-08 10:58:05 [RateCDR] => 1 ) [2025-02-08 10:58: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` >= '2025-02-08 07:58:05' and `end` < '2025-02-08 10:58: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 ,'') [2025-02-08 10:58:18] Production.INFO: count ==1334 [2025-02-08 10:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 07:58:05 - End Time 2025-02-08 10:58:05 [2025-02-08 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429257', 'tblTempUsageDetail_20' ) start [2025-02-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429257', 'tblTempUsageDetail_20' ) end [2025-02-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429257', 'tblTempVendorCDR_20' ) start [2025-02-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429257', 'tblTempVendorCDR_20' ) end [2025-02-08 10:58:18] Production.INFO: ProcessCDR(1,14429257,1,1,2) [2025-02-08 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429257', 'tblTempUsageDetail_20' ) start [2025-02-08 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429257', 'tblTempUsageDetail_20' ) end [2025-02-08 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:58:23] Production.INFO: ==22752== Releasing lock... [2025-02-08 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:58:23] Production.INFO: 38 MB #Memory Used# [2025-02-08 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 07:59:05 [end_date_ymd] => 2025-02-08 10:59:05 [RateCDR] => 1 ) [2025-02-08 10:59: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` >= '2025-02-08 07:59:05' and `end` < '2025-02-08 10:59: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 ,'') [2025-02-08 10:59:18] Production.INFO: count ==1352 [2025-02-08 10:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 07:59:05 - End Time 2025-02-08 10:59:05 [2025-02-08 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429262', 'tblTempUsageDetail_20' ) start [2025-02-08 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429262', 'tblTempUsageDetail_20' ) end [2025-02-08 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429262', 'tblTempVendorCDR_20' ) start [2025-02-08 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429262', 'tblTempVendorCDR_20' ) end [2025-02-08 10:59:19] Production.INFO: ProcessCDR(1,14429262,1,1,2) [2025-02-08 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429262', 'tblTempUsageDetail_20' ) start [2025-02-08 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429262', 'tblTempUsageDetail_20' ) end [2025-02-08 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 10:59:23] Production.INFO: ==22836== Releasing lock... [2025-02-08 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 10:59:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:00:06 [end_date_ymd] => 2025-02-08 11:00:06 [RateCDR] => 1 ) [2025-02-08 11: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-02-08 08:00:06' and `end` < '2025-02-08 11: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-02-08 11:00:19] Production.INFO: count ==1357 [2025-02-08 11:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:00:06 - End Time 2025-02-08 11:00:06 [2025-02-08 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429268', 'tblTempUsageDetail_20' ) start [2025-02-08 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429268', 'tblTempUsageDetail_20' ) end [2025-02-08 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429268', 'tblTempVendorCDR_20' ) start [2025-02-08 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429268', 'tblTempVendorCDR_20' ) end [2025-02-08 11:00:20] Production.INFO: ProcessCDR(1,14429268,1,1,2) [2025-02-08 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429268', 'tblTempUsageDetail_20' ) start [2025-02-08 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429268', 'tblTempUsageDetail_20' ) end [2025-02-08 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:00:25] Production.INFO: ==22926== Releasing lock... [2025-02-08 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:00:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-08 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:01:05 [end_date_ymd] => 2025-02-08 11:01:05 [RateCDR] => 1 ) [2025-02-08 11: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` >= '2025-02-08 08:01:05' and `end` < '2025-02-08 11: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 ,'') [2025-02-08 11:01:18] Production.INFO: count ==1369 [2025-02-08 11:01:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:01:05 - End Time 2025-02-08 11:01:05 [2025-02-08 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429273', 'tblTempUsageDetail_20' ) start [2025-02-08 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429273', 'tblTempUsageDetail_20' ) end [2025-02-08 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429273', 'tblTempVendorCDR_20' ) start [2025-02-08 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429273', 'tblTempVendorCDR_20' ) end [2025-02-08 11:01:19] Production.INFO: ProcessCDR(1,14429273,1,1,2) [2025-02-08 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429273', 'tblTempUsageDetail_20' ) start [2025-02-08 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429273', 'tblTempUsageDetail_20' ) end [2025-02-08 11:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:01:22] Production.INFO: ==23110== Releasing lock... [2025-02-08 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:01:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:02:05 [end_date_ymd] => 2025-02-08 11:02:05 [RateCDR] => 1 ) [2025-02-08 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 08:02:05' and `end` < '2025-02-08 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 11:02:19] Production.INFO: count ==1368 [2025-02-08 11:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:02:05 - End Time 2025-02-08 11:02:05 [2025-02-08 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429278', 'tblTempUsageDetail_20' ) start [2025-02-08 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429278', 'tblTempUsageDetail_20' ) end [2025-02-08 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429278', 'tblTempVendorCDR_20' ) start [2025-02-08 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429278', 'tblTempVendorCDR_20' ) end [2025-02-08 11:02:19] Production.INFO: ProcessCDR(1,14429278,1,1,2) [2025-02-08 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429278', 'tblTempUsageDetail_20' ) start [2025-02-08 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429278', 'tblTempUsageDetail_20' ) end [2025-02-08 11:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:02:23] Production.INFO: ==23196== Releasing lock... [2025-02-08 11:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:02:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:03:05 [end_date_ymd] => 2025-02-08 11:03:05 [RateCDR] => 1 ) [2025-02-08 11:03: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` >= '2025-02-08 08:03:05' and `end` < '2025-02-08 11:03: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 ,'') [2025-02-08 11:03:18] Production.INFO: count ==1372 [2025-02-08 11:03:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:03:05 - End Time 2025-02-08 11:03:05 [2025-02-08 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429283', 'tblTempUsageDetail_20' ) start [2025-02-08 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429283', 'tblTempUsageDetail_20' ) end [2025-02-08 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429283', 'tblTempVendorCDR_20' ) start [2025-02-08 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429283', 'tblTempVendorCDR_20' ) end [2025-02-08 11:03:19] Production.INFO: ProcessCDR(1,14429283,1,1,2) [2025-02-08 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429283', 'tblTempUsageDetail_20' ) start [2025-02-08 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429283', 'tblTempUsageDetail_20' ) end [2025-02-08 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:03:24] Production.INFO: ==23287== Releasing lock... [2025-02-08 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:03:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:04:05 [end_date_ymd] => 2025-02-08 11:04:05 [RateCDR] => 1 ) [2025-02-08 11:04: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` >= '2025-02-08 08:04:05' and `end` < '2025-02-08 11:04: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 ,'') [2025-02-08 11:04:18] Production.INFO: count ==1380 [2025-02-08 11:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:04:05 - End Time 2025-02-08 11:04:05 [2025-02-08 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429288', 'tblTempUsageDetail_20' ) start [2025-02-08 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429288', 'tblTempUsageDetail_20' ) end [2025-02-08 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429288', 'tblTempVendorCDR_20' ) start [2025-02-08 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429288', 'tblTempVendorCDR_20' ) end [2025-02-08 11:04:19] Production.INFO: ProcessCDR(1,14429288,1,1,2) [2025-02-08 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429288', 'tblTempUsageDetail_20' ) start [2025-02-08 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429288', 'tblTempUsageDetail_20' ) end [2025-02-08 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:04:24] Production.INFO: ==23379== Releasing lock... [2025-02-08 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:04:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-08 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:05:05 [end_date_ymd] => 2025-02-08 11:05:05 [RateCDR] => 1 ) [2025-02-08 11:05: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` >= '2025-02-08 08:05:05' and `end` < '2025-02-08 11:05: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 ,'') [2025-02-08 11:05:18] Production.INFO: count ==1380 [2025-02-08 11:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:05:05 - End Time 2025-02-08 11:05:05 [2025-02-08 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429293', 'tblTempUsageDetail_20' ) start [2025-02-08 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429293', 'tblTempUsageDetail_20' ) end [2025-02-08 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429293', 'tblTempVendorCDR_20' ) start [2025-02-08 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429293', 'tblTempVendorCDR_20' ) end [2025-02-08 11:05:19] Production.INFO: ProcessCDR(1,14429293,1,1,2) [2025-02-08 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429293', 'tblTempUsageDetail_20' ) start [2025-02-08 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429293', 'tblTempUsageDetail_20' ) end [2025-02-08 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:05:23] Production.INFO: ==23547== Releasing lock... [2025-02-08 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:05:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-08 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:06:05 [end_date_ymd] => 2025-02-08 11:06:05 [RateCDR] => 1 ) [2025-02-08 11:06: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` >= '2025-02-08 08:06:05' and `end` < '2025-02-08 11:06: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 ,'') [2025-02-08 11:06:18] Production.INFO: count ==1376 [2025-02-08 11:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:06:05 - End Time 2025-02-08 11:06:05 [2025-02-08 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429298', 'tblTempUsageDetail_20' ) start [2025-02-08 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429298', 'tblTempUsageDetail_20' ) end [2025-02-08 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429298', 'tblTempVendorCDR_20' ) start [2025-02-08 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429298', 'tblTempVendorCDR_20' ) end [2025-02-08 11:06:19] Production.INFO: ProcessCDR(1,14429298,1,1,2) [2025-02-08 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429298', 'tblTempUsageDetail_20' ) start [2025-02-08 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429298', 'tblTempUsageDetail_20' ) end [2025-02-08 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:06:22] Production.INFO: ==23648== Releasing lock... [2025-02-08 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:06:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:07:06 [end_date_ymd] => 2025-02-08 11:07:06 [RateCDR] => 1 ) [2025-02-08 11:07: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-02-08 08:07:06' and `end` < '2025-02-08 11:07: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-02-08 11:07:19] Production.INFO: count ==1375 [2025-02-08 11:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:07:06 - End Time 2025-02-08 11:07:06 [2025-02-08 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429303', 'tblTempUsageDetail_20' ) start [2025-02-08 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429303', 'tblTempUsageDetail_20' ) end [2025-02-08 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429303', 'tblTempVendorCDR_20' ) start [2025-02-08 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429303', 'tblTempVendorCDR_20' ) end [2025-02-08 11:07:19] Production.INFO: ProcessCDR(1,14429303,1,1,2) [2025-02-08 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429303', 'tblTempUsageDetail_20' ) start [2025-02-08 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429303', 'tblTempUsageDetail_20' ) end [2025-02-08 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:07:24] Production.INFO: ==23746== Releasing lock... [2025-02-08 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:07:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:08:05 [end_date_ymd] => 2025-02-08 11:08:05 [RateCDR] => 1 ) [2025-02-08 11:08: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` >= '2025-02-08 08:08:05' and `end` < '2025-02-08 11:08: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 ,'') [2025-02-08 11:08:19] Production.INFO: count ==1372 [2025-02-08 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:08:05 - End Time 2025-02-08 11:08:05 [2025-02-08 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429308', 'tblTempUsageDetail_20' ) start [2025-02-08 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429308', 'tblTempUsageDetail_20' ) end [2025-02-08 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429308', 'tblTempVendorCDR_20' ) start [2025-02-08 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429308', 'tblTempVendorCDR_20' ) end [2025-02-08 11:08:20] Production.INFO: ProcessCDR(1,14429308,1,1,2) [2025-02-08 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429308', 'tblTempUsageDetail_20' ) start [2025-02-08 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429308', 'tblTempUsageDetail_20' ) end [2025-02-08 11:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:08:24] Production.INFO: ==23927== Releasing lock... [2025-02-08 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:08:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-08 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:09:06 [end_date_ymd] => 2025-02-08 11:09:06 [RateCDR] => 1 ) [2025-02-08 11:09: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-02-08 08:09:06' and `end` < '2025-02-08 11:09: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-02-08 11:09:19] Production.INFO: count ==1379 [2025-02-08 11:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:09:06 - End Time 2025-02-08 11:09:06 [2025-02-08 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429313', 'tblTempUsageDetail_20' ) start [2025-02-08 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429313', 'tblTempUsageDetail_20' ) end [2025-02-08 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429313', 'tblTempVendorCDR_20' ) start [2025-02-08 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429313', 'tblTempVendorCDR_20' ) end [2025-02-08 11:09:19] Production.INFO: ProcessCDR(1,14429313,1,1,2) [2025-02-08 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429313', 'tblTempUsageDetail_20' ) start [2025-02-08 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429313', 'tblTempUsageDetail_20' ) end [2025-02-08 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:09:23] Production.INFO: ==24026== Releasing lock... [2025-02-08 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:09:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:10:07 [end_date_ymd] => 2025-02-08 11:10:07 [RateCDR] => 1 ) [2025-02-08 11:10: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-02-08 08:10:07' and `end` < '2025-02-08 11:10: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-02-08 11:10:20] Production.INFO: count ==1381 [2025-02-08 11:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:10:07 - End Time 2025-02-08 11:10:07 [2025-02-08 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429319', 'tblTempUsageDetail_20' ) start [2025-02-08 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429319', 'tblTempUsageDetail_20' ) end [2025-02-08 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429319', 'tblTempVendorCDR_20' ) start [2025-02-08 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429319', 'tblTempVendorCDR_20' ) end [2025-02-08 11:10:20] Production.INFO: ProcessCDR(1,14429319,1,1,2) [2025-02-08 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429319', 'tblTempUsageDetail_20' ) start [2025-02-08 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429319', 'tblTempUsageDetail_20' ) end [2025-02-08 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:10:26] Production.INFO: ==24124== Releasing lock... [2025-02-08 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:10:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:11:06 [end_date_ymd] => 2025-02-08 11:11:06 [RateCDR] => 1 ) [2025-02-08 11:11: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-02-08 08:11:06' and `end` < '2025-02-08 11:11: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-02-08 11:11:19] Production.INFO: count ==1415 [2025-02-08 11:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:11:06 - End Time 2025-02-08 11:11:06 [2025-02-08 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429324', 'tblTempUsageDetail_20' ) start [2025-02-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429324', 'tblTempUsageDetail_20' ) end [2025-02-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429324', 'tblTempVendorCDR_20' ) start [2025-02-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429324', 'tblTempVendorCDR_20' ) end [2025-02-08 11:11:19] Production.INFO: ProcessCDR(1,14429324,1,1,2) [2025-02-08 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429324', 'tblTempUsageDetail_20' ) start [2025-02-08 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429324', 'tblTempUsageDetail_20' ) end [2025-02-08 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:11:23] Production.INFO: ==24221== Releasing lock... [2025-02-08 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:11:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:12:05 [end_date_ymd] => 2025-02-08 11:12:05 [RateCDR] => 1 ) [2025-02-08 11:12: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` >= '2025-02-08 08:12:05' and `end` < '2025-02-08 11:12: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 ,'') [2025-02-08 11:12:19] Production.INFO: count ==1415 [2025-02-08 11:12:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:12:05 - End Time 2025-02-08 11:12:05 [2025-02-08 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429329', 'tblTempUsageDetail_20' ) start [2025-02-08 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429329', 'tblTempUsageDetail_20' ) end [2025-02-08 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429329', 'tblTempVendorCDR_20' ) start [2025-02-08 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429329', 'tblTempVendorCDR_20' ) end [2025-02-08 11:12:20] Production.INFO: ProcessCDR(1,14429329,1,1,2) [2025-02-08 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429329', 'tblTempUsageDetail_20' ) start [2025-02-08 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429329', 'tblTempUsageDetail_20' ) end [2025-02-08 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:12:25] Production.INFO: ==24387== Releasing lock... [2025-02-08 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:12:25] Production.INFO: 39 MB #Memory Used# [2025-02-08 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:13:05 [end_date_ymd] => 2025-02-08 11:13:05 [RateCDR] => 1 ) [2025-02-08 11:13: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` >= '2025-02-08 08:13:05' and `end` < '2025-02-08 11:13: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 ,'') [2025-02-08 11:13:18] Production.INFO: count ==1420 [2025-02-08 11:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:13:05 - End Time 2025-02-08 11:13:05 [2025-02-08 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429334', 'tblTempUsageDetail_20' ) start [2025-02-08 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429334', 'tblTempUsageDetail_20' ) end [2025-02-08 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429334', 'tblTempVendorCDR_20' ) start [2025-02-08 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429334', 'tblTempVendorCDR_20' ) end [2025-02-08 11:13:19] Production.INFO: ProcessCDR(1,14429334,1,1,2) [2025-02-08 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429334', 'tblTempUsageDetail_20' ) start [2025-02-08 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429334', 'tblTempUsageDetail_20' ) end [2025-02-08 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:13:23] Production.INFO: ==24515== Releasing lock... [2025-02-08 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:14:05 [end_date_ymd] => 2025-02-08 11:14:05 [RateCDR] => 1 ) [2025-02-08 11:14: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` >= '2025-02-08 08:14:05' and `end` < '2025-02-08 11:14: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 ,'') [2025-02-08 11:14:19] Production.INFO: count ==1421 [2025-02-08 11:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:14:05 - End Time 2025-02-08 11:14:05 [2025-02-08 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429339', 'tblTempUsageDetail_20' ) start [2025-02-08 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429339', 'tblTempUsageDetail_20' ) end [2025-02-08 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429339', 'tblTempVendorCDR_20' ) start [2025-02-08 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429339', 'tblTempVendorCDR_20' ) end [2025-02-08 11:14:19] Production.INFO: ProcessCDR(1,14429339,1,1,2) [2025-02-08 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429339', 'tblTempUsageDetail_20' ) start [2025-02-08 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429339', 'tblTempUsageDetail_20' ) end [2025-02-08 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:14:25] Production.INFO: ==24610== Releasing lock... [2025-02-08 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:14:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:15:06 [end_date_ymd] => 2025-02-08 11:15:06 [RateCDR] => 1 ) [2025-02-08 11:15: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-02-08 08:15:06' and `end` < '2025-02-08 11:15: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-02-08 11:15:19] Production.INFO: count ==1421 [2025-02-08 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:15:06 - End Time 2025-02-08 11:15:06 [2025-02-08 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429344', 'tblTempUsageDetail_20' ) start [2025-02-08 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429344', 'tblTempUsageDetail_20' ) end [2025-02-08 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429344', 'tblTempVendorCDR_20' ) start [2025-02-08 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429344', 'tblTempVendorCDR_20' ) end [2025-02-08 11:15:20] Production.INFO: ProcessCDR(1,14429344,1,1,2) [2025-02-08 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429344', 'tblTempUsageDetail_20' ) start [2025-02-08 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429344', 'tblTempUsageDetail_20' ) end [2025-02-08 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:15:25] Production.INFO: ==24781== Releasing lock... [2025-02-08 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:15:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:16:05 [end_date_ymd] => 2025-02-08 11:16:05 [RateCDR] => 1 ) [2025-02-08 11:16: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` >= '2025-02-08 08:16:05' and `end` < '2025-02-08 11:16: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 ,'') [2025-02-08 11:16:19] Production.INFO: count ==1410 [2025-02-08 11:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:16:05 - End Time 2025-02-08 11:16:05 [2025-02-08 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429349', 'tblTempUsageDetail_20' ) start [2025-02-08 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429349', 'tblTempUsageDetail_20' ) end [2025-02-08 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429349', 'tblTempVendorCDR_20' ) start [2025-02-08 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429349', 'tblTempVendorCDR_20' ) end [2025-02-08 11:16:19] Production.INFO: ProcessCDR(1,14429349,1,1,2) [2025-02-08 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429349', 'tblTempUsageDetail_20' ) start [2025-02-08 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429349', 'tblTempUsageDetail_20' ) end [2025-02-08 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:16:24] Production.INFO: ==24867== Releasing lock... [2025-02-08 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:16:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-08 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:17:06 [end_date_ymd] => 2025-02-08 11:17:06 [RateCDR] => 1 ) [2025-02-08 11:17: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-02-08 08:17:06' and `end` < '2025-02-08 11:17: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-02-08 11:17:19] Production.INFO: count ==1414 [2025-02-08 11:17:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:17:06 - End Time 2025-02-08 11:17:06 [2025-02-08 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429354', 'tblTempUsageDetail_20' ) start [2025-02-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429354', 'tblTempUsageDetail_20' ) end [2025-02-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429354', 'tblTempVendorCDR_20' ) start [2025-02-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429354', 'tblTempVendorCDR_20' ) end [2025-02-08 11:17:20] Production.INFO: ProcessCDR(1,14429354,1,1,2) [2025-02-08 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429354', 'tblTempUsageDetail_20' ) start [2025-02-08 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429354', 'tblTempUsageDetail_20' ) end [2025-02-08 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:17:25] Production.INFO: ==24953== Releasing lock... [2025-02-08 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:17:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:18:05 [end_date_ymd] => 2025-02-08 11:18:05 [RateCDR] => 1 ) [2025-02-08 11:18: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` >= '2025-02-08 08:18:05' and `end` < '2025-02-08 11:18: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 ,'') [2025-02-08 11:18:18] Production.INFO: count ==1420 [2025-02-08 11:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:18:05 - End Time 2025-02-08 11:18:05 [2025-02-08 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429359', 'tblTempUsageDetail_20' ) start [2025-02-08 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429359', 'tblTempUsageDetail_20' ) end [2025-02-08 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429359', 'tblTempVendorCDR_20' ) start [2025-02-08 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429359', 'tblTempVendorCDR_20' ) end [2025-02-08 11:18:19] Production.INFO: ProcessCDR(1,14429359,1,1,2) [2025-02-08 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429359', 'tblTempUsageDetail_20' ) start [2025-02-08 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429359', 'tblTempUsageDetail_20' ) end [2025-02-08 11:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:18:22] Production.INFO: ==25041== Releasing lock... [2025-02-08 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:19:05 [end_date_ymd] => 2025-02-08 11:19:05 [RateCDR] => 1 ) [2025-02-08 11:19: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` >= '2025-02-08 08:19:05' and `end` < '2025-02-08 11:19: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 ,'') [2025-02-08 11:19:18] Production.INFO: count ==1416 [2025-02-08 11:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:19:05 - End Time 2025-02-08 11:19:05 [2025-02-08 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429364', 'tblTempUsageDetail_20' ) start [2025-02-08 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429364', 'tblTempUsageDetail_20' ) end [2025-02-08 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429364', 'tblTempVendorCDR_20' ) start [2025-02-08 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429364', 'tblTempVendorCDR_20' ) end [2025-02-08 11:19:19] Production.INFO: ProcessCDR(1,14429364,1,1,2) [2025-02-08 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429364', 'tblTempUsageDetail_20' ) start [2025-02-08 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429364', 'tblTempUsageDetail_20' ) end [2025-02-08 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:19:24] Production.INFO: ==25115== Releasing lock... [2025-02-08 11:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:19:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:20:06 [end_date_ymd] => 2025-02-08 11:20:06 [RateCDR] => 1 ) [2025-02-08 11:20: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-02-08 08:20:06' and `end` < '2025-02-08 11:20: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-02-08 11:20:19] Production.INFO: count ==1416 [2025-02-08 11:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:20:06 - End Time 2025-02-08 11:20:06 [2025-02-08 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429370', 'tblTempUsageDetail_20' ) start [2025-02-08 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429370', 'tblTempUsageDetail_20' ) end [2025-02-08 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429370', 'tblTempVendorCDR_20' ) start [2025-02-08 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429370', 'tblTempVendorCDR_20' ) end [2025-02-08 11:20:20] Production.INFO: ProcessCDR(1,14429370,1,1,2) [2025-02-08 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429370', 'tblTempUsageDetail_20' ) start [2025-02-08 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429370', 'tblTempUsageDetail_20' ) end [2025-02-08 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:20:23] Production.INFO: ==25188== Releasing lock... [2025-02-08 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:20:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:21:05 [end_date_ymd] => 2025-02-08 11:21:05 [RateCDR] => 1 ) [2025-02-08 11:21: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` >= '2025-02-08 08:21:05' and `end` < '2025-02-08 11:21: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 ,'') [2025-02-08 11:21:18] Production.INFO: count ==1455 [2025-02-08 11:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:21:05 - End Time 2025-02-08 11:21:05 [2025-02-08 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429375', 'tblTempUsageDetail_20' ) start [2025-02-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429375', 'tblTempUsageDetail_20' ) end [2025-02-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429375', 'tblTempVendorCDR_20' ) start [2025-02-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429375', 'tblTempVendorCDR_20' ) end [2025-02-08 11:21:18] Production.INFO: ProcessCDR(1,14429375,1,1,2) [2025-02-08 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429375', 'tblTempUsageDetail_20' ) start [2025-02-08 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429375', 'tblTempUsageDetail_20' ) end [2025-02-08 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:21:23] Production.INFO: ==25261== Releasing lock... [2025-02-08 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:21:23] Production.INFO: 39 MB #Memory Used# [2025-02-08 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:22:05 [end_date_ymd] => 2025-02-08 11:22:05 [RateCDR] => 1 ) [2025-02-08 11:22: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` >= '2025-02-08 08:22:05' and `end` < '2025-02-08 11:22: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 ,'') [2025-02-08 11:22:18] Production.INFO: count ==1451 [2025-02-08 11:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:22:05 - End Time 2025-02-08 11:22:05 [2025-02-08 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429380', 'tblTempUsageDetail_20' ) start [2025-02-08 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429380', 'tblTempUsageDetail_20' ) end [2025-02-08 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429380', 'tblTempVendorCDR_20' ) start [2025-02-08 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429380', 'tblTempVendorCDR_20' ) end [2025-02-08 11:22:19] Production.INFO: ProcessCDR(1,14429380,1,1,2) [2025-02-08 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429380', 'tblTempUsageDetail_20' ) start [2025-02-08 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429380', 'tblTempUsageDetail_20' ) end [2025-02-08 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:22:22] Production.INFO: ==25334== Releasing lock... [2025-02-08 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:23:06 [end_date_ymd] => 2025-02-08 11:23:06 [RateCDR] => 1 ) [2025-02-08 11:23: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-02-08 08:23:06' and `end` < '2025-02-08 11:23: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-02-08 11:23:19] Production.INFO: count ==1446 [2025-02-08 11:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:23:06 - End Time 2025-02-08 11:23:06 [2025-02-08 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429385', 'tblTempUsageDetail_20' ) start [2025-02-08 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429385', 'tblTempUsageDetail_20' ) end [2025-02-08 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429385', 'tblTempVendorCDR_20' ) start [2025-02-08 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429385', 'tblTempVendorCDR_20' ) end [2025-02-08 11:23:19] Production.INFO: ProcessCDR(1,14429385,1,1,2) [2025-02-08 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429385', 'tblTempUsageDetail_20' ) start [2025-02-08 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429385', 'tblTempUsageDetail_20' ) end [2025-02-08 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:23:23] Production.INFO: ==25407== Releasing lock... [2025-02-08 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:23:23] Production.INFO: 39 MB #Memory Used# [2025-02-08 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:24:05 [end_date_ymd] => 2025-02-08 11:24:05 [RateCDR] => 1 ) [2025-02-08 11:24: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` >= '2025-02-08 08:24:05' and `end` < '2025-02-08 11:24: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 ,'') [2025-02-08 11:24:18] Production.INFO: count ==1447 [2025-02-08 11:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:24:05 - End Time 2025-02-08 11:24:05 [2025-02-08 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429390', 'tblTempUsageDetail_20' ) start [2025-02-08 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429390', 'tblTempUsageDetail_20' ) end [2025-02-08 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429390', 'tblTempVendorCDR_20' ) start [2025-02-08 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429390', 'tblTempVendorCDR_20' ) end [2025-02-08 11:24:19] Production.INFO: ProcessCDR(1,14429390,1,1,2) [2025-02-08 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429390', 'tblTempUsageDetail_20' ) start [2025-02-08 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429390', 'tblTempUsageDetail_20' ) end [2025-02-08 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:24:24] Production.INFO: ==25477== Releasing lock... [2025-02-08 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:25:06 [end_date_ymd] => 2025-02-08 11:25:06 [RateCDR] => 1 ) [2025-02-08 11:25: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-02-08 08:25:06' and `end` < '2025-02-08 11:25: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-02-08 11:25:19] Production.INFO: count ==1447 [2025-02-08 11:25:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:25:06 - End Time 2025-02-08 11:25:06 [2025-02-08 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429395', 'tblTempUsageDetail_20' ) start [2025-02-08 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429395', 'tblTempUsageDetail_20' ) end [2025-02-08 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429395', 'tblTempVendorCDR_20' ) start [2025-02-08 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429395', 'tblTempVendorCDR_20' ) end [2025-02-08 11:25:20] Production.INFO: ProcessCDR(1,14429395,1,1,2) [2025-02-08 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429395', 'tblTempUsageDetail_20' ) start [2025-02-08 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429395', 'tblTempUsageDetail_20' ) end [2025-02-08 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:25:23] Production.INFO: ==25552== Releasing lock... [2025-02-08 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:25:23] Production.INFO: 39 MB #Memory Used# [2025-02-08 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:26:04 [end_date_ymd] => 2025-02-08 11:26:04 [RateCDR] => 1 ) [2025-02-08 11:26:04] 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-02-08 08:26:04' and `end` < '2025-02-08 11:26:04' 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-02-08 11:26:17] Production.INFO: count ==1443 [2025-02-08 11:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:26:04 - End Time 2025-02-08 11:26:04 [2025-02-08 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429400', 'tblTempUsageDetail_20' ) start [2025-02-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429400', 'tblTempUsageDetail_20' ) end [2025-02-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429400', 'tblTempVendorCDR_20' ) start [2025-02-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429400', 'tblTempVendorCDR_20' ) end [2025-02-08 11:26:18] Production.INFO: ProcessCDR(1,14429400,1,1,2) [2025-02-08 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429400', 'tblTempUsageDetail_20' ) start [2025-02-08 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429400', 'tblTempUsageDetail_20' ) end [2025-02-08 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:26:21] Production.INFO: ==25625== Releasing lock... [2025-02-08 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:26:21] Production.INFO: 39 MB #Memory Used# [2025-02-08 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:27:05 [end_date_ymd] => 2025-02-08 11:27:05 [RateCDR] => 1 ) [2025-02-08 11:27: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` >= '2025-02-08 08:27:05' and `end` < '2025-02-08 11:27: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 ,'') [2025-02-08 11:27:18] Production.INFO: count ==1453 [2025-02-08 11:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:27:05 - End Time 2025-02-08 11:27:05 [2025-02-08 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429405', 'tblTempUsageDetail_20' ) start [2025-02-08 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429405', 'tblTempUsageDetail_20' ) end [2025-02-08 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429405', 'tblTempVendorCDR_20' ) start [2025-02-08 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429405', 'tblTempVendorCDR_20' ) end [2025-02-08 11:27:19] Production.INFO: ProcessCDR(1,14429405,1,1,2) [2025-02-08 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429405', 'tblTempUsageDetail_20' ) start [2025-02-08 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429405', 'tblTempUsageDetail_20' ) end [2025-02-08 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:27:22] Production.INFO: ==25695== Releasing lock... [2025-02-08 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:28:04 [end_date_ymd] => 2025-02-08 11:28:04 [RateCDR] => 1 ) [2025-02-08 11:28:04] 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-02-08 08:28:04' and `end` < '2025-02-08 11:28:04' 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-02-08 11:28:17] Production.INFO: count ==1453 [2025-02-08 11:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:28:04 - End Time 2025-02-08 11:28:04 [2025-02-08 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429407', 'tblTempUsageDetail_20' ) start [2025-02-08 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429407', 'tblTempUsageDetail_20' ) end [2025-02-08 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429407', 'tblTempVendorCDR_20' ) start [2025-02-08 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429407', 'tblTempVendorCDR_20' ) end [2025-02-08 11:28:18] Production.INFO: ProcessCDR(1,14429407,1,1,2) [2025-02-08 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429407', 'tblTempUsageDetail_20' ) start [2025-02-08 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429407', 'tblTempUsageDetail_20' ) end [2025-02-08 11:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:28:21] Production.INFO: ==25766== Releasing lock... [2025-02-08 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:28:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:29:06 [end_date_ymd] => 2025-02-08 11:29:06 [RateCDR] => 1 ) [2025-02-08 11:29: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-02-08 08:29:06' and `end` < '2025-02-08 11:29: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-02-08 11:29:19] Production.INFO: count ==1453 [2025-02-08 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:29:06 - End Time 2025-02-08 11:29:06 [2025-02-08 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429415', 'tblTempUsageDetail_20' ) start [2025-02-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429415', 'tblTempUsageDetail_20' ) end [2025-02-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429415', 'tblTempVendorCDR_20' ) start [2025-02-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429415', 'tblTempVendorCDR_20' ) end [2025-02-08 11:29:20] Production.INFO: ProcessCDR(1,14429415,1,1,2) [2025-02-08 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429415', 'tblTempUsageDetail_20' ) start [2025-02-08 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429415', 'tblTempUsageDetail_20' ) end [2025-02-08 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:29:23] Production.INFO: ==25875== Releasing lock... [2025-02-08 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:29:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:30:05 [end_date_ymd] => 2025-02-08 11:30:05 [RateCDR] => 1 ) [2025-02-08 11:30: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` >= '2025-02-08 08:30:05' and `end` < '2025-02-08 11:30: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 ,'') [2025-02-08 11:30:18] Production.INFO: count ==1459 [2025-02-08 11:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:30:05 - End Time 2025-02-08 11:30:05 [2025-02-08 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429421', 'tblTempUsageDetail_20' ) start [2025-02-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429421', 'tblTempUsageDetail_20' ) end [2025-02-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429421', 'tblTempVendorCDR_20' ) start [2025-02-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429421', 'tblTempVendorCDR_20' ) end [2025-02-08 11:30:19] Production.INFO: ProcessCDR(1,14429421,1,1,2) [2025-02-08 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429421', 'tblTempUsageDetail_20' ) start [2025-02-08 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429421', 'tblTempUsageDetail_20' ) end [2025-02-08 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:30:24] Production.INFO: ==25950== Releasing lock... [2025-02-08 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:30:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:31:05 [end_date_ymd] => 2025-02-08 11:31:05 [RateCDR] => 1 ) [2025-02-08 11:31: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` >= '2025-02-08 08:31:05' and `end` < '2025-02-08 11:31: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 ,'') [2025-02-08 11:31:18] Production.INFO: count ==1471 [2025-02-08 11:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:31:05 - End Time 2025-02-08 11:31:05 [2025-02-08 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429426', 'tblTempUsageDetail_20' ) start [2025-02-08 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429426', 'tblTempUsageDetail_20' ) end [2025-02-08 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429426', 'tblTempVendorCDR_20' ) start [2025-02-08 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429426', 'tblTempVendorCDR_20' ) end [2025-02-08 11:31:19] Production.INFO: ProcessCDR(1,14429426,1,1,2) [2025-02-08 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429426', 'tblTempUsageDetail_20' ) start [2025-02-08 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429426', 'tblTempUsageDetail_20' ) end [2025-02-08 11:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:31:22] Production.INFO: ==26023== Releasing lock... [2025-02-08 11:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:31:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:32:04 [end_date_ymd] => 2025-02-08 11:32:04 [RateCDR] => 1 ) [2025-02-08 11:32:04] 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-02-08 08:32:04' and `end` < '2025-02-08 11:32:04' 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-02-08 11:32:18] Production.INFO: count ==1477 [2025-02-08 11:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:32:04 - End Time 2025-02-08 11:32:04 [2025-02-08 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429431', 'tblTempUsageDetail_20' ) start [2025-02-08 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429431', 'tblTempUsageDetail_20' ) end [2025-02-08 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429431', 'tblTempVendorCDR_20' ) start [2025-02-08 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429431', 'tblTempVendorCDR_20' ) end [2025-02-08 11:32:19] Production.INFO: ProcessCDR(1,14429431,1,1,2) [2025-02-08 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429431', 'tblTempUsageDetail_20' ) start [2025-02-08 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429431', 'tblTempUsageDetail_20' ) end [2025-02-08 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:32:23] Production.INFO: ==26094== Releasing lock... [2025-02-08 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:32:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-08 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:33:05 [end_date_ymd] => 2025-02-08 11:33:05 [RateCDR] => 1 ) [2025-02-08 11:33: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` >= '2025-02-08 08:33:05' and `end` < '2025-02-08 11:33: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 ,'') [2025-02-08 11:33:18] Production.INFO: count ==1474 [2025-02-08 11:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:33:05 - End Time 2025-02-08 11:33:05 [2025-02-08 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429436', 'tblTempUsageDetail_20' ) start [2025-02-08 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429436', 'tblTempUsageDetail_20' ) end [2025-02-08 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429436', 'tblTempVendorCDR_20' ) start [2025-02-08 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429436', 'tblTempVendorCDR_20' ) end [2025-02-08 11:33:19] Production.INFO: ProcessCDR(1,14429436,1,1,2) [2025-02-08 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429436', 'tblTempUsageDetail_20' ) start [2025-02-08 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429436', 'tblTempUsageDetail_20' ) end [2025-02-08 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:33:22] Production.INFO: ==26165== Releasing lock... [2025-02-08 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:34:05 [end_date_ymd] => 2025-02-08 11:34:05 [RateCDR] => 1 ) [2025-02-08 11:34: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` >= '2025-02-08 08:34:05' and `end` < '2025-02-08 11:34: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 ,'') [2025-02-08 11:34:18] Production.INFO: count ==1478 [2025-02-08 11:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:34:05 - End Time 2025-02-08 11:34:05 [2025-02-08 11:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429441', 'tblTempUsageDetail_20' ) start [2025-02-08 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429441', 'tblTempUsageDetail_20' ) end [2025-02-08 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429441', 'tblTempVendorCDR_20' ) start [2025-02-08 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429441', 'tblTempVendorCDR_20' ) end [2025-02-08 11:34:19] Production.INFO: ProcessCDR(1,14429441,1,1,2) [2025-02-08 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429441', 'tblTempUsageDetail_20' ) start [2025-02-08 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429441', 'tblTempUsageDetail_20' ) end [2025-02-08 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:34:23] Production.INFO: ==26237== Releasing lock... [2025-02-08 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:34:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:35:05 [end_date_ymd] => 2025-02-08 11:35:05 [RateCDR] => 1 ) [2025-02-08 11:35: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` >= '2025-02-08 08:35:05' and `end` < '2025-02-08 11:35: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 ,'') [2025-02-08 11:35:18] Production.INFO: count ==1484 [2025-02-08 11:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:35:05 - End Time 2025-02-08 11:35:05 [2025-02-08 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429446', 'tblTempUsageDetail_20' ) start [2025-02-08 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429446', 'tblTempUsageDetail_20' ) end [2025-02-08 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429446', 'tblTempVendorCDR_20' ) start [2025-02-08 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429446', 'tblTempVendorCDR_20' ) end [2025-02-08 11:35:19] Production.INFO: ProcessCDR(1,14429446,1,1,2) [2025-02-08 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429446', 'tblTempUsageDetail_20' ) start [2025-02-08 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429446', 'tblTempUsageDetail_20' ) end [2025-02-08 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:35:22] Production.INFO: ==26307== Releasing lock... [2025-02-08 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:36:05 [end_date_ymd] => 2025-02-08 11:36:05 [RateCDR] => 1 ) [2025-02-08 11:36: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` >= '2025-02-08 08:36:05' and `end` < '2025-02-08 11:36: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 ,'') [2025-02-08 11:36:18] Production.INFO: count ==1485 [2025-02-08 11:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:36:05 - End Time 2025-02-08 11:36:05 [2025-02-08 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429451', 'tblTempUsageDetail_20' ) start [2025-02-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429451', 'tblTempUsageDetail_20' ) end [2025-02-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429451', 'tblTempVendorCDR_20' ) start [2025-02-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429451', 'tblTempVendorCDR_20' ) end [2025-02-08 11:36:19] Production.INFO: ProcessCDR(1,14429451,1,1,2) [2025-02-08 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429451', 'tblTempUsageDetail_20' ) start [2025-02-08 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429451', 'tblTempUsageDetail_20' ) end [2025-02-08 11:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:36:22] Production.INFO: ==26377== Releasing lock... [2025-02-08 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:36:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:37:05 [end_date_ymd] => 2025-02-08 11:37:05 [RateCDR] => 1 ) [2025-02-08 11:37: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` >= '2025-02-08 08:37:05' and `end` < '2025-02-08 11:37: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 ,'') [2025-02-08 11:37:18] Production.INFO: count ==1487 [2025-02-08 11:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:37:05 - End Time 2025-02-08 11:37:05 [2025-02-08 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429456', 'tblTempUsageDetail_20' ) start [2025-02-08 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429456', 'tblTempUsageDetail_20' ) end [2025-02-08 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429456', 'tblTempVendorCDR_20' ) start [2025-02-08 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429456', 'tblTempVendorCDR_20' ) end [2025-02-08 11:37:19] Production.INFO: ProcessCDR(1,14429456,1,1,2) [2025-02-08 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429456', 'tblTempUsageDetail_20' ) start [2025-02-08 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429456', 'tblTempUsageDetail_20' ) end [2025-02-08 11:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:37:22] Production.INFO: ==26447== Releasing lock... [2025-02-08 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:38:06 [end_date_ymd] => 2025-02-08 11:38:06 [RateCDR] => 1 ) [2025-02-08 11:38: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-02-08 08:38:06' and `end` < '2025-02-08 11:38: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-02-08 11:38:19] Production.INFO: count ==1488 [2025-02-08 11:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:38:06 - End Time 2025-02-08 11:38:06 [2025-02-08 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429461', 'tblTempUsageDetail_20' ) start [2025-02-08 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429461', 'tblTempUsageDetail_20' ) end [2025-02-08 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429461', 'tblTempVendorCDR_20' ) start [2025-02-08 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429461', 'tblTempVendorCDR_20' ) end [2025-02-08 11:38:19] Production.INFO: ProcessCDR(1,14429461,1,1,2) [2025-02-08 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429461', 'tblTempUsageDetail_20' ) start [2025-02-08 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429461', 'tblTempUsageDetail_20' ) end [2025-02-08 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:38:22] Production.INFO: ==26522== Releasing lock... [2025-02-08 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:38:22] Production.INFO: 39 MB #Memory Used# [2025-02-08 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:39:04 [end_date_ymd] => 2025-02-08 11:39:04 [RateCDR] => 1 ) [2025-02-08 11:39:04] 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-02-08 08:39:04' and `end` < '2025-02-08 11:39:04' 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-02-08 11:39:18] Production.INFO: count ==1506 [2025-02-08 11:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:39:04 - End Time 2025-02-08 11:39:04 [2025-02-08 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429466', 'tblTempUsageDetail_20' ) start [2025-02-08 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429466', 'tblTempUsageDetail_20' ) end [2025-02-08 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429466', 'tblTempVendorCDR_20' ) start [2025-02-08 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429466', 'tblTempVendorCDR_20' ) end [2025-02-08 11:39:19] Production.INFO: ProcessCDR(1,14429466,1,1,2) [2025-02-08 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429466', 'tblTempUsageDetail_20' ) start [2025-02-08 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429466', 'tblTempUsageDetail_20' ) end [2025-02-08 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:39:22] Production.INFO: ==26592== Releasing lock... [2025-02-08 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:40:06 [end_date_ymd] => 2025-02-08 11:40:06 [RateCDR] => 1 ) [2025-02-08 11:40: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-02-08 08:40:06' and `end` < '2025-02-08 11:40: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-02-08 11:40:19] Production.INFO: count ==1506 [2025-02-08 11:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:40:06 - End Time 2025-02-08 11:40:06 [2025-02-08 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429472', 'tblTempUsageDetail_20' ) start [2025-02-08 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429472', 'tblTempUsageDetail_20' ) end [2025-02-08 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429472', 'tblTempVendorCDR_20' ) start [2025-02-08 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429472', 'tblTempVendorCDR_20' ) end [2025-02-08 11:40:20] Production.INFO: ProcessCDR(1,14429472,1,1,2) [2025-02-08 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429472', 'tblTempUsageDetail_20' ) start [2025-02-08 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429472', 'tblTempUsageDetail_20' ) end [2025-02-08 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:40:24] Production.INFO: ==26666== Releasing lock... [2025-02-08 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:40:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:41:04 [end_date_ymd] => 2025-02-08 11:41:04 [RateCDR] => 1 ) [2025-02-08 11:41:04] 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-02-08 08:41:04' and `end` < '2025-02-08 11:41:04' 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-02-08 11:41:17] Production.INFO: count ==1542 [2025-02-08 11:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:41:04 - End Time 2025-02-08 11:41:04 [2025-02-08 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429477', 'tblTempUsageDetail_20' ) start [2025-02-08 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429477', 'tblTempUsageDetail_20' ) end [2025-02-08 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429477', 'tblTempVendorCDR_20' ) start [2025-02-08 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429477', 'tblTempVendorCDR_20' ) end [2025-02-08 11:41:18] Production.INFO: ProcessCDR(1,14429477,1,1,2) [2025-02-08 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429477', 'tblTempUsageDetail_20' ) start [2025-02-08 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429477', 'tblTempUsageDetail_20' ) end [2025-02-08 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:41:23] Production.INFO: ==26740== Releasing lock... [2025-02-08 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:41:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:42:05 [end_date_ymd] => 2025-02-08 11:42:05 [RateCDR] => 1 ) [2025-02-08 11:42: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` >= '2025-02-08 08:42:05' and `end` < '2025-02-08 11:42: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 ,'') [2025-02-08 11:42:18] Production.INFO: count ==1543 [2025-02-08 11:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:42:05 - End Time 2025-02-08 11:42:05 [2025-02-08 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429482', 'tblTempUsageDetail_20' ) start [2025-02-08 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429482', 'tblTempUsageDetail_20' ) end [2025-02-08 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429482', 'tblTempVendorCDR_20' ) start [2025-02-08 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429482', 'tblTempVendorCDR_20' ) end [2025-02-08 11:42:19] Production.INFO: ProcessCDR(1,14429482,1,1,2) [2025-02-08 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429482', 'tblTempUsageDetail_20' ) start [2025-02-08 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429482', 'tblTempUsageDetail_20' ) end [2025-02-08 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:42:23] Production.INFO: ==26813== Releasing lock... [2025-02-08 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:42:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:43:05 [end_date_ymd] => 2025-02-08 11:43:05 [RateCDR] => 1 ) [2025-02-08 11:43: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` >= '2025-02-08 08:43:05' and `end` < '2025-02-08 11:43: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 ,'') [2025-02-08 11:43:19] Production.INFO: count ==1543 [2025-02-08 11:43:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:43:05 - End Time 2025-02-08 11:43:05 [2025-02-08 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429487', 'tblTempUsageDetail_20' ) start [2025-02-08 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429487', 'tblTempUsageDetail_20' ) end [2025-02-08 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429487', 'tblTempVendorCDR_20' ) start [2025-02-08 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429487', 'tblTempVendorCDR_20' ) end [2025-02-08 11:43:20] Production.INFO: ProcessCDR(1,14429487,1,1,2) [2025-02-08 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429487', 'tblTempUsageDetail_20' ) start [2025-02-08 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429487', 'tblTempUsageDetail_20' ) end [2025-02-08 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:43:24] Production.INFO: ==26883== Releasing lock... [2025-02-08 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:43:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:44:05 [end_date_ymd] => 2025-02-08 11:44:05 [RateCDR] => 1 ) [2025-02-08 11:44: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` >= '2025-02-08 08:44:05' and `end` < '2025-02-08 11:44: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 ,'') [2025-02-08 11:44:18] Production.INFO: count ==1548 [2025-02-08 11:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:44:05 - End Time 2025-02-08 11:44:05 [2025-02-08 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429492', 'tblTempUsageDetail_20' ) start [2025-02-08 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429492', 'tblTempUsageDetail_20' ) end [2025-02-08 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429492', 'tblTempVendorCDR_20' ) start [2025-02-08 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429492', 'tblTempVendorCDR_20' ) end [2025-02-08 11:44:19] Production.INFO: ProcessCDR(1,14429492,1,1,2) [2025-02-08 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429492', 'tblTempUsageDetail_20' ) start [2025-02-08 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429492', 'tblTempUsageDetail_20' ) end [2025-02-08 11:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:44:24] Production.INFO: ==26994== Releasing lock... [2025-02-08 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:44:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:45:05 [end_date_ymd] => 2025-02-08 11:45:05 [RateCDR] => 1 ) [2025-02-08 11:45: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` >= '2025-02-08 08:45:05' and `end` < '2025-02-08 11:45: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 ,'') [2025-02-08 11:45:18] Production.INFO: count ==1552 [2025-02-08 11:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:45:05 - End Time 2025-02-08 11:45:05 [2025-02-08 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429497', 'tblTempUsageDetail_20' ) start [2025-02-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429497', 'tblTempUsageDetail_20' ) end [2025-02-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429497', 'tblTempVendorCDR_20' ) start [2025-02-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429497', 'tblTempVendorCDR_20' ) end [2025-02-08 11:45:19] Production.INFO: ProcessCDR(1,14429497,1,1,2) [2025-02-08 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429497', 'tblTempUsageDetail_20' ) start [2025-02-08 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429497', 'tblTempUsageDetail_20' ) end [2025-02-08 11:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:45:24] Production.INFO: ==27071== Releasing lock... [2025-02-08 11:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:45:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:46:05 [end_date_ymd] => 2025-02-08 11:46:05 [RateCDR] => 1 ) [2025-02-08 11:46: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` >= '2025-02-08 08:46:05' and `end` < '2025-02-08 11:46: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 ,'') [2025-02-08 11:46:18] Production.INFO: count ==1554 [2025-02-08 11:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:46:05 - End Time 2025-02-08 11:46:05 [2025-02-08 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429502', 'tblTempUsageDetail_20' ) start [2025-02-08 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429502', 'tblTempUsageDetail_20' ) end [2025-02-08 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429502', 'tblTempVendorCDR_20' ) start [2025-02-08 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429502', 'tblTempVendorCDR_20' ) end [2025-02-08 11:46:19] Production.INFO: ProcessCDR(1,14429502,1,1,2) [2025-02-08 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429502', 'tblTempUsageDetail_20' ) start [2025-02-08 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429502', 'tblTempUsageDetail_20' ) end [2025-02-08 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:46:22] Production.INFO: ==27141== Releasing lock... [2025-02-08 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:46:22] Production.INFO: 40 MB #Memory Used# [2025-02-08 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:47:05 [end_date_ymd] => 2025-02-08 11:47:05 [RateCDR] => 1 ) [2025-02-08 11:47: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` >= '2025-02-08 08:47:05' and `end` < '2025-02-08 11:47: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 ,'') [2025-02-08 11:47:18] Production.INFO: count ==1561 [2025-02-08 11:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:47:05 - End Time 2025-02-08 11:47:05 [2025-02-08 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429507', 'tblTempUsageDetail_20' ) start [2025-02-08 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429507', 'tblTempUsageDetail_20' ) end [2025-02-08 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429507', 'tblTempVendorCDR_20' ) start [2025-02-08 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429507', 'tblTempVendorCDR_20' ) end [2025-02-08 11:47:19] Production.INFO: ProcessCDR(1,14429507,1,1,2) [2025-02-08 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429507', 'tblTempUsageDetail_20' ) start [2025-02-08 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429507', 'tblTempUsageDetail_20' ) end [2025-02-08 11:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:47:24] Production.INFO: ==27213== Releasing lock... [2025-02-08 11:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:47:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:48:05 [end_date_ymd] => 2025-02-08 11:48:05 [RateCDR] => 1 ) [2025-02-08 11:48: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` >= '2025-02-08 08:48:05' and `end` < '2025-02-08 11:48: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 ,'') [2025-02-08 11:48:19] Production.INFO: count ==1568 [2025-02-08 11:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:48:05 - End Time 2025-02-08 11:48:05 [2025-02-08 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429512', 'tblTempUsageDetail_20' ) start [2025-02-08 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429512', 'tblTempUsageDetail_20' ) end [2025-02-08 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429512', 'tblTempVendorCDR_20' ) start [2025-02-08 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429512', 'tblTempVendorCDR_20' ) end [2025-02-08 11:48:19] Production.INFO: ProcessCDR(1,14429512,1,1,2) [2025-02-08 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429512', 'tblTempUsageDetail_20' ) start [2025-02-08 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429512', 'tblTempUsageDetail_20' ) end [2025-02-08 11:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:48:24] Production.INFO: ==27287== Releasing lock... [2025-02-08 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:48:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:49:05 [end_date_ymd] => 2025-02-08 11:49:05 [RateCDR] => 1 ) [2025-02-08 11:49: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` >= '2025-02-08 08:49:05' and `end` < '2025-02-08 11:49: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 ,'') [2025-02-08 11:49:18] Production.INFO: count ==1574 [2025-02-08 11:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:49:05 - End Time 2025-02-08 11:49:05 [2025-02-08 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429517', 'tblTempUsageDetail_20' ) start [2025-02-08 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429517', 'tblTempUsageDetail_20' ) end [2025-02-08 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429517', 'tblTempVendorCDR_20' ) start [2025-02-08 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429517', 'tblTempVendorCDR_20' ) end [2025-02-08 11:49:19] Production.INFO: ProcessCDR(1,14429517,1,1,2) [2025-02-08 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429517', 'tblTempUsageDetail_20' ) start [2025-02-08 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429517', 'tblTempUsageDetail_20' ) end [2025-02-08 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:49:23] Production.INFO: ==27361== Releasing lock... [2025-02-08 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:49:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:50:06 [end_date_ymd] => 2025-02-08 11:50:06 [RateCDR] => 1 ) [2025-02-08 11:50: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-02-08 08:50:06' and `end` < '2025-02-08 11:50: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-02-08 11:50:19] Production.INFO: count ==1573 [2025-02-08 11:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:50:06 - End Time 2025-02-08 11:50:06 [2025-02-08 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429523', 'tblTempUsageDetail_20' ) start [2025-02-08 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429523', 'tblTempUsageDetail_20' ) end [2025-02-08 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429523', 'tblTempVendorCDR_20' ) start [2025-02-08 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429523', 'tblTempVendorCDR_20' ) end [2025-02-08 11:50:20] Production.INFO: ProcessCDR(1,14429523,1,1,2) [2025-02-08 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429523', 'tblTempUsageDetail_20' ) start [2025-02-08 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429523', 'tblTempUsageDetail_20' ) end [2025-02-08 11:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:50:25] Production.INFO: ==27434== Releasing lock... [2025-02-08 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:50:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:51:05 [end_date_ymd] => 2025-02-08 11:51:05 [RateCDR] => 1 ) [2025-02-08 11:51: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` >= '2025-02-08 08:51:05' and `end` < '2025-02-08 11:51: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 ,'') [2025-02-08 11:51:18] Production.INFO: count ==1634 [2025-02-08 11:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:51:05 - End Time 2025-02-08 11:51:05 [2025-02-08 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429528', 'tblTempUsageDetail_20' ) start [2025-02-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429528', 'tblTempUsageDetail_20' ) end [2025-02-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429528', 'tblTempVendorCDR_20' ) start [2025-02-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429528', 'tblTempVendorCDR_20' ) end [2025-02-08 11:51:18] Production.INFO: ProcessCDR(1,14429528,1,1,2) [2025-02-08 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429528', 'tblTempUsageDetail_20' ) start [2025-02-08 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429528', 'tblTempUsageDetail_20' ) end [2025-02-08 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:51:23] Production.INFO: ==27508== Releasing lock... [2025-02-08 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:51:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:52:05 [end_date_ymd] => 2025-02-08 11:52:05 [RateCDR] => 1 ) [2025-02-08 11:52: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` >= '2025-02-08 08:52:05' and `end` < '2025-02-08 11:52: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 ,'') [2025-02-08 11:52:18] Production.INFO: count ==1634 [2025-02-08 11:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:52:05 - End Time 2025-02-08 11:52:05 [2025-02-08 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429533', 'tblTempUsageDetail_20' ) start [2025-02-08 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429533', 'tblTempUsageDetail_20' ) end [2025-02-08 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429533', 'tblTempVendorCDR_20' ) start [2025-02-08 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429533', 'tblTempVendorCDR_20' ) end [2025-02-08 11:52:19] Production.INFO: ProcessCDR(1,14429533,1,1,2) [2025-02-08 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429533', 'tblTempUsageDetail_20' ) start [2025-02-08 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429533', 'tblTempUsageDetail_20' ) end [2025-02-08 11:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:52:24] Production.INFO: ==27579== Releasing lock... [2025-02-08 11:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:52:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:53:05 [end_date_ymd] => 2025-02-08 11:53:05 [RateCDR] => 1 ) [2025-02-08 11:53: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` >= '2025-02-08 08:53:05' and `end` < '2025-02-08 11:53: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 ,'') [2025-02-08 11:53:19] Production.INFO: count ==1641 [2025-02-08 11:53:20] Production.ERROR: pbx CDR StartTime 2025-02-08 08:53:05 - End Time 2025-02-08 11:53:05 [2025-02-08 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429538', 'tblTempUsageDetail_20' ) start [2025-02-08 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429538', 'tblTempUsageDetail_20' ) end [2025-02-08 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429538', 'tblTempVendorCDR_20' ) start [2025-02-08 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429538', 'tblTempVendorCDR_20' ) end [2025-02-08 11:53:20] Production.INFO: ProcessCDR(1,14429538,1,1,2) [2025-02-08 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429538', 'tblTempUsageDetail_20' ) start [2025-02-08 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429538', 'tblTempUsageDetail_20' ) end [2025-02-08 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:53:25] Production.INFO: ==27651== Releasing lock... [2025-02-08 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:53:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:54:05 [end_date_ymd] => 2025-02-08 11:54:05 [RateCDR] => 1 ) [2025-02-08 11:54: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` >= '2025-02-08 08:54:05' and `end` < '2025-02-08 11:54: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 ,'') [2025-02-08 11:54:18] Production.INFO: count ==1645 [2025-02-08 11:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:54:05 - End Time 2025-02-08 11:54:05 [2025-02-08 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429543', 'tblTempUsageDetail_20' ) start [2025-02-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429543', 'tblTempUsageDetail_20' ) end [2025-02-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429543', 'tblTempVendorCDR_20' ) start [2025-02-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429543', 'tblTempVendorCDR_20' ) end [2025-02-08 11:54:19] Production.INFO: ProcessCDR(1,14429543,1,1,2) [2025-02-08 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429543', 'tblTempUsageDetail_20' ) start [2025-02-08 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429543', 'tblTempUsageDetail_20' ) end [2025-02-08 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:54:24] Production.INFO: ==27724== Releasing lock... [2025-02-08 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:54:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:55:05 [end_date_ymd] => 2025-02-08 11:55:05 [RateCDR] => 1 ) [2025-02-08 11:55: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` >= '2025-02-08 08:55:05' and `end` < '2025-02-08 11:55: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 ,'') [2025-02-08 11:55:18] Production.INFO: count ==1662 [2025-02-08 11:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:55:05 - End Time 2025-02-08 11:55:05 [2025-02-08 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429548', 'tblTempUsageDetail_20' ) start [2025-02-08 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429548', 'tblTempUsageDetail_20' ) end [2025-02-08 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429548', 'tblTempVendorCDR_20' ) start [2025-02-08 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429548', 'tblTempVendorCDR_20' ) end [2025-02-08 11:55:19] Production.INFO: ProcessCDR(1,14429548,1,1,2) [2025-02-08 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429548', 'tblTempUsageDetail_20' ) start [2025-02-08 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429548', 'tblTempUsageDetail_20' ) end [2025-02-08 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:55:23] Production.INFO: ==27793== Releasing lock... [2025-02-08 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:55:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:56:05 [end_date_ymd] => 2025-02-08 11:56:05 [RateCDR] => 1 ) [2025-02-08 11:56: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` >= '2025-02-08 08:56:05' and `end` < '2025-02-08 11:56: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 ,'') [2025-02-08 11:56:18] Production.INFO: count ==1663 [2025-02-08 11:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:56:05 - End Time 2025-02-08 11:56:05 [2025-02-08 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429553', 'tblTempUsageDetail_20' ) start [2025-02-08 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429553', 'tblTempUsageDetail_20' ) end [2025-02-08 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429553', 'tblTempVendorCDR_20' ) start [2025-02-08 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429553', 'tblTempVendorCDR_20' ) end [2025-02-08 11:56:19] Production.INFO: ProcessCDR(1,14429553,1,1,2) [2025-02-08 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429553', 'tblTempUsageDetail_20' ) start [2025-02-08 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429553', 'tblTempUsageDetail_20' ) end [2025-02-08 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:56:23] Production.INFO: ==27867== Releasing lock... [2025-02-08 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:56:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:57:05 [end_date_ymd] => 2025-02-08 11:57:05 [RateCDR] => 1 ) [2025-02-08 11:57: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` >= '2025-02-08 08:57:05' and `end` < '2025-02-08 11:57: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 ,'') [2025-02-08 11:57:18] Production.INFO: count ==1662 [2025-02-08 11:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 08:57:05 - End Time 2025-02-08 11:57:05 [2025-02-08 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429558', 'tblTempUsageDetail_20' ) start [2025-02-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429558', 'tblTempUsageDetail_20' ) end [2025-02-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429558', 'tblTempVendorCDR_20' ) start [2025-02-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429558', 'tblTempVendorCDR_20' ) end [2025-02-08 11:57:18] Production.INFO: ProcessCDR(1,14429558,1,1,2) [2025-02-08 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429558', 'tblTempUsageDetail_20' ) start [2025-02-08 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429558', 'tblTempUsageDetail_20' ) end [2025-02-08 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:57:22] Production.INFO: ==27937== Releasing lock... [2025-02-08 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:57:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:58:05 [end_date_ymd] => 2025-02-08 11:58:05 [RateCDR] => 1 ) [2025-02-08 11:58: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` >= '2025-02-08 08:58:05' and `end` < '2025-02-08 11:58: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 ,'') [2025-02-08 11:58:19] Production.INFO: count ==1660 [2025-02-08 11:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:58:05 - End Time 2025-02-08 11:58:05 [2025-02-08 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429563', 'tblTempUsageDetail_20' ) start [2025-02-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429563', 'tblTempUsageDetail_20' ) end [2025-02-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429563', 'tblTempVendorCDR_20' ) start [2025-02-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429563', 'tblTempVendorCDR_20' ) end [2025-02-08 11:58:19] Production.INFO: ProcessCDR(1,14429563,1,1,2) [2025-02-08 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429563', 'tblTempUsageDetail_20' ) start [2025-02-08 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429563', 'tblTempUsageDetail_20' ) end [2025-02-08 11:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:58:24] Production.INFO: ==28009== Releasing lock... [2025-02-08 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:58:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 08:59:05 [end_date_ymd] => 2025-02-08 11:59:05 [RateCDR] => 1 ) [2025-02-08 11:59: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` >= '2025-02-08 08:59:05' and `end` < '2025-02-08 11:59: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 ,'') [2025-02-08 11:59:18] Production.INFO: count ==1661 [2025-02-08 11:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 08:59:05 - End Time 2025-02-08 11:59:05 [2025-02-08 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429568', 'tblTempUsageDetail_20' ) start [2025-02-08 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429568', 'tblTempUsageDetail_20' ) end [2025-02-08 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429568', 'tblTempVendorCDR_20' ) start [2025-02-08 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429568', 'tblTempVendorCDR_20' ) end [2025-02-08 11:59:19] Production.INFO: ProcessCDR(1,14429568,1,1,2) [2025-02-08 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429568', 'tblTempUsageDetail_20' ) start [2025-02-08 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429568', 'tblTempUsageDetail_20' ) end [2025-02-08 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 11:59:23] Production.INFO: ==28123== Releasing lock... [2025-02-08 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 11:59:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:00:06 [end_date_ymd] => 2025-02-08 12:00:06 [RateCDR] => 1 ) [2025-02-08 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 09:00:06' and `end` < '2025-02-08 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 12:00:19] Production.INFO: count ==1665 [2025-02-08 12:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:00:06 - End Time 2025-02-08 12:00:06 [2025-02-08 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429574', 'tblTempUsageDetail_20' ) start [2025-02-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429574', 'tblTempUsageDetail_20' ) end [2025-02-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429574', 'tblTempVendorCDR_20' ) start [2025-02-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429574', 'tblTempVendorCDR_20' ) end [2025-02-08 12:00:19] Production.INFO: ProcessCDR(1,14429574,1,1,2) [2025-02-08 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429574', 'tblTempUsageDetail_20' ) start [2025-02-08 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429574', 'tblTempUsageDetail_20' ) end [2025-02-08 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:00:23] Production.INFO: ==28202== Releasing lock... [2025-02-08 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:00:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:01:06 [end_date_ymd] => 2025-02-08 12:01:06 [RateCDR] => 1 ) [2025-02-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` >= '2025-02-08 09:01:06' and `end` < '2025-02-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 ,'') [2025-02-08 12:01:20] Production.INFO: count ==1679 [2025-02-08 12:01:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:01:06 - End Time 2025-02-08 12:01:06 [2025-02-08 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429579', 'tblTempUsageDetail_20' ) start [2025-02-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429579', 'tblTempUsageDetail_20' ) end [2025-02-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429579', 'tblTempVendorCDR_20' ) start [2025-02-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429579', 'tblTempVendorCDR_20' ) end [2025-02-08 12:01:21] Production.INFO: ProcessCDR(1,14429579,1,1,2) [2025-02-08 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429579', 'tblTempUsageDetail_20' ) start [2025-02-08 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429579', 'tblTempUsageDetail_20' ) end [2025-02-08 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:01:26] Production.INFO: ==28291== Releasing lock... [2025-02-08 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:01:26] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:02:05 [end_date_ymd] => 2025-02-08 12:02:05 [RateCDR] => 1 ) [2025-02-08 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 09:02:05' and `end` < '2025-02-08 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 12:02:19] Production.INFO: count ==1674 [2025-02-08 12:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:02:05 - End Time 2025-02-08 12:02:05 [2025-02-08 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429584', 'tblTempUsageDetail_20' ) start [2025-02-08 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429584', 'tblTempUsageDetail_20' ) end [2025-02-08 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429584', 'tblTempVendorCDR_20' ) start [2025-02-08 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429584', 'tblTempVendorCDR_20' ) end [2025-02-08 12:02:20] Production.INFO: ProcessCDR(1,14429584,1,1,2) [2025-02-08 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429584', 'tblTempUsageDetail_20' ) start [2025-02-08 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429584', 'tblTempUsageDetail_20' ) end [2025-02-08 12:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:02:25] Production.INFO: ==28362== Releasing lock... [2025-02-08 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:02:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:03:06 [end_date_ymd] => 2025-02-08 12:03:06 [RateCDR] => 1 ) [2025-02-08 12:03: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-02-08 09:03:06' and `end` < '2025-02-08 12:03: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-02-08 12:03:19] Production.INFO: count ==1670 [2025-02-08 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:03:06 - End Time 2025-02-08 12:03:06 [2025-02-08 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429589', 'tblTempUsageDetail_20' ) start [2025-02-08 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429589', 'tblTempUsageDetail_20' ) end [2025-02-08 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429589', 'tblTempVendorCDR_20' ) start [2025-02-08 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429589', 'tblTempVendorCDR_20' ) end [2025-02-08 12:03:20] Production.INFO: ProcessCDR(1,14429589,1,1,2) [2025-02-08 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429589', 'tblTempUsageDetail_20' ) start [2025-02-08 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429589', 'tblTempUsageDetail_20' ) end [2025-02-08 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:03:24] Production.INFO: ==28433== Releasing lock... [2025-02-08 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:03:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:04:05 [end_date_ymd] => 2025-02-08 12:04:05 [RateCDR] => 1 ) [2025-02-08 12:04: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` >= '2025-02-08 09:04:05' and `end` < '2025-02-08 12:04: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 ,'') [2025-02-08 12:04:19] Production.INFO: count ==1670 [2025-02-08 12:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:04:05 - End Time 2025-02-08 12:04:05 [2025-02-08 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429594', 'tblTempUsageDetail_20' ) start [2025-02-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429594', 'tblTempUsageDetail_20' ) end [2025-02-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429594', 'tblTempVendorCDR_20' ) start [2025-02-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429594', 'tblTempVendorCDR_20' ) end [2025-02-08 12:04:19] Production.INFO: ProcessCDR(1,14429594,1,1,2) [2025-02-08 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429594', 'tblTempUsageDetail_20' ) start [2025-02-08 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429594', 'tblTempUsageDetail_20' ) end [2025-02-08 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:04:23] Production.INFO: ==28512== Releasing lock... [2025-02-08 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:04:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:05:05 [end_date_ymd] => 2025-02-08 12:05:05 [RateCDR] => 1 ) [2025-02-08 12:05: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` >= '2025-02-08 09:05:05' and `end` < '2025-02-08 12:05: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 ,'') [2025-02-08 12:05:18] Production.INFO: count ==1670 [2025-02-08 12:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:05:05 - End Time 2025-02-08 12:05:05 [2025-02-08 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429599', 'tblTempUsageDetail_20' ) start [2025-02-08 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429599', 'tblTempUsageDetail_20' ) end [2025-02-08 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429599', 'tblTempVendorCDR_20' ) start [2025-02-08 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429599', 'tblTempVendorCDR_20' ) end [2025-02-08 12:05:19] Production.INFO: ProcessCDR(1,14429599,1,1,2) [2025-02-08 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429599', 'tblTempUsageDetail_20' ) start [2025-02-08 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429599', 'tblTempUsageDetail_20' ) end [2025-02-08 12:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:05:23] Production.INFO: ==28584== Releasing lock... [2025-02-08 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:05:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:06:05 [end_date_ymd] => 2025-02-08 12:06:05 [RateCDR] => 1 ) [2025-02-08 12:06: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` >= '2025-02-08 09:06:05' and `end` < '2025-02-08 12:06: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 ,'') [2025-02-08 12:06:18] Production.INFO: count ==1669 [2025-02-08 12:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:06:05 - End Time 2025-02-08 12:06:05 [2025-02-08 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429604', 'tblTempUsageDetail_20' ) start [2025-02-08 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429604', 'tblTempUsageDetail_20' ) end [2025-02-08 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429604', 'tblTempVendorCDR_20' ) start [2025-02-08 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429604', 'tblTempVendorCDR_20' ) end [2025-02-08 12:06:19] Production.INFO: ProcessCDR(1,14429604,1,1,2) [2025-02-08 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429604', 'tblTempUsageDetail_20' ) start [2025-02-08 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429604', 'tblTempUsageDetail_20' ) end [2025-02-08 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:06:24] Production.INFO: ==28662== Releasing lock... [2025-02-08 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:06:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:07:05 [end_date_ymd] => 2025-02-08 12:07:05 [RateCDR] => 1 ) [2025-02-08 12:07: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` >= '2025-02-08 09:07:05' and `end` < '2025-02-08 12:07: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 ,'') [2025-02-08 12:07:19] Production.INFO: count ==1665 [2025-02-08 12:07:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:07:05 - End Time 2025-02-08 12:07:05 [2025-02-08 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429609', 'tblTempUsageDetail_20' ) start [2025-02-08 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429609', 'tblTempUsageDetail_20' ) end [2025-02-08 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429609', 'tblTempVendorCDR_20' ) start [2025-02-08 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429609', 'tblTempVendorCDR_20' ) end [2025-02-08 12:07:20] Production.INFO: ProcessCDR(1,14429609,1,1,2) [2025-02-08 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429609', 'tblTempUsageDetail_20' ) start [2025-02-08 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429609', 'tblTempUsageDetail_20' ) end [2025-02-08 12:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:07:24] Production.INFO: ==28734== Releasing lock... [2025-02-08 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:07:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:08:05 [end_date_ymd] => 2025-02-08 12:08:05 [RateCDR] => 1 ) [2025-02-08 12:08: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` >= '2025-02-08 09:08:05' and `end` < '2025-02-08 12:08: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 ,'') [2025-02-08 12:08:18] Production.INFO: count ==1667 [2025-02-08 12:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:08:05 - End Time 2025-02-08 12:08:05 [2025-02-08 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429614', 'tblTempUsageDetail_20' ) start [2025-02-08 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429614', 'tblTempUsageDetail_20' ) end [2025-02-08 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429614', 'tblTempVendorCDR_20' ) start [2025-02-08 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429614', 'tblTempVendorCDR_20' ) end [2025-02-08 12:08:19] Production.INFO: ProcessCDR(1,14429614,1,1,2) [2025-02-08 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429614', 'tblTempUsageDetail_20' ) start [2025-02-08 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429614', 'tblTempUsageDetail_20' ) end [2025-02-08 12:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:08:23] Production.INFO: ==28808== Releasing lock... [2025-02-08 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:08:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:09:06 [end_date_ymd] => 2025-02-08 12:09:06 [RateCDR] => 1 ) [2025-02-08 12:09: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-02-08 09:09:06' and `end` < '2025-02-08 12:09: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-02-08 12:09:19] Production.INFO: count ==1669 [2025-02-08 12:09:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:09:06 - End Time 2025-02-08 12:09:06 [2025-02-08 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429619', 'tblTempUsageDetail_20' ) start [2025-02-08 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429619', 'tblTempUsageDetail_20' ) end [2025-02-08 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429619', 'tblTempVendorCDR_20' ) start [2025-02-08 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429619', 'tblTempVendorCDR_20' ) end [2025-02-08 12:09:20] Production.INFO: ProcessCDR(1,14429619,1,1,2) [2025-02-08 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429619', 'tblTempUsageDetail_20' ) start [2025-02-08 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429619', 'tblTempUsageDetail_20' ) end [2025-02-08 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:09:25] Production.INFO: ==28889== Releasing lock... [2025-02-08 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:09:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:10:06 [end_date_ymd] => 2025-02-08 12:10:06 [RateCDR] => 1 ) [2025-02-08 12:10: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-02-08 09:10:06' and `end` < '2025-02-08 12:10: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-02-08 12:10:20] Production.INFO: count ==1672 [2025-02-08 12:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:10:06 - End Time 2025-02-08 12:10:06 [2025-02-08 12:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429625', 'tblTempUsageDetail_20' ) start [2025-02-08 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429625', 'tblTempUsageDetail_20' ) end [2025-02-08 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429625', 'tblTempVendorCDR_20' ) start [2025-02-08 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429625', 'tblTempVendorCDR_20' ) end [2025-02-08 12:10:20] Production.INFO: ProcessCDR(1,14429625,1,1,2) [2025-02-08 12:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429625', 'tblTempUsageDetail_20' ) start [2025-02-08 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429625', 'tblTempUsageDetail_20' ) end [2025-02-08 12:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:10:24] Production.INFO: ==28965== Releasing lock... [2025-02-08 12:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:10:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:11:06 [end_date_ymd] => 2025-02-08 12:11:06 [RateCDR] => 1 ) [2025-02-08 12:11: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-02-08 09:11:06' and `end` < '2025-02-08 12:11: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-02-08 12:11:19] Production.INFO: count ==1700 [2025-02-08 12:11:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:11:06 - End Time 2025-02-08 12:11:06 [2025-02-08 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429630', 'tblTempUsageDetail_20' ) start [2025-02-08 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429630', 'tblTempUsageDetail_20' ) end [2025-02-08 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429630', 'tblTempVendorCDR_20' ) start [2025-02-08 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429630', 'tblTempVendorCDR_20' ) end [2025-02-08 12:11:20] Production.INFO: ProcessCDR(1,14429630,1,1,2) [2025-02-08 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429630', 'tblTempUsageDetail_20' ) start [2025-02-08 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429630', 'tblTempUsageDetail_20' ) end [2025-02-08 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:11:25] Production.INFO: ==29049== Releasing lock... [2025-02-08 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:11:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:12:05 [end_date_ymd] => 2025-02-08 12:12:05 [RateCDR] => 1 ) [2025-02-08 12:12: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` >= '2025-02-08 09:12:05' and `end` < '2025-02-08 12:12: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 ,'') [2025-02-08 12:12:19] Production.INFO: count ==1687 [2025-02-08 12:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:12:05 - End Time 2025-02-08 12:12:05 [2025-02-08 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429635', 'tblTempUsageDetail_20' ) start [2025-02-08 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429635', 'tblTempUsageDetail_20' ) end [2025-02-08 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429635', 'tblTempVendorCDR_20' ) start [2025-02-08 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429635', 'tblTempVendorCDR_20' ) end [2025-02-08 12:12:19] Production.INFO: ProcessCDR(1,14429635,1,1,2) [2025-02-08 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429635', 'tblTempUsageDetail_20' ) start [2025-02-08 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429635', 'tblTempUsageDetail_20' ) end [2025-02-08 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:12:24] Production.INFO: ==29145== Releasing lock... [2025-02-08 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:12:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:13:06 [end_date_ymd] => 2025-02-08 12:13:06 [RateCDR] => 1 ) [2025-02-08 12:13: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-02-08 09:13:06' and `end` < '2025-02-08 12:13: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-02-08 12:13:20] Production.INFO: count ==1693 [2025-02-08 12:13:21] Production.ERROR: pbx CDR StartTime 2025-02-08 09:13:06 - End Time 2025-02-08 12:13:06 [2025-02-08 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429640', 'tblTempUsageDetail_20' ) start [2025-02-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429640', 'tblTempUsageDetail_20' ) end [2025-02-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429640', 'tblTempVendorCDR_20' ) start [2025-02-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429640', 'tblTempVendorCDR_20' ) end [2025-02-08 12:13:21] Production.INFO: ProcessCDR(1,14429640,1,1,2) [2025-02-08 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429640', 'tblTempUsageDetail_20' ) start [2025-02-08 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429640', 'tblTempUsageDetail_20' ) end [2025-02-08 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:13:25] Production.INFO: ==29249== Releasing lock... [2025-02-08 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:13:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:14:06 [end_date_ymd] => 2025-02-08 12:14:06 [RateCDR] => 1 ) [2025-02-08 12:14: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-02-08 09:14:06' and `end` < '2025-02-08 12:14: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-02-08 12:14:19] Production.INFO: count ==1685 [2025-02-08 12:14:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:14:06 - End Time 2025-02-08 12:14:06 [2025-02-08 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429645', 'tblTempUsageDetail_20' ) start [2025-02-08 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429645', 'tblTempUsageDetail_20' ) end [2025-02-08 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429645', 'tblTempVendorCDR_20' ) start [2025-02-08 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429645', 'tblTempVendorCDR_20' ) end [2025-02-08 12:14:20] Production.INFO: ProcessCDR(1,14429645,1,1,2) [2025-02-08 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429645', 'tblTempUsageDetail_20' ) start [2025-02-08 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429645', 'tblTempUsageDetail_20' ) end [2025-02-08 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:14:25] Production.INFO: ==29346== Releasing lock... [2025-02-08 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:14:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:15:05 [end_date_ymd] => 2025-02-08 12:15:05 [RateCDR] => 1 ) [2025-02-08 12:15: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` >= '2025-02-08 09:15:05' and `end` < '2025-02-08 12:15: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 ,'') [2025-02-08 12:15:18] Production.INFO: count ==1687 [2025-02-08 12:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:15:05 - End Time 2025-02-08 12:15:05 [2025-02-08 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429650', 'tblTempUsageDetail_20' ) start [2025-02-08 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429650', 'tblTempUsageDetail_20' ) end [2025-02-08 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429650', 'tblTempVendorCDR_20' ) start [2025-02-08 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429650', 'tblTempVendorCDR_20' ) end [2025-02-08 12:15:19] Production.INFO: ProcessCDR(1,14429650,1,1,2) [2025-02-08 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429650', 'tblTempUsageDetail_20' ) start [2025-02-08 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429650', 'tblTempUsageDetail_20' ) end [2025-02-08 12:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:15:24] Production.INFO: ==29477== Releasing lock... [2025-02-08 12:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:15:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:16:05 [end_date_ymd] => 2025-02-08 12:16:05 [RateCDR] => 1 ) [2025-02-08 12:16: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` >= '2025-02-08 09:16:05' and `end` < '2025-02-08 12:16: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 ,'') [2025-02-08 12:16:19] Production.INFO: count ==1695 [2025-02-08 12:16:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:16:05 - End Time 2025-02-08 12:16:05 [2025-02-08 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429655', 'tblTempUsageDetail_20' ) start [2025-02-08 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429655', 'tblTempUsageDetail_20' ) end [2025-02-08 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429655', 'tblTempVendorCDR_20' ) start [2025-02-08 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429655', 'tblTempVendorCDR_20' ) end [2025-02-08 12:16:20] Production.INFO: ProcessCDR(1,14429655,1,1,2) [2025-02-08 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429655', 'tblTempUsageDetail_20' ) start [2025-02-08 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429655', 'tblTempUsageDetail_20' ) end [2025-02-08 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:16:25] Production.INFO: ==29555== Releasing lock... [2025-02-08 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:16:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:17:05 [end_date_ymd] => 2025-02-08 12:17:05 [RateCDR] => 1 ) [2025-02-08 12:17: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` >= '2025-02-08 09:17:05' and `end` < '2025-02-08 12:17: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 ,'') [2025-02-08 12:17:18] Production.INFO: count ==1704 [2025-02-08 12:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:17:05 - End Time 2025-02-08 12:17:05 [2025-02-08 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429660', 'tblTempUsageDetail_20' ) start [2025-02-08 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429660', 'tblTempUsageDetail_20' ) end [2025-02-08 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429660', 'tblTempVendorCDR_20' ) start [2025-02-08 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429660', 'tblTempVendorCDR_20' ) end [2025-02-08 12:17:19] Production.INFO: ProcessCDR(1,14429660,1,1,2) [2025-02-08 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429660', 'tblTempUsageDetail_20' ) start [2025-02-08 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429660', 'tblTempUsageDetail_20' ) end [2025-02-08 12:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:17:24] Production.INFO: ==29627== Releasing lock... [2025-02-08 12:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:17:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:18:05 [end_date_ymd] => 2025-02-08 12:18:05 [RateCDR] => 1 ) [2025-02-08 12:18: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` >= '2025-02-08 09:18:05' and `end` < '2025-02-08 12:18: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 ,'') [2025-02-08 12:18:19] Production.INFO: count ==1708 [2025-02-08 12:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:18:05 - End Time 2025-02-08 12:18:05 [2025-02-08 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429665', 'tblTempUsageDetail_20' ) start [2025-02-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429665', 'tblTempUsageDetail_20' ) end [2025-02-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429665', 'tblTempVendorCDR_20' ) start [2025-02-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429665', 'tblTempVendorCDR_20' ) end [2025-02-08 12:18:19] Production.INFO: ProcessCDR(1,14429665,1,1,2) [2025-02-08 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429665', 'tblTempUsageDetail_20' ) start [2025-02-08 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429665', 'tblTempUsageDetail_20' ) end [2025-02-08 12:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:18:25] Production.INFO: ==29714== Releasing lock... [2025-02-08 12:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:18:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:19:06 [end_date_ymd] => 2025-02-08 12:19:06 [RateCDR] => 1 ) [2025-02-08 12:19: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-02-08 09:19:06' and `end` < '2025-02-08 12:19: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-02-08 12:19:19] Production.INFO: count ==1715 [2025-02-08 12:19:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:19:06 - End Time 2025-02-08 12:19:06 [2025-02-08 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429670', 'tblTempUsageDetail_20' ) start [2025-02-08 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429670', 'tblTempUsageDetail_20' ) end [2025-02-08 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429670', 'tblTempVendorCDR_20' ) start [2025-02-08 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429670', 'tblTempVendorCDR_20' ) end [2025-02-08 12:19:20] Production.INFO: ProcessCDR(1,14429670,1,1,2) [2025-02-08 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429670', 'tblTempUsageDetail_20' ) start [2025-02-08 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429670', 'tblTempUsageDetail_20' ) end [2025-02-08 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:19:25] Production.INFO: ==29790== Releasing lock... [2025-02-08 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:19:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:20:06 [end_date_ymd] => 2025-02-08 12:20:06 [RateCDR] => 1 ) [2025-02-08 12:20: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-02-08 09:20:06' and `end` < '2025-02-08 12:20: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-02-08 12:20:19] Production.INFO: count ==1710 [2025-02-08 12:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:20:06 - End Time 2025-02-08 12:20:06 [2025-02-08 12:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429676', 'tblTempUsageDetail_20' ) start [2025-02-08 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429676', 'tblTempUsageDetail_20' ) end [2025-02-08 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429676', 'tblTempVendorCDR_20' ) start [2025-02-08 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429676', 'tblTempVendorCDR_20' ) end [2025-02-08 12:20:20] Production.INFO: ProcessCDR(1,14429676,1,1,2) [2025-02-08 12:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429676', 'tblTempUsageDetail_20' ) start [2025-02-08 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429676', 'tblTempUsageDetail_20' ) end [2025-02-08 12:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:20:25] Production.INFO: ==29866== Releasing lock... [2025-02-08 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:20:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:21:06 [end_date_ymd] => 2025-02-08 12:21:06 [RateCDR] => 1 ) [2025-02-08 12:21: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-02-08 09:21:06' and `end` < '2025-02-08 12:21: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-02-08 12:21:20] Production.INFO: count ==1724 [2025-02-08 12:21:21] Production.ERROR: pbx CDR StartTime 2025-02-08 09:21:06 - End Time 2025-02-08 12:21:06 [2025-02-08 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429681', 'tblTempUsageDetail_20' ) start [2025-02-08 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429681', 'tblTempUsageDetail_20' ) end [2025-02-08 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429681', 'tblTempVendorCDR_20' ) start [2025-02-08 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429681', 'tblTempVendorCDR_20' ) end [2025-02-08 12:21:21] Production.INFO: ProcessCDR(1,14429681,1,1,2) [2025-02-08 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429681', 'tblTempUsageDetail_20' ) start [2025-02-08 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429681', 'tblTempUsageDetail_20' ) end [2025-02-08 12:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:21:26] Production.INFO: ==29942== Releasing lock... [2025-02-08 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:21:26] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:22:05 [end_date_ymd] => 2025-02-08 12:22:05 [RateCDR] => 1 ) [2025-02-08 12:22: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` >= '2025-02-08 09:22:05' and `end` < '2025-02-08 12:22: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 ,'') [2025-02-08 12:22:18] Production.INFO: count ==1719 [2025-02-08 12:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:22:05 - End Time 2025-02-08 12:22:05 [2025-02-08 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429686', 'tblTempUsageDetail_20' ) start [2025-02-08 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429686', 'tblTempUsageDetail_20' ) end [2025-02-08 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429686', 'tblTempVendorCDR_20' ) start [2025-02-08 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429686', 'tblTempVendorCDR_20' ) end [2025-02-08 12:22:19] Production.INFO: ProcessCDR(1,14429686,1,1,2) [2025-02-08 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429686', 'tblTempUsageDetail_20' ) start [2025-02-08 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429686', 'tblTempUsageDetail_20' ) end [2025-02-08 12:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:22:24] Production.INFO: ==30016== Releasing lock... [2025-02-08 12:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:22:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:23:06 [end_date_ymd] => 2025-02-08 12:23:06 [RateCDR] => 1 ) [2025-02-08 12:23: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-02-08 09:23:06' and `end` < '2025-02-08 12:23: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-02-08 12:23:19] Production.INFO: count ==1720 [2025-02-08 12:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:23:06 - End Time 2025-02-08 12:23:06 [2025-02-08 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429691', 'tblTempUsageDetail_20' ) start [2025-02-08 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429691', 'tblTempUsageDetail_20' ) end [2025-02-08 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429691', 'tblTempVendorCDR_20' ) start [2025-02-08 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429691', 'tblTempVendorCDR_20' ) end [2025-02-08 12:23:19] Production.INFO: ProcessCDR(1,14429691,1,1,2) [2025-02-08 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429691', 'tblTempUsageDetail_20' ) start [2025-02-08 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429691', 'tblTempUsageDetail_20' ) end [2025-02-08 12:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:23:24] Production.INFO: ==30092== Releasing lock... [2025-02-08 12:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:23:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:24:05 [end_date_ymd] => 2025-02-08 12:24:05 [RateCDR] => 1 ) [2025-02-08 12:24: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` >= '2025-02-08 09:24:05' and `end` < '2025-02-08 12:24: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 ,'') [2025-02-08 12:24:18] Production.INFO: count ==1715 [2025-02-08 12:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:24:05 - End Time 2025-02-08 12:24:05 [2025-02-08 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429696', 'tblTempUsageDetail_20' ) start [2025-02-08 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429696', 'tblTempUsageDetail_20' ) end [2025-02-08 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429696', 'tblTempVendorCDR_20' ) start [2025-02-08 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429696', 'tblTempVendorCDR_20' ) end [2025-02-08 12:24:19] Production.INFO: ProcessCDR(1,14429696,1,1,2) [2025-02-08 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429696', 'tblTempUsageDetail_20' ) start [2025-02-08 12:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429696', 'tblTempUsageDetail_20' ) end [2025-02-08 12:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:24:24] Production.INFO: ==30168== Releasing lock... [2025-02-08 12:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:24:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:25:05 [end_date_ymd] => 2025-02-08 12:25:05 [RateCDR] => 1 ) [2025-02-08 12:25: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` >= '2025-02-08 09:25:05' and `end` < '2025-02-08 12:25: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 ,'') [2025-02-08 12:25:18] Production.INFO: count ==1716 [2025-02-08 12:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:25:05 - End Time 2025-02-08 12:25:05 [2025-02-08 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429701', 'tblTempUsageDetail_20' ) start [2025-02-08 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429701', 'tblTempUsageDetail_20' ) end [2025-02-08 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429701', 'tblTempVendorCDR_20' ) start [2025-02-08 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429701', 'tblTempVendorCDR_20' ) end [2025-02-08 12:25:19] Production.INFO: ProcessCDR(1,14429701,1,1,2) [2025-02-08 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429701', 'tblTempUsageDetail_20' ) start [2025-02-08 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429701', 'tblTempUsageDetail_20' ) end [2025-02-08 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:25:24] Production.INFO: ==30243== Releasing lock... [2025-02-08 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:25:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:26:05 [end_date_ymd] => 2025-02-08 12:26:05 [RateCDR] => 1 ) [2025-02-08 12:26: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` >= '2025-02-08 09:26:05' and `end` < '2025-02-08 12:26: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 ,'') [2025-02-08 12:26:18] Production.INFO: count ==1721 [2025-02-08 12:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:26:05 - End Time 2025-02-08 12:26:05 [2025-02-08 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429706', 'tblTempUsageDetail_20' ) start [2025-02-08 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429706', 'tblTempUsageDetail_20' ) end [2025-02-08 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429706', 'tblTempVendorCDR_20' ) start [2025-02-08 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429706', 'tblTempVendorCDR_20' ) end [2025-02-08 12:26:19] Production.INFO: ProcessCDR(1,14429706,1,1,2) [2025-02-08 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429706', 'tblTempUsageDetail_20' ) start [2025-02-08 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429706', 'tblTempUsageDetail_20' ) end [2025-02-08 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:26:24] Production.INFO: ==30323== Releasing lock... [2025-02-08 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:26:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:27:05 [end_date_ymd] => 2025-02-08 12:27:05 [RateCDR] => 1 ) [2025-02-08 12:27: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` >= '2025-02-08 09:27:05' and `end` < '2025-02-08 12:27: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 ,'') [2025-02-08 12:27:18] Production.INFO: count ==1708 [2025-02-08 12:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:27:05 - End Time 2025-02-08 12:27:05 [2025-02-08 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429711', 'tblTempUsageDetail_20' ) start [2025-02-08 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429711', 'tblTempUsageDetail_20' ) end [2025-02-08 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429711', 'tblTempVendorCDR_20' ) start [2025-02-08 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429711', 'tblTempVendorCDR_20' ) end [2025-02-08 12:27:19] Production.INFO: ProcessCDR(1,14429711,1,1,2) [2025-02-08 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429711', 'tblTempUsageDetail_20' ) start [2025-02-08 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429711', 'tblTempUsageDetail_20' ) end [2025-02-08 12:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:27:24] Production.INFO: ==30394== Releasing lock... [2025-02-08 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:27:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:28:04 [end_date_ymd] => 2025-02-08 12:28:04 [RateCDR] => 1 ) [2025-02-08 12:28:04] 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-02-08 09:28:04' and `end` < '2025-02-08 12:28:04' 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-02-08 12:28:18] Production.INFO: count ==1706 [2025-02-08 12:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 09:28:04 - End Time 2025-02-08 12:28:04 [2025-02-08 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429716', 'tblTempUsageDetail_20' ) start [2025-02-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429716', 'tblTempUsageDetail_20' ) end [2025-02-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429716', 'tblTempVendorCDR_20' ) start [2025-02-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429716', 'tblTempVendorCDR_20' ) end [2025-02-08 12:28:18] Production.INFO: ProcessCDR(1,14429716,1,1,2) [2025-02-08 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429716', 'tblTempUsageDetail_20' ) start [2025-02-08 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429716', 'tblTempUsageDetail_20' ) end [2025-02-08 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:28:23] Production.INFO: ==30469== Releasing lock... [2025-02-08 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:29:06 [end_date_ymd] => 2025-02-08 12:29:06 [RateCDR] => 1 ) [2025-02-08 12:29: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-02-08 09:29:06' and `end` < '2025-02-08 12:29: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-02-08 12:29:20] Production.INFO: count ==1715 [2025-02-08 12:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:29:06 - End Time 2025-02-08 12:29:06 [2025-02-08 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429721', 'tblTempUsageDetail_20' ) start [2025-02-08 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429721', 'tblTempUsageDetail_20' ) end [2025-02-08 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429721', 'tblTempVendorCDR_20' ) start [2025-02-08 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429721', 'tblTempVendorCDR_20' ) end [2025-02-08 12:29:20] Production.INFO: ProcessCDR(1,14429721,1,1,2) [2025-02-08 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429721', 'tblTempUsageDetail_20' ) start [2025-02-08 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429721', 'tblTempUsageDetail_20' ) end [2025-02-08 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:29:25] Production.INFO: ==30547== Releasing lock... [2025-02-08 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:29:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:30:06 [end_date_ymd] => 2025-02-08 12:30:06 [RateCDR] => 1 ) [2025-02-08 12:30: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-02-08 09:30:06' and `end` < '2025-02-08 12:30: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-02-08 12:30:19] Production.INFO: count ==1714 [2025-02-08 12:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:30:06 - End Time 2025-02-08 12:30:06 [2025-02-08 12:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429727', 'tblTempUsageDetail_20' ) start [2025-02-08 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429727', 'tblTempUsageDetail_20' ) end [2025-02-08 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429727', 'tblTempVendorCDR_20' ) start [2025-02-08 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429727', 'tblTempVendorCDR_20' ) end [2025-02-08 12:30:20] Production.INFO: ProcessCDR(1,14429727,1,1,2) [2025-02-08 12:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429727', 'tblTempUsageDetail_20' ) start [2025-02-08 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429727', 'tblTempUsageDetail_20' ) end [2025-02-08 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:30:24] Production.INFO: ==30663== Releasing lock... [2025-02-08 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:30:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:31:05 [end_date_ymd] => 2025-02-08 12:31:05 [RateCDR] => 1 ) [2025-02-08 12:31: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` >= '2025-02-08 09:31:05' and `end` < '2025-02-08 12:31: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 ,'') [2025-02-08 12:31:19] Production.INFO: count ==1737 [2025-02-08 12:31:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:31:05 - End Time 2025-02-08 12:31:05 [2025-02-08 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429732', 'tblTempUsageDetail_20' ) start [2025-02-08 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429732', 'tblTempUsageDetail_20' ) end [2025-02-08 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429732', 'tblTempVendorCDR_20' ) start [2025-02-08 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429732', 'tblTempVendorCDR_20' ) end [2025-02-08 12:31:20] Production.INFO: ProcessCDR(1,14429732,1,1,2) [2025-02-08 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429732', 'tblTempUsageDetail_20' ) start [2025-02-08 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429732', 'tblTempUsageDetail_20' ) end [2025-02-08 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:31:25] Production.INFO: ==30738== Releasing lock... [2025-02-08 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:31:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:32:05 [end_date_ymd] => 2025-02-08 12:32:05 [RateCDR] => 1 ) [2025-02-08 12:32: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` >= '2025-02-08 09:32:05' and `end` < '2025-02-08 12:32: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 ,'') [2025-02-08 12:32:19] Production.INFO: count ==1743 [2025-02-08 12:32:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:32:05 - End Time 2025-02-08 12:32:05 [2025-02-08 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429737', 'tblTempUsageDetail_20' ) start [2025-02-08 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429737', 'tblTempUsageDetail_20' ) end [2025-02-08 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429737', 'tblTempVendorCDR_20' ) start [2025-02-08 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429737', 'tblTempVendorCDR_20' ) end [2025-02-08 12:32:20] Production.INFO: ProcessCDR(1,14429737,1,1,2) [2025-02-08 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429737', 'tblTempUsageDetail_20' ) start [2025-02-08 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429737', 'tblTempUsageDetail_20' ) end [2025-02-08 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:32:25] Production.INFO: ==30812== Releasing lock... [2025-02-08 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:32:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:33:05 [end_date_ymd] => 2025-02-08 12:33:05 [RateCDR] => 1 ) [2025-02-08 12:33: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` >= '2025-02-08 09:33:05' and `end` < '2025-02-08 12:33: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 ,'') [2025-02-08 12:33:18] Production.INFO: count ==1744 [2025-02-08 12:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:33:05 - End Time 2025-02-08 12:33:05 [2025-02-08 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429742', 'tblTempUsageDetail_20' ) start [2025-02-08 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429742', 'tblTempUsageDetail_20' ) end [2025-02-08 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429742', 'tblTempVendorCDR_20' ) start [2025-02-08 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429742', 'tblTempVendorCDR_20' ) end [2025-02-08 12:33:19] Production.INFO: ProcessCDR(1,14429742,1,1,2) [2025-02-08 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429742', 'tblTempUsageDetail_20' ) start [2025-02-08 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429742', 'tblTempUsageDetail_20' ) end [2025-02-08 12:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:33:24] Production.INFO: ==30886== Releasing lock... [2025-02-08 12:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:33:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:34:06 [end_date_ymd] => 2025-02-08 12:34:06 [RateCDR] => 1 ) [2025-02-08 12:34: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-02-08 09:34:06' and `end` < '2025-02-08 12:34: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-02-08 12:34:21] Production.INFO: count ==1737 [2025-02-08 12:34:22] Production.ERROR: pbx CDR StartTime 2025-02-08 09:34:06 - End Time 2025-02-08 12:34:06 [2025-02-08 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429747', 'tblTempUsageDetail_20' ) start [2025-02-08 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429747', 'tblTempUsageDetail_20' ) end [2025-02-08 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429747', 'tblTempVendorCDR_20' ) start [2025-02-08 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429747', 'tblTempVendorCDR_20' ) end [2025-02-08 12:34:22] Production.INFO: ProcessCDR(1,14429747,1,1,2) [2025-02-08 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429747', 'tblTempUsageDetail_20' ) start [2025-02-08 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429747', 'tblTempUsageDetail_20' ) end [2025-02-08 12:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:34:25] Production.INFO: ==30960== Releasing lock... [2025-02-08 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:34:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:35:05 [end_date_ymd] => 2025-02-08 12:35:05 [RateCDR] => 1 ) [2025-02-08 12:35: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` >= '2025-02-08 09:35:05' and `end` < '2025-02-08 12:35: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 ,'') [2025-02-08 12:35:18] Production.INFO: count ==1739 [2025-02-08 12:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:35:05 - End Time 2025-02-08 12:35:05 [2025-02-08 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429752', 'tblTempUsageDetail_20' ) start [2025-02-08 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429752', 'tblTempUsageDetail_20' ) end [2025-02-08 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429752', 'tblTempVendorCDR_20' ) start [2025-02-08 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429752', 'tblTempVendorCDR_20' ) end [2025-02-08 12:35:19] Production.INFO: ProcessCDR(1,14429752,1,1,2) [2025-02-08 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429752', 'tblTempUsageDetail_20' ) start [2025-02-08 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429752', 'tblTempUsageDetail_20' ) end [2025-02-08 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:35:22] Production.INFO: ==31034== Releasing lock... [2025-02-08 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:35:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:36:05 [end_date_ymd] => 2025-02-08 12:36:05 [RateCDR] => 1 ) [2025-02-08 12:36: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` >= '2025-02-08 09:36:05' and `end` < '2025-02-08 12:36: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 ,'') [2025-02-08 12:36:18] Production.INFO: count ==1739 [2025-02-08 12:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 09:36:05 - End Time 2025-02-08 12:36:05 [2025-02-08 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429757', 'tblTempUsageDetail_20' ) start [2025-02-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429757', 'tblTempUsageDetail_20' ) end [2025-02-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429757', 'tblTempVendorCDR_20' ) start [2025-02-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429757', 'tblTempVendorCDR_20' ) end [2025-02-08 12:36:18] Production.INFO: ProcessCDR(1,14429757,1,1,2) [2025-02-08 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429757', 'tblTempUsageDetail_20' ) start [2025-02-08 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429757', 'tblTempUsageDetail_20' ) end [2025-02-08 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:36:22] Production.INFO: ==31108== Releasing lock... [2025-02-08 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:36:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:37:05 [end_date_ymd] => 2025-02-08 12:37:05 [RateCDR] => 1 ) [2025-02-08 12:37: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` >= '2025-02-08 09:37:05' and `end` < '2025-02-08 12:37: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 ,'') [2025-02-08 12:37:18] Production.INFO: count ==1743 [2025-02-08 12:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:37:05 - End Time 2025-02-08 12:37:05 [2025-02-08 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429762', 'tblTempUsageDetail_20' ) start [2025-02-08 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429762', 'tblTempUsageDetail_20' ) end [2025-02-08 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429762', 'tblTempVendorCDR_20' ) start [2025-02-08 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429762', 'tblTempVendorCDR_20' ) end [2025-02-08 12:37:19] Production.INFO: ProcessCDR(1,14429762,1,1,2) [2025-02-08 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429762', 'tblTempUsageDetail_20' ) start [2025-02-08 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429762', 'tblTempUsageDetail_20' ) end [2025-02-08 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:37:24] Production.INFO: ==31181== Releasing lock... [2025-02-08 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:37:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:38:05 [end_date_ymd] => 2025-02-08 12:38:05 [RateCDR] => 1 ) [2025-02-08 12:38: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` >= '2025-02-08 09:38:05' and `end` < '2025-02-08 12:38: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 ,'') [2025-02-08 12:38:18] Production.INFO: count ==1742 [2025-02-08 12:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:38:05 - End Time 2025-02-08 12:38:05 [2025-02-08 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429767', 'tblTempUsageDetail_20' ) start [2025-02-08 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429767', 'tblTempUsageDetail_20' ) end [2025-02-08 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429767', 'tblTempVendorCDR_20' ) start [2025-02-08 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429767', 'tblTempVendorCDR_20' ) end [2025-02-08 12:38:19] Production.INFO: ProcessCDR(1,14429767,1,1,2) [2025-02-08 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429767', 'tblTempUsageDetail_20' ) start [2025-02-08 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429767', 'tblTempUsageDetail_20' ) end [2025-02-08 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:38:23] Production.INFO: ==31256== Releasing lock... [2025-02-08 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:38:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:39:05 [end_date_ymd] => 2025-02-08 12:39:05 [RateCDR] => 1 ) [2025-02-08 12:39: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` >= '2025-02-08 09:39:05' and `end` < '2025-02-08 12:39: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 ,'') [2025-02-08 12:39:18] Production.INFO: count ==1742 [2025-02-08 12:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 09:39:05 - End Time 2025-02-08 12:39:05 [2025-02-08 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429772', 'tblTempUsageDetail_20' ) start [2025-02-08 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429772', 'tblTempUsageDetail_20' ) end [2025-02-08 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429772', 'tblTempVendorCDR_20' ) start [2025-02-08 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429772', 'tblTempVendorCDR_20' ) end [2025-02-08 12:39:18] Production.INFO: ProcessCDR(1,14429772,1,1,2) [2025-02-08 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429772', 'tblTempUsageDetail_20' ) start [2025-02-08 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429772', 'tblTempUsageDetail_20' ) end [2025-02-08 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:39:23] Production.INFO: ==31330== Releasing lock... [2025-02-08 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:39:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:40:07 [end_date_ymd] => 2025-02-08 12:40:07 [RateCDR] => 1 ) [2025-02-08 12:40: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-02-08 09:40:07' and `end` < '2025-02-08 12:40: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-02-08 12:40:20] Production.INFO: count ==1748 [2025-02-08 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-08 09:40:07 - End Time 2025-02-08 12:40:07 [2025-02-08 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429777', 'tblTempUsageDetail_20' ) start [2025-02-08 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429777', 'tblTempUsageDetail_20' ) end [2025-02-08 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429777', 'tblTempVendorCDR_20' ) start [2025-02-08 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429777', 'tblTempVendorCDR_20' ) end [2025-02-08 12:40:21] Production.INFO: ProcessCDR(1,14429777,1,1,2) [2025-02-08 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429777', 'tblTempUsageDetail_20' ) start [2025-02-08 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429777', 'tblTempUsageDetail_20' ) end [2025-02-08 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:40:25] Production.INFO: ==31407== Releasing lock... [2025-02-08 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:40:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:41:05 [end_date_ymd] => 2025-02-08 12:41:05 [RateCDR] => 1 ) [2025-02-08 12:41: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` >= '2025-02-08 09:41:05' and `end` < '2025-02-08 12:41: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 ,'') [2025-02-08 12:41:18] Production.INFO: count ==1799 [2025-02-08 12:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:41:05 - End Time 2025-02-08 12:41:05 [2025-02-08 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429783', 'tblTempUsageDetail_20' ) start [2025-02-08 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429783', 'tblTempUsageDetail_20' ) end [2025-02-08 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429783', 'tblTempVendorCDR_20' ) start [2025-02-08 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429783', 'tblTempVendorCDR_20' ) end [2025-02-08 12:41:19] Production.INFO: ProcessCDR(1,14429783,1,1,2) [2025-02-08 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429783', 'tblTempUsageDetail_20' ) start [2025-02-08 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429783', 'tblTempUsageDetail_20' ) end [2025-02-08 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:41:23] Production.INFO: ==31484== Releasing lock... [2025-02-08 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:41:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:42:05 [end_date_ymd] => 2025-02-08 12:42:05 [RateCDR] => 1 ) [2025-02-08 12:42: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` >= '2025-02-08 09:42:05' and `end` < '2025-02-08 12:42: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 ,'') [2025-02-08 12:42:19] Production.INFO: count ==1802 [2025-02-08 12:42:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:42:05 - End Time 2025-02-08 12:42:05 [2025-02-08 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429788', 'tblTempUsageDetail_20' ) start [2025-02-08 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429788', 'tblTempUsageDetail_20' ) end [2025-02-08 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429788', 'tblTempVendorCDR_20' ) start [2025-02-08 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429788', 'tblTempVendorCDR_20' ) end [2025-02-08 12:42:20] Production.INFO: ProcessCDR(1,14429788,1,1,2) [2025-02-08 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429788', 'tblTempUsageDetail_20' ) start [2025-02-08 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429788', 'tblTempUsageDetail_20' ) end [2025-02-08 12:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:42:25] Production.INFO: ==31557== Releasing lock... [2025-02-08 12:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:42:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:43:05 [end_date_ymd] => 2025-02-08 12:43:05 [RateCDR] => 1 ) [2025-02-08 12:43: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` >= '2025-02-08 09:43:05' and `end` < '2025-02-08 12:43: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 ,'') [2025-02-08 12:43:18] Production.INFO: count ==1801 [2025-02-08 12:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:43:05 - End Time 2025-02-08 12:43:05 [2025-02-08 12:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429793', 'tblTempUsageDetail_20' ) start [2025-02-08 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429793', 'tblTempUsageDetail_20' ) end [2025-02-08 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429793', 'tblTempVendorCDR_20' ) start [2025-02-08 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429793', 'tblTempVendorCDR_20' ) end [2025-02-08 12:43:19] Production.INFO: ProcessCDR(1,14429793,1,1,2) [2025-02-08 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429793', 'tblTempUsageDetail_20' ) start [2025-02-08 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429793', 'tblTempUsageDetail_20' ) end [2025-02-08 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:43:24] Production.INFO: ==31630== Releasing lock... [2025-02-08 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:43:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:44:05 [end_date_ymd] => 2025-02-08 12:44:05 [RateCDR] => 1 ) [2025-02-08 12:44: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` >= '2025-02-08 09:44:05' and `end` < '2025-02-08 12:44: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 ,'') [2025-02-08 12:44:19] Production.INFO: count ==1790 [2025-02-08 12:44:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:44:05 - End Time 2025-02-08 12:44:05 [2025-02-08 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429798', 'tblTempUsageDetail_20' ) start [2025-02-08 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429798', 'tblTempUsageDetail_20' ) end [2025-02-08 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429798', 'tblTempVendorCDR_20' ) start [2025-02-08 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429798', 'tblTempVendorCDR_20' ) end [2025-02-08 12:44:20] Production.INFO: ProcessCDR(1,14429798,1,1,2) [2025-02-08 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429798', 'tblTempUsageDetail_20' ) start [2025-02-08 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429798', 'tblTempUsageDetail_20' ) end [2025-02-08 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:44:24] Production.INFO: ==31704== Releasing lock... [2025-02-08 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:45:05 [end_date_ymd] => 2025-02-08 12:45:05 [RateCDR] => 1 ) [2025-02-08 12:45: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` >= '2025-02-08 09:45:05' and `end` < '2025-02-08 12:45: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 ,'') [2025-02-08 12:45:18] Production.INFO: count ==1801 [2025-02-08 12:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:45:05 - End Time 2025-02-08 12:45:05 [2025-02-08 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429803', 'tblTempUsageDetail_20' ) start [2025-02-08 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429803', 'tblTempUsageDetail_20' ) end [2025-02-08 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429803', 'tblTempVendorCDR_20' ) start [2025-02-08 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429803', 'tblTempVendorCDR_20' ) end [2025-02-08 12:45:19] Production.INFO: ProcessCDR(1,14429803,1,1,2) [2025-02-08 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429803', 'tblTempUsageDetail_20' ) start [2025-02-08 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429803', 'tblTempUsageDetail_20' ) end [2025-02-08 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:45:24] Production.INFO: ==31774== Releasing lock... [2025-02-08 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:45:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:46:05 [end_date_ymd] => 2025-02-08 12:46:05 [RateCDR] => 1 ) [2025-02-08 12:46: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` >= '2025-02-08 09:46:05' and `end` < '2025-02-08 12:46: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 ,'') [2025-02-08 12:46:18] Production.INFO: count ==1805 [2025-02-08 12:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:46:05 - End Time 2025-02-08 12:46:05 [2025-02-08 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429808', 'tblTempUsageDetail_20' ) start [2025-02-08 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429808', 'tblTempUsageDetail_20' ) end [2025-02-08 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429808', 'tblTempVendorCDR_20' ) start [2025-02-08 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429808', 'tblTempVendorCDR_20' ) end [2025-02-08 12:46:19] Production.INFO: ProcessCDR(1,14429808,1,1,2) [2025-02-08 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429808', 'tblTempUsageDetail_20' ) start [2025-02-08 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429808', 'tblTempUsageDetail_20' ) end [2025-02-08 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:46:23] Production.INFO: ==31887== Releasing lock... [2025-02-08 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:46:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:47:04 [end_date_ymd] => 2025-02-08 12:47:04 [RateCDR] => 1 ) [2025-02-08 12:47:04] 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-02-08 09:47:04' and `end` < '2025-02-08 12:47:04' 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-02-08 12:47:17] Production.INFO: count ==1803 [2025-02-08 12:47:18] Production.ERROR: pbx CDR StartTime 2025-02-08 09:47:04 - End Time 2025-02-08 12:47:04 [2025-02-08 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429813', 'tblTempUsageDetail_20' ) start [2025-02-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429813', 'tblTempUsageDetail_20' ) end [2025-02-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429813', 'tblTempVendorCDR_20' ) start [2025-02-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429813', 'tblTempVendorCDR_20' ) end [2025-02-08 12:47:18] Production.INFO: ProcessCDR(1,14429813,1,1,2) [2025-02-08 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429813', 'tblTempUsageDetail_20' ) start [2025-02-08 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429813', 'tblTempUsageDetail_20' ) end [2025-02-08 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:47:23] Production.INFO: ==31959== Releasing lock... [2025-02-08 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:47:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:48:05 [end_date_ymd] => 2025-02-08 12:48:05 [RateCDR] => 1 ) [2025-02-08 12:48: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` >= '2025-02-08 09:48:05' and `end` < '2025-02-08 12:48: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 ,'') [2025-02-08 12:48:19] Production.INFO: count ==1805 [2025-02-08 12:48:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:48:05 - End Time 2025-02-08 12:48:05 [2025-02-08 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429818', 'tblTempUsageDetail_20' ) start [2025-02-08 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429818', 'tblTempUsageDetail_20' ) end [2025-02-08 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429818', 'tblTempVendorCDR_20' ) start [2025-02-08 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429818', 'tblTempVendorCDR_20' ) end [2025-02-08 12:48:20] Production.INFO: ProcessCDR(1,14429818,1,1,2) [2025-02-08 12:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429818', 'tblTempUsageDetail_20' ) start [2025-02-08 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429818', 'tblTempUsageDetail_20' ) end [2025-02-08 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:48:25] Production.INFO: ==32033== Releasing lock... [2025-02-08 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:48:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:49:05 [end_date_ymd] => 2025-02-08 12:49:05 [RateCDR] => 1 ) [2025-02-08 12:49: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` >= '2025-02-08 09:49:05' and `end` < '2025-02-08 12:49: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 ,'') [2025-02-08 12:49:19] Production.INFO: count ==1788 [2025-02-08 12:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:49:05 - End Time 2025-02-08 12:49:05 [2025-02-08 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429823', 'tblTempUsageDetail_20' ) start [2025-02-08 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429823', 'tblTempUsageDetail_20' ) end [2025-02-08 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429823', 'tblTempVendorCDR_20' ) start [2025-02-08 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429823', 'tblTempVendorCDR_20' ) end [2025-02-08 12:49:19] Production.INFO: ProcessCDR(1,14429823,1,1,2) [2025-02-08 12:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429823', 'tblTempUsageDetail_20' ) start [2025-02-08 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429823', 'tblTempUsageDetail_20' ) end [2025-02-08 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:49:24] Production.INFO: ==32108== Releasing lock... [2025-02-08 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:49:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:50:06 [end_date_ymd] => 2025-02-08 12:50:06 [RateCDR] => 1 ) [2025-02-08 12:50: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-02-08 09:50:06' and `end` < '2025-02-08 12:50: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-02-08 12:50:19] Production.INFO: count ==1773 [2025-02-08 12:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:50:06 - End Time 2025-02-08 12:50:06 [2025-02-08 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429829', 'tblTempUsageDetail_20' ) start [2025-02-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429829', 'tblTempUsageDetail_20' ) end [2025-02-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429829', 'tblTempVendorCDR_20' ) start [2025-02-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429829', 'tblTempVendorCDR_20' ) end [2025-02-08 12:50:19] Production.INFO: ProcessCDR(1,14429829,1,1,2) [2025-02-08 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429829', 'tblTempUsageDetail_20' ) start [2025-02-08 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429829', 'tblTempUsageDetail_20' ) end [2025-02-08 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:50:24] Production.INFO: ==32183== Releasing lock... [2025-02-08 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:50:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:51:06 [end_date_ymd] => 2025-02-08 12:51:06 [RateCDR] => 1 ) [2025-02-08 12:51: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-02-08 09:51:06' and `end` < '2025-02-08 12:51: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-02-08 12:51:19] Production.INFO: count ==1767 [2025-02-08 12:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:51:06 - End Time 2025-02-08 12:51:06 [2025-02-08 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429834', 'tblTempUsageDetail_20' ) start [2025-02-08 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429834', 'tblTempUsageDetail_20' ) end [2025-02-08 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429834', 'tblTempVendorCDR_20' ) start [2025-02-08 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429834', 'tblTempVendorCDR_20' ) end [2025-02-08 12:51:19] Production.INFO: ProcessCDR(1,14429834,1,1,2) [2025-02-08 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429834', 'tblTempUsageDetail_20' ) start [2025-02-08 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429834', 'tblTempUsageDetail_20' ) end [2025-02-08 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:51:22] Production.INFO: ==32256== Releasing lock... [2025-02-08 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:52:05 [end_date_ymd] => 2025-02-08 12:52:05 [RateCDR] => 1 ) [2025-02-08 12:52: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` >= '2025-02-08 09:52:05' and `end` < '2025-02-08 12:52: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 ,'') [2025-02-08 12:52:19] Production.INFO: count ==1766 [2025-02-08 12:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:52:05 - End Time 2025-02-08 12:52:05 [2025-02-08 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429839', 'tblTempUsageDetail_20' ) start [2025-02-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429839', 'tblTempUsageDetail_20' ) end [2025-02-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429839', 'tblTempVendorCDR_20' ) start [2025-02-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429839', 'tblTempVendorCDR_20' ) end [2025-02-08 12:52:19] Production.INFO: ProcessCDR(1,14429839,1,1,2) [2025-02-08 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429839', 'tblTempUsageDetail_20' ) start [2025-02-08 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429839', 'tblTempUsageDetail_20' ) end [2025-02-08 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:52:22] Production.INFO: ==32327== Releasing lock... [2025-02-08 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:52:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:53:05 [end_date_ymd] => 2025-02-08 12:53:05 [RateCDR] => 1 ) [2025-02-08 12:53: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` >= '2025-02-08 09:53:05' and `end` < '2025-02-08 12:53: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 ,'') [2025-02-08 12:53:18] Production.INFO: count ==1766 [2025-02-08 12:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:53:05 - End Time 2025-02-08 12:53:05 [2025-02-08 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429844', 'tblTempUsageDetail_20' ) start [2025-02-08 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429844', 'tblTempUsageDetail_20' ) end [2025-02-08 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429844', 'tblTempVendorCDR_20' ) start [2025-02-08 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429844', 'tblTempVendorCDR_20' ) end [2025-02-08 12:53:19] Production.INFO: ProcessCDR(1,14429844,1,1,2) [2025-02-08 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429844', 'tblTempUsageDetail_20' ) start [2025-02-08 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429844', 'tblTempUsageDetail_20' ) end [2025-02-08 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:53:22] Production.INFO: ==32402== Releasing lock... [2025-02-08 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:53:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:54:05 [end_date_ymd] => 2025-02-08 12:54:05 [RateCDR] => 1 ) [2025-02-08 12:54: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` >= '2025-02-08 09:54:05' and `end` < '2025-02-08 12:54: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 ,'') [2025-02-08 12:54:19] Production.INFO: count ==1769 [2025-02-08 12:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:54:05 - End Time 2025-02-08 12:54:05 [2025-02-08 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429849', 'tblTempUsageDetail_20' ) start [2025-02-08 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429849', 'tblTempUsageDetail_20' ) end [2025-02-08 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429849', 'tblTempVendorCDR_20' ) start [2025-02-08 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429849', 'tblTempVendorCDR_20' ) end [2025-02-08 12:54:19] Production.INFO: ProcessCDR(1,14429849,1,1,2) [2025-02-08 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429849', 'tblTempUsageDetail_20' ) start [2025-02-08 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429849', 'tblTempUsageDetail_20' ) end [2025-02-08 12:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:54:24] Production.INFO: ==32489== Releasing lock... [2025-02-08 12:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:54:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:55:05 [end_date_ymd] => 2025-02-08 12:55:05 [RateCDR] => 1 ) [2025-02-08 12:55: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` >= '2025-02-08 09:55:05' and `end` < '2025-02-08 12:55: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 ,'') [2025-02-08 12:55:19] Production.INFO: count ==1768 [2025-02-08 12:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:55:05 - End Time 2025-02-08 12:55:05 [2025-02-08 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429854', 'tblTempUsageDetail_20' ) start [2025-02-08 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429854', 'tblTempUsageDetail_20' ) end [2025-02-08 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429854', 'tblTempVendorCDR_20' ) start [2025-02-08 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429854', 'tblTempVendorCDR_20' ) end [2025-02-08 12:55:19] Production.INFO: ProcessCDR(1,14429854,1,1,2) [2025-02-08 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429854', 'tblTempUsageDetail_20' ) start [2025-02-08 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429854', 'tblTempUsageDetail_20' ) end [2025-02-08 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:55:23] Production.INFO: ==32560== Releasing lock... [2025-02-08 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:55:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:56:05 [end_date_ymd] => 2025-02-08 12:56:05 [RateCDR] => 1 ) [2025-02-08 12:56: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` >= '2025-02-08 09:56:05' and `end` < '2025-02-08 12:56: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 ,'') [2025-02-08 12:56:19] Production.INFO: count ==1764 [2025-02-08 12:56:20] Production.ERROR: pbx CDR StartTime 2025-02-08 09:56:05 - End Time 2025-02-08 12:56:05 [2025-02-08 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429859', 'tblTempUsageDetail_20' ) start [2025-02-08 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429859', 'tblTempUsageDetail_20' ) end [2025-02-08 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429859', 'tblTempVendorCDR_20' ) start [2025-02-08 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429859', 'tblTempVendorCDR_20' ) end [2025-02-08 12:56:20] Production.INFO: ProcessCDR(1,14429859,1,1,2) [2025-02-08 12:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429859', 'tblTempUsageDetail_20' ) start [2025-02-08 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429859', 'tblTempUsageDetail_20' ) end [2025-02-08 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:56:23] Production.INFO: ==32631== Releasing lock... [2025-02-08 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:56:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:57:05 [end_date_ymd] => 2025-02-08 12:57:05 [RateCDR] => 1 ) [2025-02-08 12:57: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` >= '2025-02-08 09:57:05' and `end` < '2025-02-08 12:57: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 ,'') [2025-02-08 12:57:19] Production.INFO: count ==1764 [2025-02-08 12:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:57:05 - End Time 2025-02-08 12:57:05 [2025-02-08 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429864', 'tblTempUsageDetail_20' ) start [2025-02-08 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429864', 'tblTempUsageDetail_20' ) end [2025-02-08 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429864', 'tblTempVendorCDR_20' ) start [2025-02-08 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429864', 'tblTempVendorCDR_20' ) end [2025-02-08 12:57:20] Production.INFO: ProcessCDR(1,14429864,1,1,2) [2025-02-08 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429864', 'tblTempUsageDetail_20' ) start [2025-02-08 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429864', 'tblTempUsageDetail_20' ) end [2025-02-08 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:57:23] Production.INFO: ==32702== Releasing lock... [2025-02-08 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:58:05 [end_date_ymd] => 2025-02-08 12:58:05 [RateCDR] => 1 ) [2025-02-08 12:58: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` >= '2025-02-08 09:58:05' and `end` < '2025-02-08 12:58: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 ,'') [2025-02-08 12:58:18] Production.INFO: count ==1763 [2025-02-08 12:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 09:58:05 - End Time 2025-02-08 12:58:05 [2025-02-08 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429869', 'tblTempUsageDetail_20' ) start [2025-02-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429869', 'tblTempUsageDetail_20' ) end [2025-02-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429869', 'tblTempVendorCDR_20' ) start [2025-02-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429869', 'tblTempVendorCDR_20' ) end [2025-02-08 12:58:18] Production.INFO: ProcessCDR(1,14429869,1,1,2) [2025-02-08 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429869', 'tblTempUsageDetail_20' ) start [2025-02-08 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429869', 'tblTempUsageDetail_20' ) end [2025-02-08 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:58:22] Production.INFO: ==307== Releasing lock... [2025-02-08 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:58:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 09:59:06 [end_date_ymd] => 2025-02-08 12:59:06 [RateCDR] => 1 ) [2025-02-08 12:59: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-02-08 09:59:06' and `end` < '2025-02-08 12:59: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-02-08 12:59:19] Production.INFO: count ==1758 [2025-02-08 12:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 09:59:06 - End Time 2025-02-08 12:59:06 [2025-02-08 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429874', 'tblTempUsageDetail_20' ) start [2025-02-08 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429874', 'tblTempUsageDetail_20' ) end [2025-02-08 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429874', 'tblTempVendorCDR_20' ) start [2025-02-08 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429874', 'tblTempVendorCDR_20' ) end [2025-02-08 12:59:19] Production.INFO: ProcessCDR(1,14429874,1,1,2) [2025-02-08 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429874', 'tblTempUsageDetail_20' ) start [2025-02-08 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429874', 'tblTempUsageDetail_20' ) end [2025-02-08 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 12:59:24] Production.INFO: ==401== Releasing lock... [2025-02-08 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 12:59:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:00:06 [end_date_ymd] => 2025-02-08 13:00:06 [RateCDR] => 1 ) [2025-02-08 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 10:00:06' and `end` < '2025-02-08 13: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-02-08 13:00:19] Production.INFO: count ==1761 [2025-02-08 13:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:00:06 - End Time 2025-02-08 13:00:06 [2025-02-08 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429880', 'tblTempUsageDetail_20' ) start [2025-02-08 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429880', 'tblTempUsageDetail_20' ) end [2025-02-08 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429880', 'tblTempVendorCDR_20' ) start [2025-02-08 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429880', 'tblTempVendorCDR_20' ) end [2025-02-08 13:00:20] Production.INFO: ProcessCDR(1,14429880,1,1,2) [2025-02-08 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429880', 'tblTempUsageDetail_20' ) start [2025-02-08 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429880', 'tblTempUsageDetail_20' ) end [2025-02-08 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:00:26] Production.INFO: ==476== Releasing lock... [2025-02-08 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:00:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:01:05 [end_date_ymd] => 2025-02-08 13:01:05 [RateCDR] => 1 ) [2025-02-08 13: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` >= '2025-02-08 10:01:05' and `end` < '2025-02-08 13: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 ,'') [2025-02-08 13:01:18] Production.INFO: count ==1781 [2025-02-08 13:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:01:05 - End Time 2025-02-08 13:01:05 [2025-02-08 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429885', 'tblTempUsageDetail_20' ) start [2025-02-08 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429885', 'tblTempUsageDetail_20' ) end [2025-02-08 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429885', 'tblTempVendorCDR_20' ) start [2025-02-08 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429885', 'tblTempVendorCDR_20' ) end [2025-02-08 13:01:19] Production.INFO: ProcessCDR(1,14429885,1,1,2) [2025-02-08 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429885', 'tblTempUsageDetail_20' ) start [2025-02-08 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429885', 'tblTempUsageDetail_20' ) end [2025-02-08 13:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:01:24] Production.INFO: ==608== Releasing lock... [2025-02-08 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:01:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:02:05 [end_date_ymd] => 2025-02-08 13:02:05 [RateCDR] => 1 ) [2025-02-08 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 10:02:05' and `end` < '2025-02-08 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 13:02:19] Production.INFO: count ==1785 [2025-02-08 13:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:02:05 - End Time 2025-02-08 13:02:05 [2025-02-08 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429890', 'tblTempUsageDetail_20' ) start [2025-02-08 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429890', 'tblTempUsageDetail_20' ) end [2025-02-08 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429890', 'tblTempVendorCDR_20' ) start [2025-02-08 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429890', 'tblTempVendorCDR_20' ) end [2025-02-08 13:02:20] Production.INFO: ProcessCDR(1,14429890,1,1,2) [2025-02-08 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429890', 'tblTempUsageDetail_20' ) start [2025-02-08 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429890', 'tblTempUsageDetail_20' ) end [2025-02-08 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:02:24] Production.INFO: ==712== Releasing lock... [2025-02-08 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:02:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:03:06 [end_date_ymd] => 2025-02-08 13:03:06 [RateCDR] => 1 ) [2025-02-08 13:03: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-02-08 10:03:06' and `end` < '2025-02-08 13:03: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-02-08 13:03:19] Production.INFO: count ==1779 [2025-02-08 13:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:03:06 - End Time 2025-02-08 13:03:06 [2025-02-08 13:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429895', 'tblTempUsageDetail_20' ) start [2025-02-08 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429895', 'tblTempUsageDetail_20' ) end [2025-02-08 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429895', 'tblTempVendorCDR_20' ) start [2025-02-08 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429895', 'tblTempVendorCDR_20' ) end [2025-02-08 13:03:20] Production.INFO: ProcessCDR(1,14429895,1,1,2) [2025-02-08 13:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429895', 'tblTempUsageDetail_20' ) start [2025-02-08 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429895', 'tblTempUsageDetail_20' ) end [2025-02-08 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:03:23] Production.INFO: ==792== Releasing lock... [2025-02-08 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:03:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:04:05 [end_date_ymd] => 2025-02-08 13:04:05 [RateCDR] => 1 ) [2025-02-08 13:04: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` >= '2025-02-08 10:04:05' and `end` < '2025-02-08 13:04: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 ,'') [2025-02-08 13:04:18] Production.INFO: count ==1773 [2025-02-08 13:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:04:05 - End Time 2025-02-08 13:04:05 [2025-02-08 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429900', 'tblTempUsageDetail_20' ) start [2025-02-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429900', 'tblTempUsageDetail_20' ) end [2025-02-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429900', 'tblTempVendorCDR_20' ) start [2025-02-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429900', 'tblTempVendorCDR_20' ) end [2025-02-08 13:04:19] Production.INFO: ProcessCDR(1,14429900,1,1,2) [2025-02-08 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429900', 'tblTempUsageDetail_20' ) start [2025-02-08 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429900', 'tblTempUsageDetail_20' ) end [2025-02-08 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:04:23] Production.INFO: ==866== Releasing lock... [2025-02-08 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:04:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:05:06 [end_date_ymd] => 2025-02-08 13:05:06 [RateCDR] => 1 ) [2025-02-08 13:05: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-02-08 10:05:06' and `end` < '2025-02-08 13:05: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-02-08 13:05:19] Production.INFO: count ==1765 [2025-02-08 13:05:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:05:06 - End Time 2025-02-08 13:05:06 [2025-02-08 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429905', 'tblTempUsageDetail_20' ) start [2025-02-08 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429905', 'tblTempUsageDetail_20' ) end [2025-02-08 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429905', 'tblTempVendorCDR_20' ) start [2025-02-08 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429905', 'tblTempVendorCDR_20' ) end [2025-02-08 13:05:20] Production.INFO: ProcessCDR(1,14429905,1,1,2) [2025-02-08 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429905', 'tblTempUsageDetail_20' ) start [2025-02-08 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429905', 'tblTempUsageDetail_20' ) end [2025-02-08 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:05:23] Production.INFO: ==944== Releasing lock... [2025-02-08 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:06:06 [end_date_ymd] => 2025-02-08 13:06:06 [RateCDR] => 1 ) [2025-02-08 13:06: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-02-08 10:06:06' and `end` < '2025-02-08 13:06: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-02-08 13:06:19] Production.INFO: count ==1755 [2025-02-08 13:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:06:06 - End Time 2025-02-08 13:06:06 [2025-02-08 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429910', 'tblTempUsageDetail_20' ) start [2025-02-08 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429910', 'tblTempUsageDetail_20' ) end [2025-02-08 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429910', 'tblTempVendorCDR_20' ) start [2025-02-08 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429910', 'tblTempVendorCDR_20' ) end [2025-02-08 13:06:20] Production.INFO: ProcessCDR(1,14429910,1,1,2) [2025-02-08 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429910', 'tblTempUsageDetail_20' ) start [2025-02-08 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429910', 'tblTempUsageDetail_20' ) end [2025-02-08 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:06:23] Production.INFO: ==1022== Releasing lock... [2025-02-08 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:06:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:07:05 [end_date_ymd] => 2025-02-08 13:07:05 [RateCDR] => 1 ) [2025-02-08 13:07: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` >= '2025-02-08 10:07:05' and `end` < '2025-02-08 13:07: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 ,'') [2025-02-08 13:07:19] Production.INFO: count ==1744 [2025-02-08 13:07:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:07:05 - End Time 2025-02-08 13:07:05 [2025-02-08 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429915', 'tblTempUsageDetail_20' ) start [2025-02-08 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429915', 'tblTempUsageDetail_20' ) end [2025-02-08 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429915', 'tblTempVendorCDR_20' ) start [2025-02-08 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429915', 'tblTempVendorCDR_20' ) end [2025-02-08 13:07:20] Production.INFO: ProcessCDR(1,14429915,1,1,2) [2025-02-08 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429915', 'tblTempUsageDetail_20' ) start [2025-02-08 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429915', 'tblTempUsageDetail_20' ) end [2025-02-08 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:07:24] Production.INFO: ==1098== Releasing lock... [2025-02-08 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:07:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:08:05 [end_date_ymd] => 2025-02-08 13:08:05 [RateCDR] => 1 ) [2025-02-08 13:08: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` >= '2025-02-08 10:08:05' and `end` < '2025-02-08 13:08: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 ,'') [2025-02-08 13:08:19] Production.INFO: count ==1744 [2025-02-08 13:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:08:05 - End Time 2025-02-08 13:08:05 [2025-02-08 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429920', 'tblTempUsageDetail_20' ) start [2025-02-08 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429920', 'tblTempUsageDetail_20' ) end [2025-02-08 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429920', 'tblTempVendorCDR_20' ) start [2025-02-08 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429920', 'tblTempVendorCDR_20' ) end [2025-02-08 13:08:19] Production.INFO: ProcessCDR(1,14429920,1,1,2) [2025-02-08 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429920', 'tblTempUsageDetail_20' ) start [2025-02-08 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429920', 'tblTempUsageDetail_20' ) end [2025-02-08 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:08:25] Production.INFO: ==1187== Releasing lock... [2025-02-08 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:08:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:09:06 [end_date_ymd] => 2025-02-08 13:09:06 [RateCDR] => 1 ) [2025-02-08 13:09: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-02-08 10:09:06' and `end` < '2025-02-08 13:09: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-02-08 13:09:19] Production.INFO: count ==1745 [2025-02-08 13:09:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:09:06 - End Time 2025-02-08 13:09:06 [2025-02-08 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429925', 'tblTempUsageDetail_20' ) start [2025-02-08 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429925', 'tblTempUsageDetail_20' ) end [2025-02-08 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429925', 'tblTempVendorCDR_20' ) start [2025-02-08 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429925', 'tblTempVendorCDR_20' ) end [2025-02-08 13:09:20] Production.INFO: ProcessCDR(1,14429925,1,1,2) [2025-02-08 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429925', 'tblTempUsageDetail_20' ) start [2025-02-08 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429925', 'tblTempUsageDetail_20' ) end [2025-02-08 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:09:25] Production.INFO: ==1276== Releasing lock... [2025-02-08 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:09:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:10:06 [end_date_ymd] => 2025-02-08 13:10:06 [RateCDR] => 1 ) [2025-02-08 13:10: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-02-08 10:10:06' and `end` < '2025-02-08 13:10: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-02-08 13:10:19] Production.INFO: count ==1738 [2025-02-08 13:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:10:06 - End Time 2025-02-08 13:10:06 [2025-02-08 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429930', 'tblTempUsageDetail_20' ) start [2025-02-08 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429930', 'tblTempUsageDetail_20' ) end [2025-02-08 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429930', 'tblTempVendorCDR_20' ) start [2025-02-08 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429930', 'tblTempVendorCDR_20' ) end [2025-02-08 13:10:20] Production.INFO: ProcessCDR(1,14429930,1,1,2) [2025-02-08 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429930', 'tblTempUsageDetail_20' ) start [2025-02-08 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429930', 'tblTempUsageDetail_20' ) end [2025-02-08 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:10:25] Production.INFO: ==1356== Releasing lock... [2025-02-08 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:10:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:11:06 [end_date_ymd] => 2025-02-08 13:11:06 [RateCDR] => 1 ) [2025-02-08 13:11: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-02-08 10:11:06' and `end` < '2025-02-08 13:11: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-02-08 13:11:19] Production.INFO: count ==1731 [2025-02-08 13:11:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:11:06 - End Time 2025-02-08 13:11:06 [2025-02-08 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429936', 'tblTempUsageDetail_20' ) start [2025-02-08 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429936', 'tblTempUsageDetail_20' ) end [2025-02-08 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429936', 'tblTempVendorCDR_20' ) start [2025-02-08 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429936', 'tblTempVendorCDR_20' ) end [2025-02-08 13:11:20] Production.INFO: ProcessCDR(1,14429936,1,1,2) [2025-02-08 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429936', 'tblTempUsageDetail_20' ) start [2025-02-08 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429936', 'tblTempUsageDetail_20' ) end [2025-02-08 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:11:25] Production.INFO: ==1436== Releasing lock... [2025-02-08 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:11:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:12:05 [end_date_ymd] => 2025-02-08 13:12:05 [RateCDR] => 1 ) [2025-02-08 13:12: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` >= '2025-02-08 10:12:05' and `end` < '2025-02-08 13:12: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 ,'') [2025-02-08 13:12:18] Production.INFO: count ==1727 [2025-02-08 13:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:12:05 - End Time 2025-02-08 13:12:05 [2025-02-08 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429941', 'tblTempUsageDetail_20' ) start [2025-02-08 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429941', 'tblTempUsageDetail_20' ) end [2025-02-08 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429941', 'tblTempVendorCDR_20' ) start [2025-02-08 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429941', 'tblTempVendorCDR_20' ) end [2025-02-08 13:12:19] Production.INFO: ProcessCDR(1,14429941,1,1,2) [2025-02-08 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429941', 'tblTempUsageDetail_20' ) start [2025-02-08 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429941', 'tblTempUsageDetail_20' ) end [2025-02-08 13:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:12:24] Production.INFO: ==1541== Releasing lock... [2025-02-08 13:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:12:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:13:06 [end_date_ymd] => 2025-02-08 13:13:06 [RateCDR] => 1 ) [2025-02-08 13:13: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-02-08 10:13:06' and `end` < '2025-02-08 13:13: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-02-08 13:13:19] Production.INFO: count ==1707 [2025-02-08 13:13:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:13:06 - End Time 2025-02-08 13:13:06 [2025-02-08 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429946', 'tblTempUsageDetail_20' ) start [2025-02-08 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429946', 'tblTempUsageDetail_20' ) end [2025-02-08 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429946', 'tblTempVendorCDR_20' ) start [2025-02-08 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429946', 'tblTempVendorCDR_20' ) end [2025-02-08 13:13:20] Production.INFO: ProcessCDR(1,14429946,1,1,2) [2025-02-08 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429946', 'tblTempUsageDetail_20' ) start [2025-02-08 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429946', 'tblTempUsageDetail_20' ) end [2025-02-08 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:13:25] Production.INFO: ==1628== Releasing lock... [2025-02-08 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:13:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:14:05 [end_date_ymd] => 2025-02-08 13:14:05 [RateCDR] => 1 ) [2025-02-08 13:14: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` >= '2025-02-08 10:14:05' and `end` < '2025-02-08 13:14: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 ,'') [2025-02-08 13:14:18] Production.INFO: count ==1701 [2025-02-08 13:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:14:05 - End Time 2025-02-08 13:14:05 [2025-02-08 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429951', 'tblTempUsageDetail_20' ) start [2025-02-08 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429951', 'tblTempUsageDetail_20' ) end [2025-02-08 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429951', 'tblTempVendorCDR_20' ) start [2025-02-08 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429951', 'tblTempVendorCDR_20' ) end [2025-02-08 13:14:19] Production.INFO: ProcessCDR(1,14429951,1,1,2) [2025-02-08 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429951', 'tblTempUsageDetail_20' ) start [2025-02-08 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429951', 'tblTempUsageDetail_20' ) end [2025-02-08 13:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:14:24] Production.INFO: ==1707== Releasing lock... [2025-02-08 13:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:14:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:15:06 [end_date_ymd] => 2025-02-08 13:15:06 [RateCDR] => 1 ) [2025-02-08 13:15: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-02-08 10:15:06' and `end` < '2025-02-08 13:15: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-02-08 13:15:19] Production.INFO: count ==1701 [2025-02-08 13:15:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:15:06 - End Time 2025-02-08 13:15:06 [2025-02-08 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429956', 'tblTempUsageDetail_20' ) start [2025-02-08 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429956', 'tblTempUsageDetail_20' ) end [2025-02-08 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429956', 'tblTempVendorCDR_20' ) start [2025-02-08 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429956', 'tblTempVendorCDR_20' ) end [2025-02-08 13:15:20] Production.INFO: ProcessCDR(1,14429956,1,1,2) [2025-02-08 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429956', 'tblTempUsageDetail_20' ) start [2025-02-08 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429956', 'tblTempUsageDetail_20' ) end [2025-02-08 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:15:23] Production.INFO: ==1790== Releasing lock... [2025-02-08 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:15:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:16:05 [end_date_ymd] => 2025-02-08 13:16:05 [RateCDR] => 1 ) [2025-02-08 13:16: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` >= '2025-02-08 10:16:05' and `end` < '2025-02-08 13:16: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 ,'') [2025-02-08 13:16:18] Production.INFO: count ==1694 [2025-02-08 13:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:16:05 - End Time 2025-02-08 13:16:05 [2025-02-08 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429961', 'tblTempUsageDetail_20' ) start [2025-02-08 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429961', 'tblTempUsageDetail_20' ) end [2025-02-08 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429961', 'tblTempVendorCDR_20' ) start [2025-02-08 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429961', 'tblTempVendorCDR_20' ) end [2025-02-08 13:16:19] Production.INFO: ProcessCDR(1,14429961,1,1,2) [2025-02-08 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429961', 'tblTempUsageDetail_20' ) start [2025-02-08 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429961', 'tblTempUsageDetail_20' ) end [2025-02-08 13:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:16:24] Production.INFO: ==1878== Releasing lock... [2025-02-08 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:16:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:17:05 [end_date_ymd] => 2025-02-08 13:17:05 [RateCDR] => 1 ) [2025-02-08 13:17: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` >= '2025-02-08 10:17:05' and `end` < '2025-02-08 13:17: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 ,'') [2025-02-08 13:17:18] Production.INFO: count ==1690 [2025-02-08 13:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:17:05 - End Time 2025-02-08 13:17:05 [2025-02-08 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429966', 'tblTempUsageDetail_20' ) start [2025-02-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429966', 'tblTempUsageDetail_20' ) end [2025-02-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429966', 'tblTempVendorCDR_20' ) start [2025-02-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429966', 'tblTempVendorCDR_20' ) end [2025-02-08 13:17:19] Production.INFO: ProcessCDR(1,14429966,1,1,2) [2025-02-08 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429966', 'tblTempUsageDetail_20' ) start [2025-02-08 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429966', 'tblTempUsageDetail_20' ) end [2025-02-08 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:17:23] Production.INFO: ==2012== Releasing lock... [2025-02-08 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:17:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:18:05 [end_date_ymd] => 2025-02-08 13:18:05 [RateCDR] => 1 ) [2025-02-08 13:18: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` >= '2025-02-08 10:18:05' and `end` < '2025-02-08 13:18: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 ,'') [2025-02-08 13:18:18] Production.INFO: count ==1700 [2025-02-08 13:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:18:05 - End Time 2025-02-08 13:18:05 [2025-02-08 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429971', 'tblTempUsageDetail_20' ) start [2025-02-08 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429971', 'tblTempUsageDetail_20' ) end [2025-02-08 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429971', 'tblTempVendorCDR_20' ) start [2025-02-08 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429971', 'tblTempVendorCDR_20' ) end [2025-02-08 13:18:19] Production.INFO: ProcessCDR(1,14429971,1,1,2) [2025-02-08 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429971', 'tblTempUsageDetail_20' ) start [2025-02-08 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429971', 'tblTempUsageDetail_20' ) end [2025-02-08 13:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:18:24] Production.INFO: ==2105== Releasing lock... [2025-02-08 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:18:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:19:06 [end_date_ymd] => 2025-02-08 13:19:06 [RateCDR] => 1 ) [2025-02-08 13:19: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-02-08 10:19:06' and `end` < '2025-02-08 13:19: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-02-08 13:19:19] Production.INFO: count ==1692 [2025-02-08 13:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:19:06 - End Time 2025-02-08 13:19:06 [2025-02-08 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429976', 'tblTempUsageDetail_20' ) start [2025-02-08 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429976', 'tblTempUsageDetail_20' ) end [2025-02-08 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429976', 'tblTempVendorCDR_20' ) start [2025-02-08 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429976', 'tblTempVendorCDR_20' ) end [2025-02-08 13:19:20] Production.INFO: ProcessCDR(1,14429976,1,1,2) [2025-02-08 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429976', 'tblTempUsageDetail_20' ) start [2025-02-08 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429976', 'tblTempUsageDetail_20' ) end [2025-02-08 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:19:25] Production.INFO: ==2192== Releasing lock... [2025-02-08 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:19:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:20:06 [end_date_ymd] => 2025-02-08 13:20:06 [RateCDR] => 1 ) [2025-02-08 13:20: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-02-08 10:20:06' and `end` < '2025-02-08 13:20: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-02-08 13:20:19] Production.INFO: count ==1687 [2025-02-08 13:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:20:06 - End Time 2025-02-08 13:20:06 [2025-02-08 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429982', 'tblTempUsageDetail_20' ) start [2025-02-08 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429982', 'tblTempUsageDetail_20' ) end [2025-02-08 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429982', 'tblTempVendorCDR_20' ) start [2025-02-08 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429982', 'tblTempVendorCDR_20' ) end [2025-02-08 13:20:20] Production.INFO: ProcessCDR(1,14429982,1,1,2) [2025-02-08 13:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429982', 'tblTempUsageDetail_20' ) start [2025-02-08 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429982', 'tblTempUsageDetail_20' ) end [2025-02-08 13:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:20:25] Production.INFO: ==2288== Releasing lock... [2025-02-08 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:20:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:21:06 [end_date_ymd] => 2025-02-08 13:21:06 [RateCDR] => 1 ) [2025-02-08 13:21: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-02-08 10:21:06' and `end` < '2025-02-08 13:21: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-02-08 13:21:19] Production.INFO: count ==1715 [2025-02-08 13:21:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:21:06 - End Time 2025-02-08 13:21:06 [2025-02-08 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429987', 'tblTempUsageDetail_20' ) start [2025-02-08 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429987', 'tblTempUsageDetail_20' ) end [2025-02-08 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429987', 'tblTempVendorCDR_20' ) start [2025-02-08 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429987', 'tblTempVendorCDR_20' ) end [2025-02-08 13:21:20] Production.INFO: ProcessCDR(1,14429987,1,1,2) [2025-02-08 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429987', 'tblTempUsageDetail_20' ) start [2025-02-08 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429987', 'tblTempUsageDetail_20' ) end [2025-02-08 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:21:25] Production.INFO: ==2390== Releasing lock... [2025-02-08 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:21:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:22:06 [end_date_ymd] => 2025-02-08 13:22:06 [RateCDR] => 1 ) [2025-02-08 13:22: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-02-08 10:22:06' and `end` < '2025-02-08 13:22: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-02-08 13:22:19] Production.INFO: count ==1716 [2025-02-08 13:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:22:06 - End Time 2025-02-08 13:22:06 [2025-02-08 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429992', 'tblTempUsageDetail_20' ) start [2025-02-08 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429992', 'tblTempUsageDetail_20' ) end [2025-02-08 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429992', 'tblTempVendorCDR_20' ) start [2025-02-08 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429992', 'tblTempVendorCDR_20' ) end [2025-02-08 13:22:20] Production.INFO: ProcessCDR(1,14429992,1,1,2) [2025-02-08 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429992', 'tblTempUsageDetail_20' ) start [2025-02-08 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429992', 'tblTempUsageDetail_20' ) end [2025-02-08 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:22:23] Production.INFO: ==2484== Releasing lock... [2025-02-08 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:22:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:23:06 [end_date_ymd] => 2025-02-08 13:23:06 [RateCDR] => 1 ) [2025-02-08 13:23: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-02-08 10:23:06' and `end` < '2025-02-08 13:23: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-02-08 13:23:19] Production.INFO: count ==1712 [2025-02-08 13:23:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:23:06 - End Time 2025-02-08 13:23:06 [2025-02-08 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429997', 'tblTempUsageDetail_20' ) start [2025-02-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14429997', 'tblTempUsageDetail_20' ) end [2025-02-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429997', 'tblTempVendorCDR_20' ) start [2025-02-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14429997', 'tblTempVendorCDR_20' ) end [2025-02-08 13:23:20] Production.INFO: ProcessCDR(1,14429997,1,1,2) [2025-02-08 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14429997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14429997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14429997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14429997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429997', 'tblTempUsageDetail_20' ) start [2025-02-08 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14429997', 'tblTempUsageDetail_20' ) end [2025-02-08 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:23:26] Production.INFO: ==2582== Releasing lock... [2025-02-08 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:23:26] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:24:05 [end_date_ymd] => 2025-02-08 13:24:05 [RateCDR] => 1 ) [2025-02-08 13:24: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` >= '2025-02-08 10:24:05' and `end` < '2025-02-08 13:24: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 ,'') [2025-02-08 13:24:19] Production.INFO: count ==1705 [2025-02-08 13:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:24:05 - End Time 2025-02-08 13:24:05 [2025-02-08 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430002', 'tblTempUsageDetail_20' ) start [2025-02-08 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430002', 'tblTempUsageDetail_20' ) end [2025-02-08 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430002', 'tblTempVendorCDR_20' ) start [2025-02-08 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430002', 'tblTempVendorCDR_20' ) end [2025-02-08 13:24:19] Production.INFO: ProcessCDR(1,14430002,1,1,2) [2025-02-08 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430002', 'tblTempUsageDetail_20' ) start [2025-02-08 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430002', 'tblTempUsageDetail_20' ) end [2025-02-08 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:24:25] Production.INFO: ==2669== Releasing lock... [2025-02-08 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:24:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:25:06 [end_date_ymd] => 2025-02-08 13:25:06 [RateCDR] => 1 ) [2025-02-08 13:25: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-02-08 10:25:06' and `end` < '2025-02-08 13:25: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-02-08 13:25:19] Production.INFO: count ==1710 [2025-02-08 13:25:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:25:06 - End Time 2025-02-08 13:25:06 [2025-02-08 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430007', 'tblTempUsageDetail_20' ) start [2025-02-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430007', 'tblTempUsageDetail_20' ) end [2025-02-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430007', 'tblTempVendorCDR_20' ) start [2025-02-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430007', 'tblTempVendorCDR_20' ) end [2025-02-08 13:25:20] Production.INFO: ProcessCDR(1,14430007,1,1,2) [2025-02-08 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430007', 'tblTempUsageDetail_20' ) start [2025-02-08 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430007', 'tblTempUsageDetail_20' ) end [2025-02-08 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:25:23] Production.INFO: ==2760== Releasing lock... [2025-02-08 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:25:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:26:05 [end_date_ymd] => 2025-02-08 13:26:05 [RateCDR] => 1 ) [2025-02-08 13:26: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` >= '2025-02-08 10:26:05' and `end` < '2025-02-08 13:26: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 ,'') [2025-02-08 13:26:19] Production.INFO: count ==1709 [2025-02-08 13:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:26:05 - End Time 2025-02-08 13:26:05 [2025-02-08 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430012', 'tblTempUsageDetail_20' ) start [2025-02-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430012', 'tblTempUsageDetail_20' ) end [2025-02-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430012', 'tblTempVendorCDR_20' ) start [2025-02-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430012', 'tblTempVendorCDR_20' ) end [2025-02-08 13:26:19] Production.INFO: ProcessCDR(1,14430012,1,1,2) [2025-02-08 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430012', 'tblTempUsageDetail_20' ) start [2025-02-08 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430012', 'tblTempUsageDetail_20' ) end [2025-02-08 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:26:25] Production.INFO: ==2857== Releasing lock... [2025-02-08 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:26:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:27:05 [end_date_ymd] => 2025-02-08 13:27:05 [RateCDR] => 1 ) [2025-02-08 13:27: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` >= '2025-02-08 10:27:05' and `end` < '2025-02-08 13:27: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 ,'') [2025-02-08 13:27:18] Production.INFO: count ==1718 [2025-02-08 13:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:27:05 - End Time 2025-02-08 13:27:05 [2025-02-08 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430017', 'tblTempUsageDetail_20' ) start [2025-02-08 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430017', 'tblTempUsageDetail_20' ) end [2025-02-08 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430017', 'tblTempVendorCDR_20' ) start [2025-02-08 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430017', 'tblTempVendorCDR_20' ) end [2025-02-08 13:27:19] Production.INFO: ProcessCDR(1,14430017,1,1,2) [2025-02-08 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430017', 'tblTempUsageDetail_20' ) start [2025-02-08 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430017', 'tblTempUsageDetail_20' ) end [2025-02-08 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:27:24] Production.INFO: ==2952== Releasing lock... [2025-02-08 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:27:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:28:05 [end_date_ymd] => 2025-02-08 13:28:05 [RateCDR] => 1 ) [2025-02-08 13:28: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` >= '2025-02-08 10:28:05' and `end` < '2025-02-08 13:28: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 ,'') [2025-02-08 13:28:18] Production.INFO: count ==1719 [2025-02-08 13:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:28:05 - End Time 2025-02-08 13:28:05 [2025-02-08 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430022', 'tblTempUsageDetail_20' ) start [2025-02-08 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430022', 'tblTempUsageDetail_20' ) end [2025-02-08 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430022', 'tblTempVendorCDR_20' ) start [2025-02-08 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430022', 'tblTempVendorCDR_20' ) end [2025-02-08 13:28:19] Production.INFO: ProcessCDR(1,14430022,1,1,2) [2025-02-08 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430022', 'tblTempUsageDetail_20' ) start [2025-02-08 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430022', 'tblTempUsageDetail_20' ) end [2025-02-08 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:28:23] Production.INFO: ==3043== Releasing lock... [2025-02-08 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:29:06 [end_date_ymd] => 2025-02-08 13:29:06 [RateCDR] => 1 ) [2025-02-08 13:29: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-02-08 10:29:06' and `end` < '2025-02-08 13:29: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-02-08 13:29:19] Production.INFO: count ==1713 [2025-02-08 13:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:29:06 - End Time 2025-02-08 13:29:06 [2025-02-08 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430027', 'tblTempUsageDetail_20' ) start [2025-02-08 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430027', 'tblTempUsageDetail_20' ) end [2025-02-08 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430027', 'tblTempVendorCDR_20' ) start [2025-02-08 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430027', 'tblTempVendorCDR_20' ) end [2025-02-08 13:29:20] Production.INFO: ProcessCDR(1,14430027,1,1,2) [2025-02-08 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430027', 'tblTempUsageDetail_20' ) start [2025-02-08 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430027', 'tblTempUsageDetail_20' ) end [2025-02-08 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:29:25] Production.INFO: ==3134== Releasing lock... [2025-02-08 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:29:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:30:06 [end_date_ymd] => 2025-02-08 13:30:06 [RateCDR] => 1 ) [2025-02-08 13:30: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-02-08 10:30:06' and `end` < '2025-02-08 13:30: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-02-08 13:30:19] Production.INFO: count ==1711 [2025-02-08 13:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:30:06 - End Time 2025-02-08 13:30:06 [2025-02-08 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430033', 'tblTempUsageDetail_20' ) start [2025-02-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430033', 'tblTempUsageDetail_20' ) end [2025-02-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430033', 'tblTempVendorCDR_20' ) start [2025-02-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430033', 'tblTempVendorCDR_20' ) end [2025-02-08 13:30:20] Production.INFO: ProcessCDR(1,14430033,1,1,2) [2025-02-08 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430033', 'tblTempUsageDetail_20' ) start [2025-02-08 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430033', 'tblTempUsageDetail_20' ) end [2025-02-08 13:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:30:24] Production.INFO: ==3229== Releasing lock... [2025-02-08 13:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:30:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:31:06 [end_date_ymd] => 2025-02-08 13:31:06 [RateCDR] => 1 ) [2025-02-08 13:31: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-02-08 10:31:06' and `end` < '2025-02-08 13:31: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-02-08 13:31:19] Production.INFO: count ==1747 [2025-02-08 13:31:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:31:06 - End Time 2025-02-08 13:31:06 [2025-02-08 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430038', 'tblTempUsageDetail_20' ) start [2025-02-08 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430038', 'tblTempUsageDetail_20' ) end [2025-02-08 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430038', 'tblTempVendorCDR_20' ) start [2025-02-08 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430038', 'tblTempVendorCDR_20' ) end [2025-02-08 13:31:20] Production.INFO: ProcessCDR(1,14430038,1,1,2) [2025-02-08 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430038', 'tblTempUsageDetail_20' ) start [2025-02-08 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430038', 'tblTempUsageDetail_20' ) end [2025-02-08 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:31:23] Production.INFO: ==3319== Releasing lock... [2025-02-08 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:31:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:32:05 [end_date_ymd] => 2025-02-08 13:32:05 [RateCDR] => 1 ) [2025-02-08 13:32: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` >= '2025-02-08 10:32:05' and `end` < '2025-02-08 13:32: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 ,'') [2025-02-08 13:32:19] Production.INFO: count ==1747 [2025-02-08 13:32:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:32:05 - End Time 2025-02-08 13:32:05 [2025-02-08 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430043', 'tblTempUsageDetail_20' ) start [2025-02-08 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430043', 'tblTempUsageDetail_20' ) end [2025-02-08 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430043', 'tblTempVendorCDR_20' ) start [2025-02-08 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430043', 'tblTempVendorCDR_20' ) end [2025-02-08 13:32:20] Production.INFO: ProcessCDR(1,14430043,1,1,2) [2025-02-08 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430043', 'tblTempUsageDetail_20' ) start [2025-02-08 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430043', 'tblTempUsageDetail_20' ) end [2025-02-08 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:32:23] Production.INFO: ==3449== Releasing lock... [2025-02-08 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:32:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:33:05 [end_date_ymd] => 2025-02-08 13:33:05 [RateCDR] => 1 ) [2025-02-08 13:33: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-02-08 10:33:05' and `end` < '2025-02-08 13:33: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 ,'') [2025-02-08 13:33:19] Production.INFO: count ==1745 [2025-02-08 13:33:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:33:05 - End Time 2025-02-08 13:33:05 [2025-02-08 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430048', 'tblTempUsageDetail_20' ) start [2025-02-08 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430048', 'tblTempUsageDetail_20' ) end [2025-02-08 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430048', 'tblTempVendorCDR_20' ) start [2025-02-08 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430048', 'tblTempVendorCDR_20' ) end [2025-02-08 13:33:20] Production.INFO: ProcessCDR(1,14430048,1,1,2) [2025-02-08 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430048', 'tblTempUsageDetail_20' ) start [2025-02-08 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430048', 'tblTempUsageDetail_20' ) end [2025-02-08 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:33:25] Production.INFO: ==3546== Releasing lock... [2025-02-08 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:33:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:34:05 [end_date_ymd] => 2025-02-08 13:34:05 [RateCDR] => 1 ) [2025-02-08 13:34: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` >= '2025-02-08 10:34:05' and `end` < '2025-02-08 13:34: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 ,'') [2025-02-08 13:34:19] Production.INFO: count ==1741 [2025-02-08 13:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:34:05 - End Time 2025-02-08 13:34:05 [2025-02-08 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430053', 'tblTempUsageDetail_20' ) start [2025-02-08 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430053', 'tblTempUsageDetail_20' ) end [2025-02-08 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430053', 'tblTempVendorCDR_20' ) start [2025-02-08 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430053', 'tblTempVendorCDR_20' ) end [2025-02-08 13:34:19] Production.INFO: ProcessCDR(1,14430053,1,1,2) [2025-02-08 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430053', 'tblTempUsageDetail_20' ) start [2025-02-08 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430053', 'tblTempUsageDetail_20' ) end [2025-02-08 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:34:23] Production.INFO: ==3645== Releasing lock... [2025-02-08 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:34:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:35:05 [end_date_ymd] => 2025-02-08 13:35:05 [RateCDR] => 1 ) [2025-02-08 13:35: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` >= '2025-02-08 10:35:05' and `end` < '2025-02-08 13:35: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 ,'') [2025-02-08 13:35:19] Production.INFO: count ==1734 [2025-02-08 13:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:35:05 - End Time 2025-02-08 13:35:05 [2025-02-08 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430058', 'tblTempUsageDetail_20' ) start [2025-02-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430058', 'tblTempUsageDetail_20' ) end [2025-02-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430058', 'tblTempVendorCDR_20' ) start [2025-02-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430058', 'tblTempVendorCDR_20' ) end [2025-02-08 13:35:19] Production.INFO: ProcessCDR(1,14430058,1,1,2) [2025-02-08 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430058', 'tblTempUsageDetail_20' ) start [2025-02-08 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430058', 'tblTempUsageDetail_20' ) end [2025-02-08 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:35:25] Production.INFO: ==3741== Releasing lock... [2025-02-08 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:35:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:36:05 [end_date_ymd] => 2025-02-08 13:36:05 [RateCDR] => 1 ) [2025-02-08 13:36: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` >= '2025-02-08 10:36:05' and `end` < '2025-02-08 13:36: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 ,'') [2025-02-08 13:36:18] Production.INFO: count ==1718 [2025-02-08 13:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:36:05 - End Time 2025-02-08 13:36:05 [2025-02-08 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430063', 'tblTempUsageDetail_20' ) start [2025-02-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430063', 'tblTempUsageDetail_20' ) end [2025-02-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430063', 'tblTempVendorCDR_20' ) start [2025-02-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430063', 'tblTempVendorCDR_20' ) end [2025-02-08 13:36:19] Production.INFO: ProcessCDR(1,14430063,1,1,2) [2025-02-08 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430063', 'tblTempUsageDetail_20' ) start [2025-02-08 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430063', 'tblTempUsageDetail_20' ) end [2025-02-08 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:36:23] Production.INFO: ==3826== Releasing lock... [2025-02-08 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:36:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:37:06 [end_date_ymd] => 2025-02-08 13:37:06 [RateCDR] => 1 ) [2025-02-08 13:37: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-02-08 10:37:06' and `end` < '2025-02-08 13:37: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-02-08 13:37:19] Production.INFO: count ==1718 [2025-02-08 13:37:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:37:06 - End Time 2025-02-08 13:37:06 [2025-02-08 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430068', 'tblTempUsageDetail_20' ) start [2025-02-08 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430068', 'tblTempUsageDetail_20' ) end [2025-02-08 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430068', 'tblTempVendorCDR_20' ) start [2025-02-08 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430068', 'tblTempVendorCDR_20' ) end [2025-02-08 13:37:20] Production.INFO: ProcessCDR(1,14430068,1,1,2) [2025-02-08 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430068', 'tblTempUsageDetail_20' ) start [2025-02-08 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430068', 'tblTempUsageDetail_20' ) end [2025-02-08 13:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:37:25] Production.INFO: ==3919== Releasing lock... [2025-02-08 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:37:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:38:05 [end_date_ymd] => 2025-02-08 13:38:05 [RateCDR] => 1 ) [2025-02-08 13:38: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` >= '2025-02-08 10:38:05' and `end` < '2025-02-08 13:38: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 ,'') [2025-02-08 13:38:18] Production.INFO: count ==1714 [2025-02-08 13:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:38:05 - End Time 2025-02-08 13:38:05 [2025-02-08 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430073', 'tblTempUsageDetail_20' ) start [2025-02-08 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430073', 'tblTempUsageDetail_20' ) end [2025-02-08 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430073', 'tblTempVendorCDR_20' ) start [2025-02-08 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430073', 'tblTempVendorCDR_20' ) end [2025-02-08 13:38:19] Production.INFO: ProcessCDR(1,14430073,1,1,2) [2025-02-08 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430073', 'tblTempUsageDetail_20' ) start [2025-02-08 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430073', 'tblTempUsageDetail_20' ) end [2025-02-08 13:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:38:23] Production.INFO: ==4014== Releasing lock... [2025-02-08 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:38:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:39:06 [end_date_ymd] => 2025-02-08 13:39:06 [RateCDR] => 1 ) [2025-02-08 13:39: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-02-08 10:39:06' and `end` < '2025-02-08 13:39: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-02-08 13:39:19] Production.INFO: count ==1719 [2025-02-08 13:39:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:39:06 - End Time 2025-02-08 13:39:06 [2025-02-08 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430078', 'tblTempUsageDetail_20' ) start [2025-02-08 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430078', 'tblTempUsageDetail_20' ) end [2025-02-08 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430078', 'tblTempVendorCDR_20' ) start [2025-02-08 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430078', 'tblTempVendorCDR_20' ) end [2025-02-08 13:39:20] Production.INFO: ProcessCDR(1,14430078,1,1,2) [2025-02-08 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430078', 'tblTempUsageDetail_20' ) start [2025-02-08 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430078', 'tblTempUsageDetail_20' ) end [2025-02-08 13:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:39:24] Production.INFO: ==4106== Releasing lock... [2025-02-08 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:39:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:40:06 [end_date_ymd] => 2025-02-08 13:40:06 [RateCDR] => 1 ) [2025-02-08 13:40: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-02-08 10:40:06' and `end` < '2025-02-08 13:40: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-02-08 13:40:19] Production.INFO: count ==1720 [2025-02-08 13:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:40:06 - End Time 2025-02-08 13:40:06 [2025-02-08 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430084', 'tblTempUsageDetail_20' ) start [2025-02-08 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430084', 'tblTempUsageDetail_20' ) end [2025-02-08 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430084', 'tblTempVendorCDR_20' ) start [2025-02-08 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430084', 'tblTempVendorCDR_20' ) end [2025-02-08 13:40:20] Production.INFO: ProcessCDR(1,14430084,1,1,2) [2025-02-08 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430084', 'tblTempUsageDetail_20' ) start [2025-02-08 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430084', 'tblTempUsageDetail_20' ) end [2025-02-08 13:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:40:25] Production.INFO: ==4199== Releasing lock... [2025-02-08 13:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:40:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:41:05 [end_date_ymd] => 2025-02-08 13:41:05 [RateCDR] => 1 ) [2025-02-08 13:41: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` >= '2025-02-08 10:41:05' and `end` < '2025-02-08 13:41: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 ,'') [2025-02-08 13:41:18] Production.INFO: count ==1744 [2025-02-08 13:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:41:05 - End Time 2025-02-08 13:41:05 [2025-02-08 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430089', 'tblTempUsageDetail_20' ) start [2025-02-08 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430089', 'tblTempUsageDetail_20' ) end [2025-02-08 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430089', 'tblTempVendorCDR_20' ) start [2025-02-08 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430089', 'tblTempVendorCDR_20' ) end [2025-02-08 13:41:19] Production.INFO: ProcessCDR(1,14430089,1,1,2) [2025-02-08 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430089', 'tblTempUsageDetail_20' ) start [2025-02-08 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430089', 'tblTempUsageDetail_20' ) end [2025-02-08 13:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:41:24] Production.INFO: ==4298== Releasing lock... [2025-02-08 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:41:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:42:05 [end_date_ymd] => 2025-02-08 13:42:05 [RateCDR] => 1 ) [2025-02-08 13:42: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` >= '2025-02-08 10:42:05' and `end` < '2025-02-08 13:42: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 ,'') [2025-02-08 13:42:20] Production.INFO: count ==1758 [2025-02-08 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-08 10:42:05 - End Time 2025-02-08 13:42:05 [2025-02-08 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430094', 'tblTempUsageDetail_20' ) start [2025-02-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430094', 'tblTempUsageDetail_20' ) end [2025-02-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430094', 'tblTempVendorCDR_20' ) start [2025-02-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430094', 'tblTempVendorCDR_20' ) end [2025-02-08 13:42:21] Production.INFO: ProcessCDR(1,14430094,1,1,2) [2025-02-08 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430094', 'tblTempUsageDetail_20' ) start [2025-02-08 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430094', 'tblTempUsageDetail_20' ) end [2025-02-08 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:42:26] Production.INFO: ==4385== Releasing lock... [2025-02-08 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:42:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:43:05 [end_date_ymd] => 2025-02-08 13:43:05 [RateCDR] => 1 ) [2025-02-08 13:43: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` >= '2025-02-08 10:43:05' and `end` < '2025-02-08 13:43: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 ,'') [2025-02-08 13:43:20] Production.INFO: count ==1753 [2025-02-08 13:43:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:43:05 - End Time 2025-02-08 13:43:05 [2025-02-08 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430099', 'tblTempUsageDetail_20' ) start [2025-02-08 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430099', 'tblTempUsageDetail_20' ) end [2025-02-08 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430099', 'tblTempVendorCDR_20' ) start [2025-02-08 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430099', 'tblTempVendorCDR_20' ) end [2025-02-08 13:43:20] Production.INFO: ProcessCDR(1,14430099,1,1,2) [2025-02-08 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430099', 'tblTempUsageDetail_20' ) start [2025-02-08 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430099', 'tblTempUsageDetail_20' ) end [2025-02-08 13:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:43:24] Production.INFO: ==4476== Releasing lock... [2025-02-08 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:43:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:44:05 [end_date_ymd] => 2025-02-08 13:44:05 [RateCDR] => 1 ) [2025-02-08 13:44: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` >= '2025-02-08 10:44:05' and `end` < '2025-02-08 13:44: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 ,'') [2025-02-08 13:44:18] Production.INFO: count ==1745 [2025-02-08 13:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:44:05 - End Time 2025-02-08 13:44:05 [2025-02-08 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430104', 'tblTempUsageDetail_20' ) start [2025-02-08 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430104', 'tblTempUsageDetail_20' ) end [2025-02-08 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430104', 'tblTempVendorCDR_20' ) start [2025-02-08 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430104', 'tblTempVendorCDR_20' ) end [2025-02-08 13:44:19] Production.INFO: ProcessCDR(1,14430104,1,1,2) [2025-02-08 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430104', 'tblTempUsageDetail_20' ) start [2025-02-08 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430104', 'tblTempUsageDetail_20' ) end [2025-02-08 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:44:23] Production.INFO: ==4567== Releasing lock... [2025-02-08 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:44:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:45:06 [end_date_ymd] => 2025-02-08 13:45:06 [RateCDR] => 1 ) [2025-02-08 13:45: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-02-08 10:45:06' and `end` < '2025-02-08 13:45: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-02-08 13:45:19] Production.INFO: count ==1734 [2025-02-08 13:45:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:45:06 - End Time 2025-02-08 13:45:06 [2025-02-08 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430109', 'tblTempUsageDetail_20' ) start [2025-02-08 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430109', 'tblTempUsageDetail_20' ) end [2025-02-08 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430109', 'tblTempVendorCDR_20' ) start [2025-02-08 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430109', 'tblTempVendorCDR_20' ) end [2025-02-08 13:45:20] Production.INFO: ProcessCDR(1,14430109,1,1,2) [2025-02-08 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430109', 'tblTempUsageDetail_20' ) start [2025-02-08 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430109', 'tblTempUsageDetail_20' ) end [2025-02-08 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:45:26] Production.INFO: ==4665== Releasing lock... [2025-02-08 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:45:26] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:46:05 [end_date_ymd] => 2025-02-08 13:46:05 [RateCDR] => 1 ) [2025-02-08 13:46: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` >= '2025-02-08 10:46:05' and `end` < '2025-02-08 13:46: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 ,'') [2025-02-08 13:46:19] Production.INFO: count ==1738 [2025-02-08 13:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:46:05 - End Time 2025-02-08 13:46:05 [2025-02-08 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430114', 'tblTempUsageDetail_20' ) start [2025-02-08 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430114', 'tblTempUsageDetail_20' ) end [2025-02-08 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430114', 'tblTempVendorCDR_20' ) start [2025-02-08 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430114', 'tblTempVendorCDR_20' ) end [2025-02-08 13:46:19] Production.INFO: ProcessCDR(1,14430114,1,1,2) [2025-02-08 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430114', 'tblTempUsageDetail_20' ) start [2025-02-08 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430114', 'tblTempUsageDetail_20' ) end [2025-02-08 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:46:25] Production.INFO: ==4754== Releasing lock... [2025-02-08 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:46:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:47:06 [end_date_ymd] => 2025-02-08 13:47:06 [RateCDR] => 1 ) [2025-02-08 13:47: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-02-08 10:47:06' and `end` < '2025-02-08 13:47: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-02-08 13:47:19] Production.INFO: count ==1716 [2025-02-08 13:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:47:06 - End Time 2025-02-08 13:47:06 [2025-02-08 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430119', 'tblTempUsageDetail_20' ) start [2025-02-08 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430119', 'tblTempUsageDetail_20' ) end [2025-02-08 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430119', 'tblTempVendorCDR_20' ) start [2025-02-08 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430119', 'tblTempVendorCDR_20' ) end [2025-02-08 13:47:20] Production.INFO: ProcessCDR(1,14430119,1,1,2) [2025-02-08 13:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430119', 'tblTempUsageDetail_20' ) start [2025-02-08 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430119', 'tblTempUsageDetail_20' ) end [2025-02-08 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:47:23] Production.INFO: ==4844== Releasing lock... [2025-02-08 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:47:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:48:05 [end_date_ymd] => 2025-02-08 13:48:05 [RateCDR] => 1 ) [2025-02-08 13:48: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` >= '2025-02-08 10:48:05' and `end` < '2025-02-08 13:48: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 ,'') [2025-02-08 13:48:18] Production.INFO: count ==1700 [2025-02-08 13:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:48:05 - End Time 2025-02-08 13:48:05 [2025-02-08 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430124', 'tblTempUsageDetail_20' ) start [2025-02-08 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430124', 'tblTempUsageDetail_20' ) end [2025-02-08 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430124', 'tblTempVendorCDR_20' ) start [2025-02-08 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430124', 'tblTempVendorCDR_20' ) end [2025-02-08 13:48:19] Production.INFO: ProcessCDR(1,14430124,1,1,2) [2025-02-08 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430124', 'tblTempUsageDetail_20' ) start [2025-02-08 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430124', 'tblTempUsageDetail_20' ) end [2025-02-08 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:48:24] Production.INFO: ==4978== Releasing lock... [2025-02-08 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:48:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:49:05 [end_date_ymd] => 2025-02-08 13:49:05 [RateCDR] => 1 ) [2025-02-08 13:49: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` >= '2025-02-08 10:49:05' and `end` < '2025-02-08 13:49: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 ,'') [2025-02-08 13:49:19] Production.INFO: count ==1701 [2025-02-08 13:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:49:05 - End Time 2025-02-08 13:49:05 [2025-02-08 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430129', 'tblTempUsageDetail_20' ) start [2025-02-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430129', 'tblTempUsageDetail_20' ) end [2025-02-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430129', 'tblTempVendorCDR_20' ) start [2025-02-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430129', 'tblTempVendorCDR_20' ) end [2025-02-08 13:49:19] Production.INFO: ProcessCDR(1,14430129,1,1,2) [2025-02-08 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430129', 'tblTempUsageDetail_20' ) start [2025-02-08 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430129', 'tblTempUsageDetail_20' ) end [2025-02-08 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:49:25] Production.INFO: ==5065== Releasing lock... [2025-02-08 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:49:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:50:06 [end_date_ymd] => 2025-02-08 13:50:06 [RateCDR] => 1 ) [2025-02-08 13:50: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-02-08 10:50:06' and `end` < '2025-02-08 13:50: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-02-08 13:50:19] Production.INFO: count ==1691 [2025-02-08 13:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:50:06 - End Time 2025-02-08 13:50:06 [2025-02-08 13:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430135', 'tblTempUsageDetail_20' ) start [2025-02-08 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430135', 'tblTempUsageDetail_20' ) end [2025-02-08 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430135', 'tblTempVendorCDR_20' ) start [2025-02-08 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430135', 'tblTempVendorCDR_20' ) end [2025-02-08 13:50:20] Production.INFO: ProcessCDR(1,14430135,1,1,2) [2025-02-08 13:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430135', 'tblTempUsageDetail_20' ) start [2025-02-08 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430135', 'tblTempUsageDetail_20' ) end [2025-02-08 13:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:50:25] Production.INFO: ==5160== Releasing lock... [2025-02-08 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:50:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:51:06 [end_date_ymd] => 2025-02-08 13:51:06 [RateCDR] => 1 ) [2025-02-08 13:51: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-02-08 10:51:06' and `end` < '2025-02-08 13:51: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-02-08 13:51:19] Production.INFO: count ==1678 [2025-02-08 13:51:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:51:06 - End Time 2025-02-08 13:51:06 [2025-02-08 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430140', 'tblTempUsageDetail_20' ) start [2025-02-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430140', 'tblTempUsageDetail_20' ) end [2025-02-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430140', 'tblTempVendorCDR_20' ) start [2025-02-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430140', 'tblTempVendorCDR_20' ) end [2025-02-08 13:51:20] Production.INFO: ProcessCDR(1,14430140,1,1,2) [2025-02-08 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430140', 'tblTempUsageDetail_20' ) start [2025-02-08 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430140', 'tblTempUsageDetail_20' ) end [2025-02-08 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:51:25] Production.INFO: ==5248== Releasing lock... [2025-02-08 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:51:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:52:05 [end_date_ymd] => 2025-02-08 13:52:05 [RateCDR] => 1 ) [2025-02-08 13:52: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` >= '2025-02-08 10:52:05' and `end` < '2025-02-08 13:52: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 ,'') [2025-02-08 13:52:20] Production.INFO: count ==1667 [2025-02-08 13:52:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:52:05 - End Time 2025-02-08 13:52:05 [2025-02-08 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430145', 'tblTempUsageDetail_20' ) start [2025-02-08 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430145', 'tblTempUsageDetail_20' ) end [2025-02-08 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430145', 'tblTempVendorCDR_20' ) start [2025-02-08 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430145', 'tblTempVendorCDR_20' ) end [2025-02-08 13:52:20] Production.INFO: ProcessCDR(1,14430145,1,1,2) [2025-02-08 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430145', 'tblTempUsageDetail_20' ) start [2025-02-08 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430145', 'tblTempUsageDetail_20' ) end [2025-02-08 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:52:26] Production.INFO: ==5328== Releasing lock... [2025-02-08 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:52:26] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:53:06 [end_date_ymd] => 2025-02-08 13:53:06 [RateCDR] => 1 ) [2025-02-08 13:53: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-02-08 10:53:06' and `end` < '2025-02-08 13:53: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-02-08 13:53:21] Production.INFO: count ==1669 [2025-02-08 13:53:21] Production.ERROR: pbx CDR StartTime 2025-02-08 10:53:06 - End Time 2025-02-08 13:53:06 [2025-02-08 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430150', 'tblTempUsageDetail_20' ) start [2025-02-08 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430150', 'tblTempUsageDetail_20' ) end [2025-02-08 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430150', 'tblTempVendorCDR_20' ) start [2025-02-08 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430150', 'tblTempVendorCDR_20' ) end [2025-02-08 13:53:21] Production.INFO: ProcessCDR(1,14430150,1,1,2) [2025-02-08 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430150', 'tblTempUsageDetail_20' ) start [2025-02-08 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430150', 'tblTempUsageDetail_20' ) end [2025-02-08 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:53:26] Production.INFO: ==5416== Releasing lock... [2025-02-08 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:53:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:54:05 [end_date_ymd] => 2025-02-08 13:54:05 [RateCDR] => 1 ) [2025-02-08 13:54: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` >= '2025-02-08 10:54:05' and `end` < '2025-02-08 13:54: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 ,'') [2025-02-08 13:54:19] Production.INFO: count ==1668 [2025-02-08 13:54:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:54:05 - End Time 2025-02-08 13:54:05 [2025-02-08 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430155', 'tblTempUsageDetail_20' ) start [2025-02-08 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430155', 'tblTempUsageDetail_20' ) end [2025-02-08 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430155', 'tblTempVendorCDR_20' ) start [2025-02-08 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430155', 'tblTempVendorCDR_20' ) end [2025-02-08 13:54:20] Production.INFO: ProcessCDR(1,14430155,1,1,2) [2025-02-08 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430155', 'tblTempUsageDetail_20' ) start [2025-02-08 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430155', 'tblTempUsageDetail_20' ) end [2025-02-08 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:54:23] Production.INFO: ==5498== Releasing lock... [2025-02-08 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:54:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:55:05 [end_date_ymd] => 2025-02-08 13:55:05 [RateCDR] => 1 ) [2025-02-08 13:55: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` >= '2025-02-08 10:55:05' and `end` < '2025-02-08 13:55: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 ,'') [2025-02-08 13:55:19] Production.INFO: count ==1669 [2025-02-08 13:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:55:05 - End Time 2025-02-08 13:55:05 [2025-02-08 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430160', 'tblTempUsageDetail_20' ) start [2025-02-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430160', 'tblTempUsageDetail_20' ) end [2025-02-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430160', 'tblTempVendorCDR_20' ) start [2025-02-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430160', 'tblTempVendorCDR_20' ) end [2025-02-08 13:55:19] Production.INFO: ProcessCDR(1,14430160,1,1,2) [2025-02-08 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430160', 'tblTempUsageDetail_20' ) start [2025-02-08 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430160', 'tblTempUsageDetail_20' ) end [2025-02-08 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:55:24] Production.INFO: ==5584== Releasing lock... [2025-02-08 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:55:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:56:05 [end_date_ymd] => 2025-02-08 13:56:05 [RateCDR] => 1 ) [2025-02-08 13:56: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` >= '2025-02-08 10:56:05' and `end` < '2025-02-08 13:56: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 ,'') [2025-02-08 13:56:20] Production.INFO: count ==1663 [2025-02-08 13:56:20] Production.ERROR: pbx CDR StartTime 2025-02-08 10:56:05 - End Time 2025-02-08 13:56:05 [2025-02-08 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430165', 'tblTempUsageDetail_20' ) start [2025-02-08 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430165', 'tblTempUsageDetail_20' ) end [2025-02-08 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430165', 'tblTempVendorCDR_20' ) start [2025-02-08 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430165', 'tblTempVendorCDR_20' ) end [2025-02-08 13:56:20] Production.INFO: ProcessCDR(1,14430165,1,1,2) [2025-02-08 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430165', 'tblTempUsageDetail_20' ) start [2025-02-08 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430165', 'tblTempUsageDetail_20' ) end [2025-02-08 13:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:56:25] Production.INFO: ==5669== Releasing lock... [2025-02-08 13:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:56:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:57:05 [end_date_ymd] => 2025-02-08 13:57:05 [RateCDR] => 1 ) [2025-02-08 13:57: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` >= '2025-02-08 10:57:05' and `end` < '2025-02-08 13:57: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 ,'') [2025-02-08 13:57:18] Production.INFO: count ==1652 [2025-02-08 13:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:57:05 - End Time 2025-02-08 13:57:05 [2025-02-08 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430170', 'tblTempUsageDetail_20' ) start [2025-02-08 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430170', 'tblTempUsageDetail_20' ) end [2025-02-08 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430170', 'tblTempVendorCDR_20' ) start [2025-02-08 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430170', 'tblTempVendorCDR_20' ) end [2025-02-08 13:57:19] Production.INFO: ProcessCDR(1,14430170,1,1,2) [2025-02-08 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430170', 'tblTempUsageDetail_20' ) start [2025-02-08 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430170', 'tblTempUsageDetail_20' ) end [2025-02-08 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:57:23] Production.INFO: ==5757== Releasing lock... [2025-02-08 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:57:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:58:05 [end_date_ymd] => 2025-02-08 13:58:05 [RateCDR] => 1 ) [2025-02-08 13:58: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` >= '2025-02-08 10:58:05' and `end` < '2025-02-08 13:58: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 ,'') [2025-02-08 13:58:18] Production.INFO: count ==1638 [2025-02-08 13:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 10:58:05 - End Time 2025-02-08 13:58:05 [2025-02-08 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430175', 'tblTempUsageDetail_20' ) start [2025-02-08 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430175', 'tblTempUsageDetail_20' ) end [2025-02-08 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430175', 'tblTempVendorCDR_20' ) start [2025-02-08 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430175', 'tblTempVendorCDR_20' ) end [2025-02-08 13:58:19] Production.INFO: ProcessCDR(1,14430175,1,1,2) [2025-02-08 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430175', 'tblTempUsageDetail_20' ) start [2025-02-08 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430175', 'tblTempUsageDetail_20' ) end [2025-02-08 13:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:58:24] Production.INFO: ==5838== Releasing lock... [2025-02-08 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:58:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 10:59:06 [end_date_ymd] => 2025-02-08 13:59:06 [RateCDR] => 1 ) [2025-02-08 13:59: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-02-08 10:59:06' and `end` < '2025-02-08 13:59: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-02-08 13:59:21] Production.INFO: count ==1639 [2025-02-08 13:59:21] Production.ERROR: pbx CDR StartTime 2025-02-08 10:59:06 - End Time 2025-02-08 13:59:06 [2025-02-08 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430180', 'tblTempUsageDetail_20' ) start [2025-02-08 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430180', 'tblTempUsageDetail_20' ) end [2025-02-08 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430180', 'tblTempVendorCDR_20' ) start [2025-02-08 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430180', 'tblTempVendorCDR_20' ) end [2025-02-08 13:59:21] Production.INFO: ProcessCDR(1,14430180,1,1,2) [2025-02-08 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430180', 'tblTempUsageDetail_20' ) start [2025-02-08 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430180', 'tblTempUsageDetail_20' ) end [2025-02-08 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 13:59:26] Production.INFO: ==5926== Releasing lock... [2025-02-08 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 13:59:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:00:06 [end_date_ymd] => 2025-02-08 14:00:06 [RateCDR] => 1 ) [2025-02-08 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 11:00:06' and `end` < '2025-02-08 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 14:00:22] Production.INFO: count ==1647 [2025-02-08 14:00:23] Production.ERROR: pbx CDR StartTime 2025-02-08 11:00:06 - End Time 2025-02-08 14:00:06 [2025-02-08 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430186', 'tblTempUsageDetail_20' ) start [2025-02-08 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430186', 'tblTempUsageDetail_20' ) end [2025-02-08 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430186', 'tblTempVendorCDR_20' ) start [2025-02-08 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430186', 'tblTempVendorCDR_20' ) end [2025-02-08 14:00:23] Production.INFO: ProcessCDR(1,14430186,1,1,2) [2025-02-08 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430186', 'tblTempUsageDetail_20' ) start [2025-02-08 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430186', 'tblTempUsageDetail_20' ) end [2025-02-08 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:00:28] Production.INFO: ==6017== Releasing lock... [2025-02-08 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:00:28] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:01:06 [end_date_ymd] => 2025-02-08 14:01:06 [RateCDR] => 1 ) [2025-02-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` >= '2025-02-08 11:01:06' and `end` < '2025-02-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 ,'') [2025-02-08 14:01:19] Production.INFO: count ==1699 [2025-02-08 14:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:01:06 - End Time 2025-02-08 14:01:06 [2025-02-08 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430191', 'tblTempUsageDetail_20' ) start [2025-02-08 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430191', 'tblTempUsageDetail_20' ) end [2025-02-08 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430191', 'tblTempVendorCDR_20' ) start [2025-02-08 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430191', 'tblTempVendorCDR_20' ) end [2025-02-08 14:01:19] Production.INFO: ProcessCDR(1,14430191,1,1,2) [2025-02-08 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430191', 'tblTempUsageDetail_20' ) start [2025-02-08 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430191', 'tblTempUsageDetail_20' ) end [2025-02-08 14:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:01:25] Production.INFO: ==6127== Releasing lock... [2025-02-08 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:01:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:02:05 [end_date_ymd] => 2025-02-08 14:02:05 [RateCDR] => 1 ) [2025-02-08 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 11:02:05' and `end` < '2025-02-08 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 14:02:22] Production.INFO: count ==1721 [2025-02-08 14:02:22] Production.ERROR: pbx CDR StartTime 2025-02-08 11:02:05 - End Time 2025-02-08 14:02:05 [2025-02-08 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430196', 'tblTempUsageDetail_20' ) start [2025-02-08 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430196', 'tblTempUsageDetail_20' ) end [2025-02-08 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430196', 'tblTempVendorCDR_20' ) start [2025-02-08 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430196', 'tblTempVendorCDR_20' ) end [2025-02-08 14:02:22] Production.INFO: ProcessCDR(1,14430196,1,1,2) [2025-02-08 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430196', 'tblTempUsageDetail_20' ) start [2025-02-08 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430196', 'tblTempUsageDetail_20' ) end [2025-02-08 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:02:28] Production.INFO: ==6206== Releasing lock... [2025-02-08 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:02:28] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:03:06 [end_date_ymd] => 2025-02-08 14:03:06 [RateCDR] => 1 ) [2025-02-08 14:03: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-02-08 11:03:06' and `end` < '2025-02-08 14:03: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-02-08 14:03:20] Production.INFO: count ==1715 [2025-02-08 14:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:03:06 - End Time 2025-02-08 14:03:06 [2025-02-08 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430201', 'tblTempUsageDetail_20' ) start [2025-02-08 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430201', 'tblTempUsageDetail_20' ) end [2025-02-08 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430201', 'tblTempVendorCDR_20' ) start [2025-02-08 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430201', 'tblTempVendorCDR_20' ) end [2025-02-08 14:03:20] Production.INFO: ProcessCDR(1,14430201,1,1,2) [2025-02-08 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430201', 'tblTempUsageDetail_20' ) start [2025-02-08 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430201', 'tblTempUsageDetail_20' ) end [2025-02-08 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:03:24] Production.INFO: ==6332== Releasing lock... [2025-02-08 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:03:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:04:05 [end_date_ymd] => 2025-02-08 14:04:05 [RateCDR] => 1 ) [2025-02-08 14:04: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` >= '2025-02-08 11:04:05' and `end` < '2025-02-08 14:04: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 ,'') [2025-02-08 14:04:18] Production.INFO: count ==1712 [2025-02-08 14:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:04:05 - End Time 2025-02-08 14:04:05 [2025-02-08 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430206', 'tblTempUsageDetail_20' ) start [2025-02-08 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430206', 'tblTempUsageDetail_20' ) end [2025-02-08 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430206', 'tblTempVendorCDR_20' ) start [2025-02-08 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430206', 'tblTempVendorCDR_20' ) end [2025-02-08 14:04:19] Production.INFO: ProcessCDR(1,14430206,1,1,2) [2025-02-08 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430206', 'tblTempUsageDetail_20' ) start [2025-02-08 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430206', 'tblTempUsageDetail_20' ) end [2025-02-08 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:04:23] Production.INFO: ==6415== Releasing lock... [2025-02-08 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:04:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:05:06 [end_date_ymd] => 2025-02-08 14:05:06 [RateCDR] => 1 ) [2025-02-08 14:05: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-02-08 11:05:06' and `end` < '2025-02-08 14:05: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-02-08 14:05:19] Production.INFO: count ==1719 [2025-02-08 14:05:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:05:06 - End Time 2025-02-08 14:05:06 [2025-02-08 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430211', 'tblTempUsageDetail_20' ) start [2025-02-08 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430211', 'tblTempUsageDetail_20' ) end [2025-02-08 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430211', 'tblTempVendorCDR_20' ) start [2025-02-08 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430211', 'tblTempVendorCDR_20' ) end [2025-02-08 14:05:20] Production.INFO: ProcessCDR(1,14430211,1,1,2) [2025-02-08 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430211', 'tblTempUsageDetail_20' ) start [2025-02-08 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430211', 'tblTempUsageDetail_20' ) end [2025-02-08 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:05:23] Production.INFO: ==6500== Releasing lock... [2025-02-08 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:05:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:06:05 [end_date_ymd] => 2025-02-08 14:06:05 [RateCDR] => 1 ) [2025-02-08 14:06: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` >= '2025-02-08 11:06:05' and `end` < '2025-02-08 14:06: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 ,'') [2025-02-08 14:06:18] Production.INFO: count ==1720 [2025-02-08 14:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:06:05 - End Time 2025-02-08 14:06:05 [2025-02-08 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430216', 'tblTempUsageDetail_20' ) start [2025-02-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430216', 'tblTempUsageDetail_20' ) end [2025-02-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430216', 'tblTempVendorCDR_20' ) start [2025-02-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430216', 'tblTempVendorCDR_20' ) end [2025-02-08 14:06:19] Production.INFO: ProcessCDR(1,14430216,1,1,2) [2025-02-08 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430216', 'tblTempUsageDetail_20' ) start [2025-02-08 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430216', 'tblTempUsageDetail_20' ) end [2025-02-08 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:06:24] Production.INFO: ==6583== Releasing lock... [2025-02-08 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:06:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:07:06 [end_date_ymd] => 2025-02-08 14:07:06 [RateCDR] => 1 ) [2025-02-08 14:07: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-02-08 11:07:06' and `end` < '2025-02-08 14:07: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-02-08 14:07:20] Production.INFO: count ==1724 [2025-02-08 14:07:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:07:06 - End Time 2025-02-08 14:07:06 [2025-02-08 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430221', 'tblTempUsageDetail_20' ) start [2025-02-08 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430221', 'tblTempUsageDetail_20' ) end [2025-02-08 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430221', 'tblTempVendorCDR_20' ) start [2025-02-08 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430221', 'tblTempVendorCDR_20' ) end [2025-02-08 14:07:20] Production.INFO: ProcessCDR(1,14430221,1,1,2) [2025-02-08 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430221', 'tblTempUsageDetail_20' ) start [2025-02-08 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430221', 'tblTempUsageDetail_20' ) end [2025-02-08 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:07:25] Production.INFO: ==6670== Releasing lock... [2025-02-08 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:07:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:08:05 [end_date_ymd] => 2025-02-08 14:08:05 [RateCDR] => 1 ) [2025-02-08 14:08: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` >= '2025-02-08 11:08:05' and `end` < '2025-02-08 14:08: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 ,'') [2025-02-08 14:08:18] Production.INFO: count ==1713 [2025-02-08 14:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:08:05 - End Time 2025-02-08 14:08:05 [2025-02-08 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430226', 'tblTempUsageDetail_20' ) start [2025-02-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430226', 'tblTempUsageDetail_20' ) end [2025-02-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430226', 'tblTempVendorCDR_20' ) start [2025-02-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430226', 'tblTempVendorCDR_20' ) end [2025-02-08 14:08:19] Production.INFO: ProcessCDR(1,14430226,1,1,2) [2025-02-08 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430226', 'tblTempUsageDetail_20' ) start [2025-02-08 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430226', 'tblTempUsageDetail_20' ) end [2025-02-08 14:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:08:24] Production.INFO: ==6755== Releasing lock... [2025-02-08 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:08:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:09:05 [end_date_ymd] => 2025-02-08 14:09:05 [RateCDR] => 1 ) [2025-02-08 14:09: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` >= '2025-02-08 11:09:05' and `end` < '2025-02-08 14:09: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 ,'') [2025-02-08 14:09:19] Production.INFO: count ==1718 [2025-02-08 14:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:09:05 - End Time 2025-02-08 14:09:05 [2025-02-08 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430231', 'tblTempUsageDetail_20' ) start [2025-02-08 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430231', 'tblTempUsageDetail_20' ) end [2025-02-08 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430231', 'tblTempVendorCDR_20' ) start [2025-02-08 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430231', 'tblTempVendorCDR_20' ) end [2025-02-08 14:09:19] Production.INFO: ProcessCDR(1,14430231,1,1,2) [2025-02-08 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430231', 'tblTempUsageDetail_20' ) start [2025-02-08 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430231', 'tblTempUsageDetail_20' ) end [2025-02-08 14:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:09:25] Production.INFO: ==6845== Releasing lock... [2025-02-08 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:09:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:10:06 [end_date_ymd] => 2025-02-08 14:10:06 [RateCDR] => 1 ) [2025-02-08 14:10: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-02-08 11:10:06' and `end` < '2025-02-08 14:10: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-02-08 14:10:19] Production.INFO: count ==1721 [2025-02-08 14:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:10:06 - End Time 2025-02-08 14:10:06 [2025-02-08 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430237', 'tblTempUsageDetail_20' ) start [2025-02-08 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430237', 'tblTempUsageDetail_20' ) end [2025-02-08 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430237', 'tblTempVendorCDR_20' ) start [2025-02-08 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430237', 'tblTempVendorCDR_20' ) end [2025-02-08 14:10:20] Production.INFO: ProcessCDR(1,14430237,1,1,2) [2025-02-08 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430237', 'tblTempUsageDetail_20' ) start [2025-02-08 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430237', 'tblTempUsageDetail_20' ) end [2025-02-08 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:10:25] Production.INFO: ==6931== Releasing lock... [2025-02-08 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:10:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:11:05 [end_date_ymd] => 2025-02-08 14:11:05 [RateCDR] => 1 ) [2025-02-08 14:11: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` >= '2025-02-08 11:11:05' and `end` < '2025-02-08 14:11: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 ,'') [2025-02-08 14:11:18] Production.INFO: count ==1725 [2025-02-08 14:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:11:05 - End Time 2025-02-08 14:11:05 [2025-02-08 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430242', 'tblTempUsageDetail_20' ) start [2025-02-08 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430242', 'tblTempUsageDetail_20' ) end [2025-02-08 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430242', 'tblTempVendorCDR_20' ) start [2025-02-08 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430242', 'tblTempVendorCDR_20' ) end [2025-02-08 14:11:19] Production.INFO: ProcessCDR(1,14430242,1,1,2) [2025-02-08 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430242', 'tblTempUsageDetail_20' ) start [2025-02-08 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430242', 'tblTempUsageDetail_20' ) end [2025-02-08 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:11:25] Production.INFO: ==7018== Releasing lock... [2025-02-08 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:11:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:12:05 [end_date_ymd] => 2025-02-08 14:12:05 [RateCDR] => 1 ) [2025-02-08 14:12: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` >= '2025-02-08 11:12:05' and `end` < '2025-02-08 14:12: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 ,'') [2025-02-08 14:12:18] Production.INFO: count ==1726 [2025-02-08 14:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:12:05 - End Time 2025-02-08 14:12:05 [2025-02-08 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430247', 'tblTempUsageDetail_20' ) start [2025-02-08 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430247', 'tblTempUsageDetail_20' ) end [2025-02-08 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430247', 'tblTempVendorCDR_20' ) start [2025-02-08 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430247', 'tblTempVendorCDR_20' ) end [2025-02-08 14:12:19] Production.INFO: ProcessCDR(1,14430247,1,1,2) [2025-02-08 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430247', 'tblTempUsageDetail_20' ) start [2025-02-08 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430247', 'tblTempUsageDetail_20' ) end [2025-02-08 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:12:24] Production.INFO: ==7108== Releasing lock... [2025-02-08 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:12:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:13:05 [end_date_ymd] => 2025-02-08 14:13:05 [RateCDR] => 1 ) [2025-02-08 14:13: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` >= '2025-02-08 11:13:05' and `end` < '2025-02-08 14:13: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 ,'') [2025-02-08 14:13:19] Production.INFO: count ==1725 [2025-02-08 14:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:13:05 - End Time 2025-02-08 14:13:05 [2025-02-08 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430252', 'tblTempUsageDetail_20' ) start [2025-02-08 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430252', 'tblTempUsageDetail_20' ) end [2025-02-08 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430252', 'tblTempVendorCDR_20' ) start [2025-02-08 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430252', 'tblTempVendorCDR_20' ) end [2025-02-08 14:13:19] Production.INFO: ProcessCDR(1,14430252,1,1,2) [2025-02-08 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430252', 'tblTempUsageDetail_20' ) start [2025-02-08 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430252', 'tblTempUsageDetail_20' ) end [2025-02-08 14:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:13:24] Production.INFO: ==7195== Releasing lock... [2025-02-08 14:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:13:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:14:05 [end_date_ymd] => 2025-02-08 14:14:05 [RateCDR] => 1 ) [2025-02-08 14:14: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` >= '2025-02-08 11:14:05' and `end` < '2025-02-08 14:14: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 ,'') [2025-02-08 14:14:18] Production.INFO: count ==1731 [2025-02-08 14:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:14:05 - End Time 2025-02-08 14:14:05 [2025-02-08 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430257', 'tblTempUsageDetail_20' ) start [2025-02-08 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430257', 'tblTempUsageDetail_20' ) end [2025-02-08 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430257', 'tblTempVendorCDR_20' ) start [2025-02-08 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430257', 'tblTempVendorCDR_20' ) end [2025-02-08 14:14:19] Production.INFO: ProcessCDR(1,14430257,1,1,2) [2025-02-08 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430257', 'tblTempUsageDetail_20' ) start [2025-02-08 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430257', 'tblTempUsageDetail_20' ) end [2025-02-08 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:14:24] Production.INFO: ==7290== Releasing lock... [2025-02-08 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:14:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:15:05 [end_date_ymd] => 2025-02-08 14:15:05 [RateCDR] => 1 ) [2025-02-08 14:15: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` >= '2025-02-08 11:15:05' and `end` < '2025-02-08 14:15: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 ,'') [2025-02-08 14:15:18] Production.INFO: count ==1733 [2025-02-08 14:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:15:05 - End Time 2025-02-08 14:15:05 [2025-02-08 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430262', 'tblTempUsageDetail_20' ) start [2025-02-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430262', 'tblTempUsageDetail_20' ) end [2025-02-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430262', 'tblTempVendorCDR_20' ) start [2025-02-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430262', 'tblTempVendorCDR_20' ) end [2025-02-08 14:15:19] Production.INFO: ProcessCDR(1,14430262,1,1,2) [2025-02-08 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430262', 'tblTempUsageDetail_20' ) start [2025-02-08 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430262', 'tblTempUsageDetail_20' ) end [2025-02-08 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:15:23] Production.INFO: ==7386== Releasing lock... [2025-02-08 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:15:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:16:06 [end_date_ymd] => 2025-02-08 14:16:06 [RateCDR] => 1 ) [2025-02-08 14:16: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-02-08 11:16:06' and `end` < '2025-02-08 14:16: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-02-08 14:16:20] Production.INFO: count ==1742 [2025-02-08 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-08 11:16:06 - End Time 2025-02-08 14:16:06 [2025-02-08 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430267', 'tblTempUsageDetail_20' ) start [2025-02-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430267', 'tblTempUsageDetail_20' ) end [2025-02-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430267', 'tblTempVendorCDR_20' ) start [2025-02-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430267', 'tblTempVendorCDR_20' ) end [2025-02-08 14:16:21] Production.INFO: ProcessCDR(1,14430267,1,1,2) [2025-02-08 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430267', 'tblTempUsageDetail_20' ) start [2025-02-08 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430267', 'tblTempUsageDetail_20' ) end [2025-02-08 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:16:25] Production.INFO: ==7485== Releasing lock... [2025-02-08 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:16:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:17:05 [end_date_ymd] => 2025-02-08 14:17:05 [RateCDR] => 1 ) [2025-02-08 14:17: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` >= '2025-02-08 11:17:05' and `end` < '2025-02-08 14:17: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 ,'') [2025-02-08 14:17:18] Production.INFO: count ==1743 [2025-02-08 14:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:17:05 - End Time 2025-02-08 14:17:05 [2025-02-08 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430272', 'tblTempUsageDetail_20' ) start [2025-02-08 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430272', 'tblTempUsageDetail_20' ) end [2025-02-08 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430272', 'tblTempVendorCDR_20' ) start [2025-02-08 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430272', 'tblTempVendorCDR_20' ) end [2025-02-08 14:17:19] Production.INFO: ProcessCDR(1,14430272,1,1,2) [2025-02-08 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430272', 'tblTempUsageDetail_20' ) start [2025-02-08 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430272', 'tblTempUsageDetail_20' ) end [2025-02-08 14:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:17:25] Production.INFO: ==7619== Releasing lock... [2025-02-08 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:17:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:18:05 [end_date_ymd] => 2025-02-08 14:18:05 [RateCDR] => 1 ) [2025-02-08 14:18: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` >= '2025-02-08 11:18:05' and `end` < '2025-02-08 14:18: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 ,'') [2025-02-08 14:18:19] Production.INFO: count ==1762 [2025-02-08 14:18:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:18:05 - End Time 2025-02-08 14:18:05 [2025-02-08 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430277', 'tblTempUsageDetail_20' ) start [2025-02-08 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430277', 'tblTempUsageDetail_20' ) end [2025-02-08 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430277', 'tblTempVendorCDR_20' ) start [2025-02-08 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430277', 'tblTempVendorCDR_20' ) end [2025-02-08 14:18:20] Production.INFO: ProcessCDR(1,14430277,1,1,2) [2025-02-08 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430277', 'tblTempUsageDetail_20' ) start [2025-02-08 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430277', 'tblTempUsageDetail_20' ) end [2025-02-08 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:18:25] Production.INFO: ==7787== Releasing lock... [2025-02-08 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:18:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:19:05 [end_date_ymd] => 2025-02-08 14:19:05 [RateCDR] => 1 ) [2025-02-08 14:19: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` >= '2025-02-08 11:19:05' and `end` < '2025-02-08 14:19: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 ,'') [2025-02-08 14:19:19] Production.INFO: count ==1768 [2025-02-08 14:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:19:05 - End Time 2025-02-08 14:19:05 [2025-02-08 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430282', 'tblTempUsageDetail_20' ) start [2025-02-08 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430282', 'tblTempUsageDetail_20' ) end [2025-02-08 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430282', 'tblTempVendorCDR_20' ) start [2025-02-08 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430282', 'tblTempVendorCDR_20' ) end [2025-02-08 14:19:19] Production.INFO: ProcessCDR(1,14430282,1,1,2) [2025-02-08 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430282', 'tblTempUsageDetail_20' ) start [2025-02-08 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430282', 'tblTempUsageDetail_20' ) end [2025-02-08 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:19:25] Production.INFO: ==7922== Releasing lock... [2025-02-08 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:19:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:20:06 [end_date_ymd] => 2025-02-08 14:20:06 [RateCDR] => 1 ) [2025-02-08 14:20: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-02-08 11:20:06' and `end` < '2025-02-08 14:20: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-02-08 14:20:19] Production.INFO: count ==1788 [2025-02-08 14:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:20:06 - End Time 2025-02-08 14:20:06 [2025-02-08 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430288', 'tblTempUsageDetail_20' ) start [2025-02-08 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430288', 'tblTempUsageDetail_20' ) end [2025-02-08 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430288', 'tblTempVendorCDR_20' ) start [2025-02-08 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430288', 'tblTempVendorCDR_20' ) end [2025-02-08 14:20:20] Production.INFO: ProcessCDR(1,14430288,1,1,2) [2025-02-08 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430288', 'tblTempUsageDetail_20' ) start [2025-02-08 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430288', 'tblTempUsageDetail_20' ) end [2025-02-08 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:20:26] Production.INFO: ==8063== Releasing lock... [2025-02-08 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:20:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:21:05 [end_date_ymd] => 2025-02-08 14:21:05 [RateCDR] => 1 ) [2025-02-08 14:21: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` >= '2025-02-08 11:21:05' and `end` < '2025-02-08 14:21: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 ,'') [2025-02-08 14:21:18] Production.INFO: count ==1784 [2025-02-08 14:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:21:05 - End Time 2025-02-08 14:21:05 [2025-02-08 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430293', 'tblTempUsageDetail_20' ) start [2025-02-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430293', 'tblTempUsageDetail_20' ) end [2025-02-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430293', 'tblTempVendorCDR_20' ) start [2025-02-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430293', 'tblTempVendorCDR_20' ) end [2025-02-08 14:21:19] Production.INFO: ProcessCDR(1,14430293,1,1,2) [2025-02-08 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430293', 'tblTempUsageDetail_20' ) start [2025-02-08 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430293', 'tblTempUsageDetail_20' ) end [2025-02-08 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:21:24] Production.INFO: ==8195== Releasing lock... [2025-02-08 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:22:05 [end_date_ymd] => 2025-02-08 14:22:05 [RateCDR] => 1 ) [2025-02-08 14:22: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` >= '2025-02-08 11:22:05' and `end` < '2025-02-08 14:22: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 ,'') [2025-02-08 14:22:18] Production.INFO: count ==1787 [2025-02-08 14:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:22:05 - End Time 2025-02-08 14:22:05 [2025-02-08 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430298', 'tblTempUsageDetail_20' ) start [2025-02-08 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430298', 'tblTempUsageDetail_20' ) end [2025-02-08 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430298', 'tblTempVendorCDR_20' ) start [2025-02-08 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430298', 'tblTempVendorCDR_20' ) end [2025-02-08 14:22:19] Production.INFO: ProcessCDR(1,14430298,1,1,2) [2025-02-08 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430298', 'tblTempUsageDetail_20' ) start [2025-02-08 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430298', 'tblTempUsageDetail_20' ) end [2025-02-08 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:22:24] Production.INFO: ==8329== Releasing lock... [2025-02-08 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:23:05 [end_date_ymd] => 2025-02-08 14:23:05 [RateCDR] => 1 ) [2025-02-08 14:23: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` >= '2025-02-08 11:23:05' and `end` < '2025-02-08 14:23: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 ,'') [2025-02-08 14:23:18] Production.INFO: count ==1794 [2025-02-08 14:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:23:05 - End Time 2025-02-08 14:23:05 [2025-02-08 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430303', 'tblTempUsageDetail_20' ) start [2025-02-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430303', 'tblTempUsageDetail_20' ) end [2025-02-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430303', 'tblTempVendorCDR_20' ) start [2025-02-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430303', 'tblTempVendorCDR_20' ) end [2025-02-08 14:23:19] Production.INFO: ProcessCDR(1,14430303,1,1,2) [2025-02-08 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430303', 'tblTempUsageDetail_20' ) start [2025-02-08 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430303', 'tblTempUsageDetail_20' ) end [2025-02-08 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:23:24] Production.INFO: ==8461== Releasing lock... [2025-02-08 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:23:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:24:06 [end_date_ymd] => 2025-02-08 14:24:06 [RateCDR] => 1 ) [2025-02-08 14:24: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-02-08 11:24:06' and `end` < '2025-02-08 14:24: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-02-08 14:24:19] Production.INFO: count ==1804 [2025-02-08 14:24:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:24:06 - End Time 2025-02-08 14:24:06 [2025-02-08 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430308', 'tblTempUsageDetail_20' ) start [2025-02-08 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430308', 'tblTempUsageDetail_20' ) end [2025-02-08 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430308', 'tblTempVendorCDR_20' ) start [2025-02-08 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430308', 'tblTempVendorCDR_20' ) end [2025-02-08 14:24:20] Production.INFO: ProcessCDR(1,14430308,1,1,2) [2025-02-08 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430308', 'tblTempUsageDetail_20' ) start [2025-02-08 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430308', 'tblTempUsageDetail_20' ) end [2025-02-08 14:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:24:24] Production.INFO: ==8597== Releasing lock... [2025-02-08 14:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:24:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:25:05 [end_date_ymd] => 2025-02-08 14:25:05 [RateCDR] => 1 ) [2025-02-08 14:25: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` >= '2025-02-08 11:25:05' and `end` < '2025-02-08 14:25: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 ,'') [2025-02-08 14:25:18] Production.INFO: count ==1806 [2025-02-08 14:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:25:05 - End Time 2025-02-08 14:25:05 [2025-02-08 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430313', 'tblTempUsageDetail_20' ) start [2025-02-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430313', 'tblTempUsageDetail_20' ) end [2025-02-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430313', 'tblTempVendorCDR_20' ) start [2025-02-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430313', 'tblTempVendorCDR_20' ) end [2025-02-08 14:25:19] Production.INFO: ProcessCDR(1,14430313,1,1,2) [2025-02-08 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430313', 'tblTempUsageDetail_20' ) start [2025-02-08 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430313', 'tblTempUsageDetail_20' ) end [2025-02-08 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:25:23] Production.INFO: ==8728== Releasing lock... [2025-02-08 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:25:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:26:05 [end_date_ymd] => 2025-02-08 14:26:05 [RateCDR] => 1 ) [2025-02-08 14:26: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` >= '2025-02-08 11:26:05' and `end` < '2025-02-08 14:26: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 ,'') [2025-02-08 14:26:19] Production.INFO: count ==1807 [2025-02-08 14:26:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:26:05 - End Time 2025-02-08 14:26:05 [2025-02-08 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430318', 'tblTempUsageDetail_20' ) start [2025-02-08 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430318', 'tblTempUsageDetail_20' ) end [2025-02-08 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430318', 'tblTempVendorCDR_20' ) start [2025-02-08 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430318', 'tblTempVendorCDR_20' ) end [2025-02-08 14:26:20] Production.INFO: ProcessCDR(1,14430318,1,1,2) [2025-02-08 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430318', 'tblTempUsageDetail_20' ) start [2025-02-08 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430318', 'tblTempUsageDetail_20' ) end [2025-02-08 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:26:25] Production.INFO: ==8859== Releasing lock... [2025-02-08 14:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:26:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:27:05 [end_date_ymd] => 2025-02-08 14:27:05 [RateCDR] => 1 ) [2025-02-08 14:27: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` >= '2025-02-08 11:27:05' and `end` < '2025-02-08 14:27: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 ,'') [2025-02-08 14:27:18] Production.INFO: count ==1807 [2025-02-08 14:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:27:05 - End Time 2025-02-08 14:27:05 [2025-02-08 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430323', 'tblTempUsageDetail_20' ) start [2025-02-08 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430323', 'tblTempUsageDetail_20' ) end [2025-02-08 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430323', 'tblTempVendorCDR_20' ) start [2025-02-08 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430323', 'tblTempVendorCDR_20' ) end [2025-02-08 14:27:19] Production.INFO: ProcessCDR(1,14430323,1,1,2) [2025-02-08 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430323', 'tblTempUsageDetail_20' ) start [2025-02-08 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430323', 'tblTempUsageDetail_20' ) end [2025-02-08 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:27:23] Production.INFO: ==8994== Releasing lock... [2025-02-08 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:27:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:28:05 [end_date_ymd] => 2025-02-08 14:28:05 [RateCDR] => 1 ) [2025-02-08 14:28: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` >= '2025-02-08 11:28:05' and `end` < '2025-02-08 14:28: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 ,'') [2025-02-08 14:28:20] Production.INFO: count ==1816 [2025-02-08 14:28:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:28:05 - End Time 2025-02-08 14:28:05 [2025-02-08 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430328', 'tblTempUsageDetail_20' ) start [2025-02-08 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430328', 'tblTempUsageDetail_20' ) end [2025-02-08 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430328', 'tblTempVendorCDR_20' ) start [2025-02-08 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430328', 'tblTempVendorCDR_20' ) end [2025-02-08 14:28:20] Production.INFO: ProcessCDR(1,14430328,1,1,2) [2025-02-08 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430328', 'tblTempUsageDetail_20' ) start [2025-02-08 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430328', 'tblTempUsageDetail_20' ) end [2025-02-08 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:28:26] Production.INFO: ==9131== Releasing lock... [2025-02-08 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:28:26] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:29:06 [end_date_ymd] => 2025-02-08 14:29:06 [RateCDR] => 1 ) [2025-02-08 14:29: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-02-08 11:29:06' and `end` < '2025-02-08 14:29: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-02-08 14:29:19] Production.INFO: count ==1816 [2025-02-08 14:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:29:06 - End Time 2025-02-08 14:29:06 [2025-02-08 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430333', 'tblTempUsageDetail_20' ) start [2025-02-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430333', 'tblTempUsageDetail_20' ) end [2025-02-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430333', 'tblTempVendorCDR_20' ) start [2025-02-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430333', 'tblTempVendorCDR_20' ) end [2025-02-08 14:29:20] Production.INFO: ProcessCDR(1,14430333,1,1,2) [2025-02-08 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430333', 'tblTempUsageDetail_20' ) start [2025-02-08 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430333', 'tblTempUsageDetail_20' ) end [2025-02-08 14:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:29:23] Production.INFO: ==9257== Releasing lock... [2025-02-08 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:29:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:30:05 [end_date_ymd] => 2025-02-08 14:30:05 [RateCDR] => 1 ) [2025-02-08 14:30: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` >= '2025-02-08 11:30:05' and `end` < '2025-02-08 14:30: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 ,'') [2025-02-08 14:30:19] Production.INFO: count ==1812 [2025-02-08 14:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:30:05 - End Time 2025-02-08 14:30:05 [2025-02-08 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430339', 'tblTempUsageDetail_20' ) start [2025-02-08 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430339', 'tblTempUsageDetail_20' ) end [2025-02-08 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430339', 'tblTempVendorCDR_20' ) start [2025-02-08 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430339', 'tblTempVendorCDR_20' ) end [2025-02-08 14:30:20] Production.INFO: ProcessCDR(1,14430339,1,1,2) [2025-02-08 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430339', 'tblTempUsageDetail_20' ) start [2025-02-08 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430339', 'tblTempUsageDetail_20' ) end [2025-02-08 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:30:24] Production.INFO: ==9398== Releasing lock... [2025-02-08 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:30:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:31:06 [end_date_ymd] => 2025-02-08 14:31:06 [RateCDR] => 1 ) [2025-02-08 14:31: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-02-08 11:31:06' and `end` < '2025-02-08 14:31: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-02-08 14:31:19] Production.INFO: count ==1813 [2025-02-08 14:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:31:06 - End Time 2025-02-08 14:31:06 [2025-02-08 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430344', 'tblTempUsageDetail_20' ) start [2025-02-08 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430344', 'tblTempUsageDetail_20' ) end [2025-02-08 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430344', 'tblTempVendorCDR_20' ) start [2025-02-08 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430344', 'tblTempVendorCDR_20' ) end [2025-02-08 14:31:19] Production.INFO: ProcessCDR(1,14430344,1,1,2) [2025-02-08 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430344', 'tblTempUsageDetail_20' ) start [2025-02-08 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430344', 'tblTempUsageDetail_20' ) end [2025-02-08 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:31:23] Production.INFO: ==9535== Releasing lock... [2025-02-08 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:31:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:32:06 [end_date_ymd] => 2025-02-08 14:32:06 [RateCDR] => 1 ) [2025-02-08 14:32: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-02-08 11:32:06' and `end` < '2025-02-08 14:32: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-02-08 14:32:19] Production.INFO: count ==1814 [2025-02-08 14:32:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:32:06 - End Time 2025-02-08 14:32:06 [2025-02-08 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430349', 'tblTempUsageDetail_20' ) start [2025-02-08 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430349', 'tblTempUsageDetail_20' ) end [2025-02-08 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430349', 'tblTempVendorCDR_20' ) start [2025-02-08 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430349', 'tblTempVendorCDR_20' ) end [2025-02-08 14:32:20] Production.INFO: ProcessCDR(1,14430349,1,1,2) [2025-02-08 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430349', 'tblTempUsageDetail_20' ) start [2025-02-08 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430349', 'tblTempUsageDetail_20' ) end [2025-02-08 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:32:24] Production.INFO: ==9671== Releasing lock... [2025-02-08 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:32:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:33:05 [end_date_ymd] => 2025-02-08 14:33:05 [RateCDR] => 1 ) [2025-02-08 14:33: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` >= '2025-02-08 11:33:05' and `end` < '2025-02-08 14:33: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 ,'') [2025-02-08 14:33:18] Production.INFO: count ==1805 [2025-02-08 14:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:33:05 - End Time 2025-02-08 14:33:05 [2025-02-08 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430354', 'tblTempUsageDetail_20' ) start [2025-02-08 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430354', 'tblTempUsageDetail_20' ) end [2025-02-08 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430354', 'tblTempVendorCDR_20' ) start [2025-02-08 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430354', 'tblTempVendorCDR_20' ) end [2025-02-08 14:33:19] Production.INFO: ProcessCDR(1,14430354,1,1,2) [2025-02-08 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430354', 'tblTempUsageDetail_20' ) start [2025-02-08 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430354', 'tblTempUsageDetail_20' ) end [2025-02-08 14:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:33:24] Production.INFO: ==9801== Releasing lock... [2025-02-08 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:33:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:34:05 [end_date_ymd] => 2025-02-08 14:34:05 [RateCDR] => 1 ) [2025-02-08 14:34: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` >= '2025-02-08 11:34:05' and `end` < '2025-02-08 14:34: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 ,'') [2025-02-08 14:34:19] Production.INFO: count ==1815 [2025-02-08 14:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:34:05 - End Time 2025-02-08 14:34:05 [2025-02-08 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430359', 'tblTempUsageDetail_20' ) start [2025-02-08 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430359', 'tblTempUsageDetail_20' ) end [2025-02-08 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430359', 'tblTempVendorCDR_20' ) start [2025-02-08 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430359', 'tblTempVendorCDR_20' ) end [2025-02-08 14:34:20] Production.INFO: ProcessCDR(1,14430359,1,1,2) [2025-02-08 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430359', 'tblTempUsageDetail_20' ) start [2025-02-08 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430359', 'tblTempUsageDetail_20' ) end [2025-02-08 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:34:23] Production.INFO: ==9978== Releasing lock... [2025-02-08 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:34:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:35:05 [end_date_ymd] => 2025-02-08 14:35:05 [RateCDR] => 1 ) [2025-02-08 14:35: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` >= '2025-02-08 11:35:05' and `end` < '2025-02-08 14:35: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 ,'') [2025-02-08 14:35:18] Production.INFO: count ==1812 [2025-02-08 14:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:35:05 - End Time 2025-02-08 14:35:05 [2025-02-08 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430364', 'tblTempUsageDetail_20' ) start [2025-02-08 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430364', 'tblTempUsageDetail_20' ) end [2025-02-08 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430364', 'tblTempVendorCDR_20' ) start [2025-02-08 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430364', 'tblTempVendorCDR_20' ) end [2025-02-08 14:35:19] Production.INFO: ProcessCDR(1,14430364,1,1,2) [2025-02-08 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430364', 'tblTempUsageDetail_20' ) start [2025-02-08 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430364', 'tblTempUsageDetail_20' ) end [2025-02-08 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:35:23] Production.INFO: ==10122== Releasing lock... [2025-02-08 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:35:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:36:06 [end_date_ymd] => 2025-02-08 14:36:06 [RateCDR] => 1 ) [2025-02-08 14:36: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-02-08 11:36:06' and `end` < '2025-02-08 14:36: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-02-08 14:36:19] Production.INFO: count ==1811 [2025-02-08 14:36:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:36:06 - End Time 2025-02-08 14:36:06 [2025-02-08 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430369', 'tblTempUsageDetail_20' ) start [2025-02-08 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430369', 'tblTempUsageDetail_20' ) end [2025-02-08 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430369', 'tblTempVendorCDR_20' ) start [2025-02-08 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430369', 'tblTempVendorCDR_20' ) end [2025-02-08 14:36:20] Production.INFO: ProcessCDR(1,14430369,1,1,2) [2025-02-08 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430369', 'tblTempUsageDetail_20' ) start [2025-02-08 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430369', 'tblTempUsageDetail_20' ) end [2025-02-08 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:36:24] Production.INFO: ==10259== Releasing lock... [2025-02-08 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:36:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:37:05 [end_date_ymd] => 2025-02-08 14:37:05 [RateCDR] => 1 ) [2025-02-08 14:37: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` >= '2025-02-08 11:37:05' and `end` < '2025-02-08 14:37: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 ,'') [2025-02-08 14:37:18] Production.INFO: count ==1817 [2025-02-08 14:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 11:37:05 - End Time 2025-02-08 14:37:05 [2025-02-08 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430374', 'tblTempUsageDetail_20' ) start [2025-02-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430374', 'tblTempUsageDetail_20' ) end [2025-02-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430374', 'tblTempVendorCDR_20' ) start [2025-02-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430374', 'tblTempVendorCDR_20' ) end [2025-02-08 14:37:18] Production.INFO: ProcessCDR(1,14430374,1,1,2) [2025-02-08 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430374', 'tblTempUsageDetail_20' ) start [2025-02-08 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430374', 'tblTempUsageDetail_20' ) end [2025-02-08 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:37:22] Production.INFO: ==10396== Releasing lock... [2025-02-08 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:37:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:38:05 [end_date_ymd] => 2025-02-08 14:38:05 [RateCDR] => 1 ) [2025-02-08 14:38: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` >= '2025-02-08 11:38:05' and `end` < '2025-02-08 14:38: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 ,'') [2025-02-08 14:38:19] Production.INFO: count ==1808 [2025-02-08 14:38:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:38:05 - End Time 2025-02-08 14:38:05 [2025-02-08 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430379', 'tblTempUsageDetail_20' ) start [2025-02-08 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430379', 'tblTempUsageDetail_20' ) end [2025-02-08 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430379', 'tblTempVendorCDR_20' ) start [2025-02-08 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430379', 'tblTempVendorCDR_20' ) end [2025-02-08 14:38:20] Production.INFO: ProcessCDR(1,14430379,1,1,2) [2025-02-08 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430379', 'tblTempUsageDetail_20' ) start [2025-02-08 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430379', 'tblTempUsageDetail_20' ) end [2025-02-08 14:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:38:25] Production.INFO: ==10527== Releasing lock... [2025-02-08 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:38:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:39:05 [end_date_ymd] => 2025-02-08 14:39:05 [RateCDR] => 1 ) [2025-02-08 14:39: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` >= '2025-02-08 11:39:05' and `end` < '2025-02-08 14:39: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 ,'') [2025-02-08 14:39:19] Production.INFO: count ==1816 [2025-02-08 14:39:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:39:05 - End Time 2025-02-08 14:39:05 [2025-02-08 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430384', 'tblTempUsageDetail_20' ) start [2025-02-08 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430384', 'tblTempUsageDetail_20' ) end [2025-02-08 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430384', 'tblTempVendorCDR_20' ) start [2025-02-08 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430384', 'tblTempVendorCDR_20' ) end [2025-02-08 14:39:20] Production.INFO: ProcessCDR(1,14430384,1,1,2) [2025-02-08 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430384', 'tblTempUsageDetail_20' ) start [2025-02-08 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430384', 'tblTempUsageDetail_20' ) end [2025-02-08 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:39:24] Production.INFO: ==10660== Releasing lock... [2025-02-08 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:39:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:40:06 [end_date_ymd] => 2025-02-08 14:40:06 [RateCDR] => 1 ) [2025-02-08 14:40: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-02-08 11:40:06' and `end` < '2025-02-08 14:40: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-02-08 14:40:20] Production.INFO: count ==1826 [2025-02-08 14:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:40:06 - End Time 2025-02-08 14:40:06 [2025-02-08 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430390', 'tblTempUsageDetail_20' ) start [2025-02-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430390', 'tblTempUsageDetail_20' ) end [2025-02-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430390', 'tblTempVendorCDR_20' ) start [2025-02-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430390', 'tblTempVendorCDR_20' ) end [2025-02-08 14:40:20] Production.INFO: ProcessCDR(1,14430390,1,1,2) [2025-02-08 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430390', 'tblTempUsageDetail_20' ) start [2025-02-08 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430390', 'tblTempUsageDetail_20' ) end [2025-02-08 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:40:26] Production.INFO: ==10806== Releasing lock... [2025-02-08 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:40:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:41:05 [end_date_ymd] => 2025-02-08 14:41:05 [RateCDR] => 1 ) [2025-02-08 14:41: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` >= '2025-02-08 11:41:05' and `end` < '2025-02-08 14:41: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 ,'') [2025-02-08 14:41:18] Production.INFO: count ==1831 [2025-02-08 14:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:41:05 - End Time 2025-02-08 14:41:05 [2025-02-08 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430395', 'tblTempUsageDetail_20' ) start [2025-02-08 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430395', 'tblTempUsageDetail_20' ) end [2025-02-08 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430395', 'tblTempVendorCDR_20' ) start [2025-02-08 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430395', 'tblTempVendorCDR_20' ) end [2025-02-08 14:41:19] Production.INFO: ProcessCDR(1,14430395,1,1,2) [2025-02-08 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430395', 'tblTempUsageDetail_20' ) start [2025-02-08 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430395', 'tblTempUsageDetail_20' ) end [2025-02-08 14:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:41:24] Production.INFO: ==10949== Releasing lock... [2025-02-08 14:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:41:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:42:05 [end_date_ymd] => 2025-02-08 14:42:05 [RateCDR] => 1 ) [2025-02-08 14:42: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` >= '2025-02-08 11:42:05' and `end` < '2025-02-08 14:42: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 ,'') [2025-02-08 14:42:19] Production.INFO: count ==1833 [2025-02-08 14:42:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:42:05 - End Time 2025-02-08 14:42:05 [2025-02-08 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430400', 'tblTempUsageDetail_20' ) start [2025-02-08 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430400', 'tblTempUsageDetail_20' ) end [2025-02-08 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430400', 'tblTempVendorCDR_20' ) start [2025-02-08 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430400', 'tblTempVendorCDR_20' ) end [2025-02-08 14:42:20] Production.INFO: ProcessCDR(1,14430400,1,1,2) [2025-02-08 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430400', 'tblTempUsageDetail_20' ) start [2025-02-08 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430400', 'tblTempUsageDetail_20' ) end [2025-02-08 14:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:42:24] Production.INFO: ==11046== Releasing lock... [2025-02-08 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:42:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:43:05 [end_date_ymd] => 2025-02-08 14:43:05 [RateCDR] => 1 ) [2025-02-08 14:43: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` >= '2025-02-08 11:43:05' and `end` < '2025-02-08 14:43: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 ,'') [2025-02-08 14:43:19] Production.INFO: count ==1837 [2025-02-08 14:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:43:05 - End Time 2025-02-08 14:43:05 [2025-02-08 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430405', 'tblTempUsageDetail_20' ) start [2025-02-08 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430405', 'tblTempUsageDetail_20' ) end [2025-02-08 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430405', 'tblTempVendorCDR_20' ) start [2025-02-08 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430405', 'tblTempVendorCDR_20' ) end [2025-02-08 14:43:19] Production.INFO: ProcessCDR(1,14430405,1,1,2) [2025-02-08 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430405', 'tblTempUsageDetail_20' ) start [2025-02-08 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430405', 'tblTempUsageDetail_20' ) end [2025-02-08 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:43:23] Production.INFO: ==11143== Releasing lock... [2025-02-08 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:44:06 [end_date_ymd] => 2025-02-08 14:44:06 [RateCDR] => 1 ) [2025-02-08 14:44: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-02-08 11:44:06' and `end` < '2025-02-08 14:44: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-02-08 14:44:19] Production.INFO: count ==1850 [2025-02-08 14:44:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:44:06 - End Time 2025-02-08 14:44:06 [2025-02-08 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430410', 'tblTempUsageDetail_20' ) start [2025-02-08 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430410', 'tblTempUsageDetail_20' ) end [2025-02-08 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430410', 'tblTempVendorCDR_20' ) start [2025-02-08 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430410', 'tblTempVendorCDR_20' ) end [2025-02-08 14:44:20] Production.INFO: ProcessCDR(1,14430410,1,1,2) [2025-02-08 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430410', 'tblTempUsageDetail_20' ) start [2025-02-08 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430410', 'tblTempUsageDetail_20' ) end [2025-02-08 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:44:23] Production.INFO: ==11232== Releasing lock... [2025-02-08 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:44:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:45:05 [end_date_ymd] => 2025-02-08 14:45:05 [RateCDR] => 1 ) [2025-02-08 14:45: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` >= '2025-02-08 11:45:05' and `end` < '2025-02-08 14:45: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 ,'') [2025-02-08 14:45:19] Production.INFO: count ==1864 [2025-02-08 14:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:45:05 - End Time 2025-02-08 14:45:05 [2025-02-08 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430415', 'tblTempUsageDetail_20' ) start [2025-02-08 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430415', 'tblTempUsageDetail_20' ) end [2025-02-08 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430415', 'tblTempVendorCDR_20' ) start [2025-02-08 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430415', 'tblTempVendorCDR_20' ) end [2025-02-08 14:45:20] Production.INFO: ProcessCDR(1,14430415,1,1,2) [2025-02-08 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430415', 'tblTempUsageDetail_20' ) start [2025-02-08 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430415', 'tblTempUsageDetail_20' ) end [2025-02-08 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:45:23] Production.INFO: ==11326== Releasing lock... [2025-02-08 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:45:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:46:06 [end_date_ymd] => 2025-02-08 14:46:06 [RateCDR] => 1 ) [2025-02-08 14:46: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-02-08 11:46:06' and `end` < '2025-02-08 14:46: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-02-08 14:46:19] Production.INFO: count ==1868 [2025-02-08 14:46:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:46:06 - End Time 2025-02-08 14:46:06 [2025-02-08 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430420', 'tblTempUsageDetail_20' ) start [2025-02-08 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430420', 'tblTempUsageDetail_20' ) end [2025-02-08 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430420', 'tblTempVendorCDR_20' ) start [2025-02-08 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430420', 'tblTempVendorCDR_20' ) end [2025-02-08 14:46:20] Production.INFO: ProcessCDR(1,14430420,1,1,2) [2025-02-08 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430420', 'tblTempUsageDetail_20' ) start [2025-02-08 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430420', 'tblTempUsageDetail_20' ) end [2025-02-08 14:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:46:23] Production.INFO: ==11417== Releasing lock... [2025-02-08 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:46:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:47:05 [end_date_ymd] => 2025-02-08 14:47:05 [RateCDR] => 1 ) [2025-02-08 14:47: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` >= '2025-02-08 11:47:05' and `end` < '2025-02-08 14:47: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 ,'') [2025-02-08 14:47:18] Production.INFO: count ==1861 [2025-02-08 14:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:47:05 - End Time 2025-02-08 14:47:05 [2025-02-08 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430425', 'tblTempUsageDetail_20' ) start [2025-02-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430425', 'tblTempUsageDetail_20' ) end [2025-02-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430425', 'tblTempVendorCDR_20' ) start [2025-02-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430425', 'tblTempVendorCDR_20' ) end [2025-02-08 14:47:19] Production.INFO: ProcessCDR(1,14430425,1,1,2) [2025-02-08 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430425', 'tblTempUsageDetail_20' ) start [2025-02-08 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430425', 'tblTempUsageDetail_20' ) end [2025-02-08 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:47:24] Production.INFO: ==11511== Releasing lock... [2025-02-08 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:47:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:48:05 [end_date_ymd] => 2025-02-08 14:48:05 [RateCDR] => 1 ) [2025-02-08 14:48: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` >= '2025-02-08 11:48:05' and `end` < '2025-02-08 14:48: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 ,'') [2025-02-08 14:48:18] Production.INFO: count ==1856 [2025-02-08 14:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:48:05 - End Time 2025-02-08 14:48:05 [2025-02-08 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430430', 'tblTempUsageDetail_20' ) start [2025-02-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430430', 'tblTempUsageDetail_20' ) end [2025-02-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430430', 'tblTempVendorCDR_20' ) start [2025-02-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430430', 'tblTempVendorCDR_20' ) end [2025-02-08 14:48:19] Production.INFO: ProcessCDR(1,14430430,1,1,2) [2025-02-08 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430430', 'tblTempUsageDetail_20' ) start [2025-02-08 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430430', 'tblTempUsageDetail_20' ) end [2025-02-08 14:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:48:23] Production.INFO: ==11592== Releasing lock... [2025-02-08 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:48:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:49:05 [end_date_ymd] => 2025-02-08 14:49:05 [RateCDR] => 1 ) [2025-02-08 14:49: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` >= '2025-02-08 11:49:05' and `end` < '2025-02-08 14:49: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 ,'') [2025-02-08 14:49:18] Production.INFO: count ==1853 [2025-02-08 14:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:49:05 - End Time 2025-02-08 14:49:05 [2025-02-08 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430435', 'tblTempUsageDetail_20' ) start [2025-02-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430435', 'tblTempUsageDetail_20' ) end [2025-02-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430435', 'tblTempVendorCDR_20' ) start [2025-02-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430435', 'tblTempVendorCDR_20' ) end [2025-02-08 14:49:19] Production.INFO: ProcessCDR(1,14430435,1,1,2) [2025-02-08 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430435', 'tblTempUsageDetail_20' ) start [2025-02-08 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430435', 'tblTempUsageDetail_20' ) end [2025-02-08 14:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:49:24] Production.INFO: ==11712== Releasing lock... [2025-02-08 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:49:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:50:07 [end_date_ymd] => 2025-02-08 14:50:07 [RateCDR] => 1 ) [2025-02-08 14:50: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-02-08 11:50:07' and `end` < '2025-02-08 14:50: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-02-08 14:50:20] Production.INFO: count ==1848 [2025-02-08 14:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 11:50:07 - End Time 2025-02-08 14:50:07 [2025-02-08 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430441', 'tblTempUsageDetail_20' ) start [2025-02-08 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430441', 'tblTempUsageDetail_20' ) end [2025-02-08 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430441', 'tblTempVendorCDR_20' ) start [2025-02-08 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430441', 'tblTempVendorCDR_20' ) end [2025-02-08 14:50:21] Production.INFO: ProcessCDR(1,14430441,1,1,2) [2025-02-08 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430441', 'tblTempUsageDetail_20' ) start [2025-02-08 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430441', 'tblTempUsageDetail_20' ) end [2025-02-08 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:50:26] Production.INFO: ==11796== Releasing lock... [2025-02-08 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:50:26] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:51:05 [end_date_ymd] => 2025-02-08 14:51:05 [RateCDR] => 1 ) [2025-02-08 14:51: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` >= '2025-02-08 11:51:05' and `end` < '2025-02-08 14:51: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 ,'') [2025-02-08 14:51:21] Production.INFO: count ==1848 [2025-02-08 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-08 11:51:05 - End Time 2025-02-08 14:51:05 [2025-02-08 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430446', 'tblTempUsageDetail_20' ) start [2025-02-08 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430446', 'tblTempUsageDetail_20' ) end [2025-02-08 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430446', 'tblTempVendorCDR_20' ) start [2025-02-08 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430446', 'tblTempVendorCDR_20' ) end [2025-02-08 14:51:22] Production.INFO: ProcessCDR(1,14430446,1,1,2) [2025-02-08 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430446', 'tblTempUsageDetail_20' ) start [2025-02-08 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430446', 'tblTempUsageDetail_20' ) end [2025-02-08 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:51:27] Production.INFO: ==11899== Releasing lock... [2025-02-08 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:51:27] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:52:06 [end_date_ymd] => 2025-02-08 14:52:06 [RateCDR] => 1 ) [2025-02-08 14:52: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-02-08 11:52:06' and `end` < '2025-02-08 14:52: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-02-08 14:52:19] Production.INFO: count ==1847 [2025-02-08 14:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:52:06 - End Time 2025-02-08 14:52:06 [2025-02-08 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430451', 'tblTempUsageDetail_20' ) start [2025-02-08 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430451', 'tblTempUsageDetail_20' ) end [2025-02-08 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430451', 'tblTempVendorCDR_20' ) start [2025-02-08 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430451', 'tblTempVendorCDR_20' ) end [2025-02-08 14:52:20] Production.INFO: ProcessCDR(1,14430451,1,1,2) [2025-02-08 14:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430451', 'tblTempUsageDetail_20' ) start [2025-02-08 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430451', 'tblTempUsageDetail_20' ) end [2025-02-08 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:52:23] Production.INFO: ==12017== Releasing lock... [2025-02-08 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:52:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:53:05 [end_date_ymd] => 2025-02-08 14:53:05 [RateCDR] => 1 ) [2025-02-08 14:53: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` >= '2025-02-08 11:53:05' and `end` < '2025-02-08 14:53: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 ,'') [2025-02-08 14:53:20] Production.INFO: count ==1837 [2025-02-08 14:53:21] Production.ERROR: pbx CDR StartTime 2025-02-08 11:53:05 - End Time 2025-02-08 14:53:05 [2025-02-08 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430456', 'tblTempUsageDetail_20' ) start [2025-02-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430456', 'tblTempUsageDetail_20' ) end [2025-02-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430456', 'tblTempVendorCDR_20' ) start [2025-02-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430456', 'tblTempVendorCDR_20' ) end [2025-02-08 14:53:21] Production.INFO: ProcessCDR(1,14430456,1,1,2) [2025-02-08 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430456', 'tblTempUsageDetail_20' ) start [2025-02-08 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430456', 'tblTempUsageDetail_20' ) end [2025-02-08 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:53:26] Production.INFO: ==12126== Releasing lock... [2025-02-08 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:53:26] Production.INFO: 42 MB #Memory Used# [2025-02-08 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:54:06 [end_date_ymd] => 2025-02-08 14:54:06 [RateCDR] => 1 ) [2025-02-08 14:54: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-02-08 11:54:06' and `end` < '2025-02-08 14:54: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-02-08 14:54:21] Production.INFO: count ==1822 [2025-02-08 14:54:21] Production.ERROR: pbx CDR StartTime 2025-02-08 11:54:06 - End Time 2025-02-08 14:54:06 [2025-02-08 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430461', 'tblTempUsageDetail_20' ) start [2025-02-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430461', 'tblTempUsageDetail_20' ) end [2025-02-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430461', 'tblTempVendorCDR_20' ) start [2025-02-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430461', 'tblTempVendorCDR_20' ) end [2025-02-08 14:54:21] Production.INFO: ProcessCDR(1,14430461,1,1,2) [2025-02-08 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430461', 'tblTempUsageDetail_20' ) start [2025-02-08 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430461', 'tblTempUsageDetail_20' ) end [2025-02-08 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:54:26] Production.INFO: ==12246== Releasing lock... [2025-02-08 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:54:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:55:05 [end_date_ymd] => 2025-02-08 14:55:05 [RateCDR] => 1 ) [2025-02-08 14:55: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` >= '2025-02-08 11:55:05' and `end` < '2025-02-08 14:55: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 ,'') [2025-02-08 14:55:18] Production.INFO: count ==1824 [2025-02-08 14:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:55:05 - End Time 2025-02-08 14:55:05 [2025-02-08 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430466', 'tblTempUsageDetail_20' ) start [2025-02-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430466', 'tblTempUsageDetail_20' ) end [2025-02-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430466', 'tblTempVendorCDR_20' ) start [2025-02-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430466', 'tblTempVendorCDR_20' ) end [2025-02-08 14:55:19] Production.INFO: ProcessCDR(1,14430466,1,1,2) [2025-02-08 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430466', 'tblTempUsageDetail_20' ) start [2025-02-08 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430466', 'tblTempUsageDetail_20' ) end [2025-02-08 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:55:23] Production.INFO: ==12355== Releasing lock... [2025-02-08 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:55:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:56:06 [end_date_ymd] => 2025-02-08 14:56:06 [RateCDR] => 1 ) [2025-02-08 14:56: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-02-08 11:56:06' and `end` < '2025-02-08 14:56: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-02-08 14:56:19] Production.INFO: count ==1822 [2025-02-08 14:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:56:06 - End Time 2025-02-08 14:56:06 [2025-02-08 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430471', 'tblTempUsageDetail_20' ) start [2025-02-08 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430471', 'tblTempUsageDetail_20' ) end [2025-02-08 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430471', 'tblTempVendorCDR_20' ) start [2025-02-08 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430471', 'tblTempVendorCDR_20' ) end [2025-02-08 14:56:19] Production.INFO: ProcessCDR(1,14430471,1,1,2) [2025-02-08 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430471', 'tblTempUsageDetail_20' ) start [2025-02-08 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430471', 'tblTempUsageDetail_20' ) end [2025-02-08 14:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:56:24] Production.INFO: ==12471== Releasing lock... [2025-02-08 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:56:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:57:05 [end_date_ymd] => 2025-02-08 14:57:05 [RateCDR] => 1 ) [2025-02-08 14:57: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` >= '2025-02-08 11:57:05' and `end` < '2025-02-08 14:57: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 ,'') [2025-02-08 14:57:18] Production.INFO: count ==1824 [2025-02-08 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:57:05 - End Time 2025-02-08 14:57:05 [2025-02-08 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430476', 'tblTempUsageDetail_20' ) start [2025-02-08 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430476', 'tblTempUsageDetail_20' ) end [2025-02-08 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430476', 'tblTempVendorCDR_20' ) start [2025-02-08 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430476', 'tblTempVendorCDR_20' ) end [2025-02-08 14:57:19] Production.INFO: ProcessCDR(1,14430476,1,1,2) [2025-02-08 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430476', 'tblTempUsageDetail_20' ) start [2025-02-08 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430476', 'tblTempUsageDetail_20' ) end [2025-02-08 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:57:24] Production.INFO: ==12583== Releasing lock... [2025-02-08 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:57:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:58:06 [end_date_ymd] => 2025-02-08 14:58:06 [RateCDR] => 1 ) [2025-02-08 14:58: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-02-08 11:58:06' and `end` < '2025-02-08 14:58: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-02-08 14:58:19] Production.INFO: count ==1822 [2025-02-08 14:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:58:06 - End Time 2025-02-08 14:58:06 [2025-02-08 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430481', 'tblTempUsageDetail_20' ) start [2025-02-08 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430481', 'tblTempUsageDetail_20' ) end [2025-02-08 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430481', 'tblTempVendorCDR_20' ) start [2025-02-08 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430481', 'tblTempVendorCDR_20' ) end [2025-02-08 14:58:20] Production.INFO: ProcessCDR(1,14430481,1,1,2) [2025-02-08 14:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430481', 'tblTempUsageDetail_20' ) start [2025-02-08 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430481', 'tblTempUsageDetail_20' ) end [2025-02-08 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:58:23] Production.INFO: ==12698== Releasing lock... [2025-02-08 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:58:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 11:59:05 [end_date_ymd] => 2025-02-08 14:59:05 [RateCDR] => 1 ) [2025-02-08 14:59: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` >= '2025-02-08 11:59:05' and `end` < '2025-02-08 14:59: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 ,'') [2025-02-08 14:59:18] Production.INFO: count ==1826 [2025-02-08 14:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 11:59:05 - End Time 2025-02-08 14:59:05 [2025-02-08 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430486', 'tblTempUsageDetail_20' ) start [2025-02-08 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430486', 'tblTempUsageDetail_20' ) end [2025-02-08 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430486', 'tblTempVendorCDR_20' ) start [2025-02-08 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430486', 'tblTempVendorCDR_20' ) end [2025-02-08 14:59:19] Production.INFO: ProcessCDR(1,14430486,1,1,2) [2025-02-08 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430486', 'tblTempUsageDetail_20' ) start [2025-02-08 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430486', 'tblTempUsageDetail_20' ) end [2025-02-08 14:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 14:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 14:59:25] Production.INFO: ==12813== Releasing lock... [2025-02-08 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 14:59:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:00:05 [end_date_ymd] => 2025-02-08 15:00:05 [RateCDR] => 1 ) [2025-02-08 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 12:00:05' and `end` < '2025-02-08 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 15:00:19] Production.INFO: count ==1827 [2025-02-08 15:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:00:05 - End Time 2025-02-08 15:00:05 [2025-02-08 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430492', 'tblTempUsageDetail_20' ) start [2025-02-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430492', 'tblTempUsageDetail_20' ) end [2025-02-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430492', 'tblTempVendorCDR_20' ) start [2025-02-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430492', 'tblTempVendorCDR_20' ) end [2025-02-08 15:00:19] Production.INFO: ProcessCDR(1,14430492,1,1,2) [2025-02-08 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430492', 'tblTempUsageDetail_20' ) start [2025-02-08 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430492', 'tblTempUsageDetail_20' ) end [2025-02-08 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:00:25] Production.INFO: ==12920== Releasing lock... [2025-02-08 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:00:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:01:05 [end_date_ymd] => 2025-02-08 15:01:05 [RateCDR] => 1 ) [2025-02-08 15: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` >= '2025-02-08 12:01:05' and `end` < '2025-02-08 15: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 ,'') [2025-02-08 15:01:19] Production.INFO: count ==1850 [2025-02-08 15:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:01:05 - End Time 2025-02-08 15:01:05 [2025-02-08 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430497', 'tblTempUsageDetail_20' ) start [2025-02-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430497', 'tblTempUsageDetail_20' ) end [2025-02-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430497', 'tblTempVendorCDR_20' ) start [2025-02-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430497', 'tblTempVendorCDR_20' ) end [2025-02-08 15:01:19] Production.INFO: ProcessCDR(1,14430497,1,1,2) [2025-02-08 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430497', 'tblTempUsageDetail_20' ) start [2025-02-08 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430497', 'tblTempUsageDetail_20' ) end [2025-02-08 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:01:25] Production.INFO: ==13048== Releasing lock... [2025-02-08 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:01:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:02:05 [end_date_ymd] => 2025-02-08 15:02:05 [RateCDR] => 1 ) [2025-02-08 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 12:02:05' and `end` < '2025-02-08 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 15:02:18] Production.INFO: count ==1837 [2025-02-08 15:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:02:05 - End Time 2025-02-08 15:02:05 [2025-02-08 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430502', 'tblTempUsageDetail_20' ) start [2025-02-08 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430502', 'tblTempUsageDetail_20' ) end [2025-02-08 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430502', 'tblTempVendorCDR_20' ) start [2025-02-08 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430502', 'tblTempVendorCDR_20' ) end [2025-02-08 15:02:19] Production.INFO: ProcessCDR(1,14430502,1,1,2) [2025-02-08 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430502', 'tblTempUsageDetail_20' ) start [2025-02-08 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430502', 'tblTempUsageDetail_20' ) end [2025-02-08 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:02:22] Production.INFO: ==13235== Releasing lock... [2025-02-08 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:03:05 [end_date_ymd] => 2025-02-08 15:03:05 [RateCDR] => 1 ) [2025-02-08 15:03: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` >= '2025-02-08 12:03:05' and `end` < '2025-02-08 15:03: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 ,'') [2025-02-08 15:03:19] Production.INFO: count ==1839 [2025-02-08 15:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:03:05 - End Time 2025-02-08 15:03:05 [2025-02-08 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430507', 'tblTempUsageDetail_20' ) start [2025-02-08 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430507', 'tblTempUsageDetail_20' ) end [2025-02-08 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430507', 'tblTempVendorCDR_20' ) start [2025-02-08 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430507', 'tblTempVendorCDR_20' ) end [2025-02-08 15:03:20] Production.INFO: ProcessCDR(1,14430507,1,1,2) [2025-02-08 15:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430507', 'tblTempUsageDetail_20' ) start [2025-02-08 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430507', 'tblTempUsageDetail_20' ) end [2025-02-08 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:03:25] Production.INFO: ==13348== Releasing lock... [2025-02-08 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:03:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:04:06 [end_date_ymd] => 2025-02-08 15:04:06 [RateCDR] => 1 ) [2025-02-08 15:04: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-02-08 12:04:06' and `end` < '2025-02-08 15:04: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-02-08 15:04:19] Production.INFO: count ==1843 [2025-02-08 15:04:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:04:06 - End Time 2025-02-08 15:04:06 [2025-02-08 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430512', 'tblTempUsageDetail_20' ) start [2025-02-08 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430512', 'tblTempUsageDetail_20' ) end [2025-02-08 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430512', 'tblTempVendorCDR_20' ) start [2025-02-08 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430512', 'tblTempVendorCDR_20' ) end [2025-02-08 15:04:20] Production.INFO: ProcessCDR(1,14430512,1,1,2) [2025-02-08 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430512', 'tblTempUsageDetail_20' ) start [2025-02-08 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430512', 'tblTempUsageDetail_20' ) end [2025-02-08 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:04:23] Production.INFO: ==13462== Releasing lock... [2025-02-08 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:04:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:05:06 [end_date_ymd] => 2025-02-08 15:05:06 [RateCDR] => 1 ) [2025-02-08 15:05: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-02-08 12:05:06' and `end` < '2025-02-08 15:05: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-02-08 15:05:19] Production.INFO: count ==1848 [2025-02-08 15:05:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:05:06 - End Time 2025-02-08 15:05:06 [2025-02-08 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430517', 'tblTempUsageDetail_20' ) start [2025-02-08 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430517', 'tblTempUsageDetail_20' ) end [2025-02-08 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430517', 'tblTempVendorCDR_20' ) start [2025-02-08 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430517', 'tblTempVendorCDR_20' ) end [2025-02-08 15:05:20] Production.INFO: ProcessCDR(1,14430517,1,1,2) [2025-02-08 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430517', 'tblTempUsageDetail_20' ) start [2025-02-08 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430517', 'tblTempUsageDetail_20' ) end [2025-02-08 15:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:05:25] Production.INFO: ==13690== Releasing lock... [2025-02-08 15:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:05:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:06:05 [end_date_ymd] => 2025-02-08 15:06:05 [RateCDR] => 1 ) [2025-02-08 15:06: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` >= '2025-02-08 12:06:05' and `end` < '2025-02-08 15:06: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 ,'') [2025-02-08 15:06:19] Production.INFO: count ==1845 [2025-02-08 15:06:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:06:05 - End Time 2025-02-08 15:06:05 [2025-02-08 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430522', 'tblTempUsageDetail_20' ) start [2025-02-08 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430522', 'tblTempUsageDetail_20' ) end [2025-02-08 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430522', 'tblTempVendorCDR_20' ) start [2025-02-08 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430522', 'tblTempVendorCDR_20' ) end [2025-02-08 15:06:20] Production.INFO: ProcessCDR(1,14430522,1,1,2) [2025-02-08 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430522', 'tblTempUsageDetail_20' ) start [2025-02-08 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430522', 'tblTempUsageDetail_20' ) end [2025-02-08 15:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:06:25] Production.INFO: ==13801== Releasing lock... [2025-02-08 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:06:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:07:06 [end_date_ymd] => 2025-02-08 15:07:06 [RateCDR] => 1 ) [2025-02-08 15:07: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-02-08 12:07:06' and `end` < '2025-02-08 15:07: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-02-08 15:07:19] Production.INFO: count ==1843 [2025-02-08 15:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:07:06 - End Time 2025-02-08 15:07:06 [2025-02-08 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430527', 'tblTempUsageDetail_20' ) start [2025-02-08 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430527', 'tblTempUsageDetail_20' ) end [2025-02-08 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430527', 'tblTempVendorCDR_20' ) start [2025-02-08 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430527', 'tblTempVendorCDR_20' ) end [2025-02-08 15:07:19] Production.INFO: ProcessCDR(1,14430527,1,1,2) [2025-02-08 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430527', 'tblTempUsageDetail_20' ) start [2025-02-08 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430527', 'tblTempUsageDetail_20' ) end [2025-02-08 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:07:24] Production.INFO: ==13916== Releasing lock... [2025-02-08 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:07:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:08:05 [end_date_ymd] => 2025-02-08 15:08:05 [RateCDR] => 1 ) [2025-02-08 15:08: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` >= '2025-02-08 12:08:05' and `end` < '2025-02-08 15:08: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 ,'') [2025-02-08 15:08:19] Production.INFO: count ==1842 [2025-02-08 15:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:08:05 - End Time 2025-02-08 15:08:05 [2025-02-08 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430532', 'tblTempUsageDetail_20' ) start [2025-02-08 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430532', 'tblTempUsageDetail_20' ) end [2025-02-08 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430532', 'tblTempVendorCDR_20' ) start [2025-02-08 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430532', 'tblTempVendorCDR_20' ) end [2025-02-08 15:08:19] Production.INFO: ProcessCDR(1,14430532,1,1,2) [2025-02-08 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430532', 'tblTempUsageDetail_20' ) start [2025-02-08 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430532', 'tblTempUsageDetail_20' ) end [2025-02-08 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:08:24] Production.INFO: ==14025== Releasing lock... [2025-02-08 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:08:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:09:06 [end_date_ymd] => 2025-02-08 15:09:06 [RateCDR] => 1 ) [2025-02-08 15:09: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-02-08 12:09:06' and `end` < '2025-02-08 15:09: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-02-08 15:09:19] Production.INFO: count ==1834 [2025-02-08 15:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:09:06 - End Time 2025-02-08 15:09:06 [2025-02-08 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430537', 'tblTempUsageDetail_20' ) start [2025-02-08 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430537', 'tblTempUsageDetail_20' ) end [2025-02-08 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430537', 'tblTempVendorCDR_20' ) start [2025-02-08 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430537', 'tblTempVendorCDR_20' ) end [2025-02-08 15:09:19] Production.INFO: ProcessCDR(1,14430537,1,1,2) [2025-02-08 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430537', 'tblTempUsageDetail_20' ) start [2025-02-08 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430537', 'tblTempUsageDetail_20' ) end [2025-02-08 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:09:24] Production.INFO: ==14217== Releasing lock... [2025-02-08 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:09:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:10:05 [end_date_ymd] => 2025-02-08 15:10:05 [RateCDR] => 1 ) [2025-02-08 15:10: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` >= '2025-02-08 12:10:05' and `end` < '2025-02-08 15:10: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 ,'') [2025-02-08 15:10:19] Production.INFO: count ==1828 [2025-02-08 15:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:10:05 - End Time 2025-02-08 15:10:05 [2025-02-08 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430543', 'tblTempUsageDetail_20' ) start [2025-02-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430543', 'tblTempUsageDetail_20' ) end [2025-02-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430543', 'tblTempVendorCDR_20' ) start [2025-02-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430543', 'tblTempVendorCDR_20' ) end [2025-02-08 15:10:19] Production.INFO: ProcessCDR(1,14430543,1,1,2) [2025-02-08 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430543', 'tblTempUsageDetail_20' ) start [2025-02-08 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430543', 'tblTempUsageDetail_20' ) end [2025-02-08 15:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:10:25] Production.INFO: ==14334== Releasing lock... [2025-02-08 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:10:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:11:05 [end_date_ymd] => 2025-02-08 15:11:05 [RateCDR] => 1 ) [2025-02-08 15:11: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-02-08 12:11:05' and `end` < '2025-02-08 15:11: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 ,'') [2025-02-08 15:11:19] Production.INFO: count ==1796 [2025-02-08 15:11:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:11:05 - End Time 2025-02-08 15:11:05 [2025-02-08 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430548', 'tblTempUsageDetail_20' ) start [2025-02-08 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430548', 'tblTempUsageDetail_20' ) end [2025-02-08 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430548', 'tblTempVendorCDR_20' ) start [2025-02-08 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430548', 'tblTempVendorCDR_20' ) end [2025-02-08 15:11:20] Production.INFO: ProcessCDR(1,14430548,1,1,2) [2025-02-08 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430548', 'tblTempUsageDetail_20' ) start [2025-02-08 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430548', 'tblTempUsageDetail_20' ) end [2025-02-08 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:11:24] Production.INFO: ==14450== Releasing lock... [2025-02-08 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:11:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:12:05 [end_date_ymd] => 2025-02-08 15:12:05 [RateCDR] => 1 ) [2025-02-08 15:12: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` >= '2025-02-08 12:12:05' and `end` < '2025-02-08 15:12: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 ,'') [2025-02-08 15:12:19] Production.INFO: count ==1790 [2025-02-08 15:12:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:12:05 - End Time 2025-02-08 15:12:05 [2025-02-08 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430553', 'tblTempUsageDetail_20' ) start [2025-02-08 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430553', 'tblTempUsageDetail_20' ) end [2025-02-08 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430553', 'tblTempVendorCDR_20' ) start [2025-02-08 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430553', 'tblTempVendorCDR_20' ) end [2025-02-08 15:12:20] Production.INFO: ProcessCDR(1,14430553,1,1,2) [2025-02-08 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430553', 'tblTempUsageDetail_20' ) start [2025-02-08 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430553', 'tblTempUsageDetail_20' ) end [2025-02-08 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:12:25] Production.INFO: ==14635== Releasing lock... [2025-02-08 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:12:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:13:06 [end_date_ymd] => 2025-02-08 15:13:06 [RateCDR] => 1 ) [2025-02-08 15:13: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-02-08 12:13:06' and `end` < '2025-02-08 15:13: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-02-08 15:13:20] Production.INFO: count ==1794 [2025-02-08 15:13:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:13:06 - End Time 2025-02-08 15:13:06 [2025-02-08 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430558', 'tblTempUsageDetail_20' ) start [2025-02-08 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430558', 'tblTempUsageDetail_20' ) end [2025-02-08 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430558', 'tblTempVendorCDR_20' ) start [2025-02-08 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430558', 'tblTempVendorCDR_20' ) end [2025-02-08 15:13:20] Production.INFO: ProcessCDR(1,14430558,1,1,2) [2025-02-08 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430558', 'tblTempUsageDetail_20' ) start [2025-02-08 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430558', 'tblTempUsageDetail_20' ) end [2025-02-08 15:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:13:25] Production.INFO: ==14749== Releasing lock... [2025-02-08 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:13:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:14:05 [end_date_ymd] => 2025-02-08 15:14:05 [RateCDR] => 1 ) [2025-02-08 15:14: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` >= '2025-02-08 12:14:05' and `end` < '2025-02-08 15:14: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 ,'') [2025-02-08 15:14:18] Production.INFO: count ==1794 [2025-02-08 15:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:14:05 - End Time 2025-02-08 15:14:05 [2025-02-08 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430563', 'tblTempUsageDetail_20' ) start [2025-02-08 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430563', 'tblTempUsageDetail_20' ) end [2025-02-08 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430563', 'tblTempVendorCDR_20' ) start [2025-02-08 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430563', 'tblTempVendorCDR_20' ) end [2025-02-08 15:14:19] Production.INFO: ProcessCDR(1,14430563,1,1,2) [2025-02-08 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430563', 'tblTempUsageDetail_20' ) start [2025-02-08 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430563', 'tblTempUsageDetail_20' ) end [2025-02-08 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:14:24] Production.INFO: ==14864== Releasing lock... [2025-02-08 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:14:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:15:05 [end_date_ymd] => 2025-02-08 15:15:05 [RateCDR] => 1 ) [2025-02-08 15:15: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` >= '2025-02-08 12:15:05' and `end` < '2025-02-08 15:15: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 ,'') [2025-02-08 15:15:19] Production.INFO: count ==1792 [2025-02-08 15:15:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:15:05 - End Time 2025-02-08 15:15:05 [2025-02-08 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430568', 'tblTempUsageDetail_20' ) start [2025-02-08 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430568', 'tblTempUsageDetail_20' ) end [2025-02-08 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430568', 'tblTempVendorCDR_20' ) start [2025-02-08 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430568', 'tblTempVendorCDR_20' ) end [2025-02-08 15:15:20] Production.INFO: ProcessCDR(1,14430568,1,1,2) [2025-02-08 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430568', 'tblTempUsageDetail_20' ) start [2025-02-08 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430568', 'tblTempUsageDetail_20' ) end [2025-02-08 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:15:25] Production.INFO: ==15020== Releasing lock... [2025-02-08 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:15:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:16:05 [end_date_ymd] => 2025-02-08 15:16:05 [RateCDR] => 1 ) [2025-02-08 15:16: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` >= '2025-02-08 12:16:05' and `end` < '2025-02-08 15:16: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 ,'') [2025-02-08 15:16:18] Production.INFO: count ==1773 [2025-02-08 15:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:16:05 - End Time 2025-02-08 15:16:05 [2025-02-08 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430573', 'tblTempUsageDetail_20' ) start [2025-02-08 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430573', 'tblTempUsageDetail_20' ) end [2025-02-08 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430573', 'tblTempVendorCDR_20' ) start [2025-02-08 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430573', 'tblTempVendorCDR_20' ) end [2025-02-08 15:16:19] Production.INFO: ProcessCDR(1,14430573,1,1,2) [2025-02-08 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430573', 'tblTempUsageDetail_20' ) start [2025-02-08 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430573', 'tblTempUsageDetail_20' ) end [2025-02-08 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:16:24] Production.INFO: ==15175== Releasing lock... [2025-02-08 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:16:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:17:05 [end_date_ymd] => 2025-02-08 15:17:05 [RateCDR] => 1 ) [2025-02-08 15:17: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` >= '2025-02-08 12:17:05' and `end` < '2025-02-08 15:17: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 ,'') [2025-02-08 15:17:19] Production.INFO: count ==1772 [2025-02-08 15:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:17:05 - End Time 2025-02-08 15:17:05 [2025-02-08 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430578', 'tblTempUsageDetail_20' ) start [2025-02-08 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430578', 'tblTempUsageDetail_20' ) end [2025-02-08 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430578', 'tblTempVendorCDR_20' ) start [2025-02-08 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430578', 'tblTempVendorCDR_20' ) end [2025-02-08 15:17:19] Production.INFO: ProcessCDR(1,14430578,1,1,2) [2025-02-08 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430578', 'tblTempUsageDetail_20' ) start [2025-02-08 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430578', 'tblTempUsageDetail_20' ) end [2025-02-08 15:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:17:25] Production.INFO: ==15257== Releasing lock... [2025-02-08 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:17:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:18:05 [end_date_ymd] => 2025-02-08 15:18:05 [RateCDR] => 1 ) [2025-02-08 15:18: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` >= '2025-02-08 12:18:05' and `end` < '2025-02-08 15:18: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 ,'') [2025-02-08 15:18:19] Production.INFO: count ==1787 [2025-02-08 15:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:18:05 - End Time 2025-02-08 15:18:05 [2025-02-08 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430583', 'tblTempUsageDetail_20' ) start [2025-02-08 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430583', 'tblTempUsageDetail_20' ) end [2025-02-08 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430583', 'tblTempVendorCDR_20' ) start [2025-02-08 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430583', 'tblTempVendorCDR_20' ) end [2025-02-08 15:18:19] Production.INFO: ProcessCDR(1,14430583,1,1,2) [2025-02-08 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430583', 'tblTempUsageDetail_20' ) start [2025-02-08 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430583', 'tblTempUsageDetail_20' ) end [2025-02-08 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:18:24] Production.INFO: ==15339== Releasing lock... [2025-02-08 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:18:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:19:06 [end_date_ymd] => 2025-02-08 15:19:06 [RateCDR] => 1 ) [2025-02-08 15:19: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-02-08 12:19:06' and `end` < '2025-02-08 15:19: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-02-08 15:19:19] Production.INFO: count ==1783 [2025-02-08 15:19:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:19:06 - End Time 2025-02-08 15:19:06 [2025-02-08 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430588', 'tblTempUsageDetail_20' ) start [2025-02-08 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430588', 'tblTempUsageDetail_20' ) end [2025-02-08 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430588', 'tblTempVendorCDR_20' ) start [2025-02-08 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430588', 'tblTempVendorCDR_20' ) end [2025-02-08 15:19:20] Production.INFO: ProcessCDR(1,14430588,1,1,2) [2025-02-08 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430588', 'tblTempUsageDetail_20' ) start [2025-02-08 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430588', 'tblTempUsageDetail_20' ) end [2025-02-08 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:19:25] Production.INFO: ==15416== Releasing lock... [2025-02-08 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:19:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:20:06 [end_date_ymd] => 2025-02-08 15:20:06 [RateCDR] => 1 ) [2025-02-08 15:20: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-02-08 12:20:06' and `end` < '2025-02-08 15:20: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-02-08 15:20:35] Production.INFO: count ==1803 [2025-02-08 15:20:35] Production.ERROR: pbx CDR StartTime 2025-02-08 12:20:06 - End Time 2025-02-08 15:20:06 [2025-02-08 15:20:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430594', 'tblTempUsageDetail_20' ) start [2025-02-08 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430594', 'tblTempUsageDetail_20' ) end [2025-02-08 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430594', 'tblTempVendorCDR_20' ) start [2025-02-08 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430594', 'tblTempVendorCDR_20' ) end [2025-02-08 15:20:35] Production.INFO: ProcessCDR(1,14430594,1,1,2) [2025-02-08 15:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430594', 'tblTempUsageDetail_20' ) start [2025-02-08 15:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430594', 'tblTempUsageDetail_20' ) end [2025-02-08 15:20:39] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:20:39] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:20:39] Production.INFO: ==15550== Releasing lock... [2025-02-08 15:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:20:39] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:21:05 [end_date_ymd] => 2025-02-08 15:21:05 [RateCDR] => 1 ) [2025-02-08 15:21: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` >= '2025-02-08 12:21:05' and `end` < '2025-02-08 15:21: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 ,'') [2025-02-08 15:21:23] Production.INFO: count ==1849 [2025-02-08 15:21:24] Production.ERROR: pbx CDR StartTime 2025-02-08 12:21:05 - End Time 2025-02-08 15:21:05 [2025-02-08 15:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430599', 'tblTempUsageDetail_20' ) start [2025-02-08 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430599', 'tblTempUsageDetail_20' ) end [2025-02-08 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430599', 'tblTempVendorCDR_20' ) start [2025-02-08 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430599', 'tblTempVendorCDR_20' ) end [2025-02-08 15:21:24] Production.INFO: ProcessCDR(1,14430599,1,1,2) [2025-02-08 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430599', 'tblTempUsageDetail_20' ) start [2025-02-08 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430599', 'tblTempUsageDetail_20' ) end [2025-02-08 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:21:29] Production.INFO: ==15645== Releasing lock... [2025-02-08 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:21:29] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:22:05 [end_date_ymd] => 2025-02-08 15:22:05 [RateCDR] => 1 ) [2025-02-08 15:22: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` >= '2025-02-08 12:22:05' and `end` < '2025-02-08 15:22: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 ,'') [2025-02-08 15:22:19] Production.INFO: count ==1845 [2025-02-08 15:22:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:22:05 - End Time 2025-02-08 15:22:05 [2025-02-08 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430604', 'tblTempUsageDetail_20' ) start [2025-02-08 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430604', 'tblTempUsageDetail_20' ) end [2025-02-08 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430604', 'tblTempVendorCDR_20' ) start [2025-02-08 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430604', 'tblTempVendorCDR_20' ) end [2025-02-08 15:22:20] Production.INFO: ProcessCDR(1,14430604,1,1,2) [2025-02-08 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430604', 'tblTempUsageDetail_20' ) start [2025-02-08 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430604', 'tblTempUsageDetail_20' ) end [2025-02-08 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:22:25] Production.INFO: ==15733== Releasing lock... [2025-02-08 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:22:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:23:05 [end_date_ymd] => 2025-02-08 15:23:05 [RateCDR] => 1 ) [2025-02-08 15:23: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` >= '2025-02-08 12:23:05' and `end` < '2025-02-08 15:23: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 ,'') [2025-02-08 15:23:19] Production.INFO: count ==1848 [2025-02-08 15:23:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:23:05 - End Time 2025-02-08 15:23:05 [2025-02-08 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430609', 'tblTempUsageDetail_20' ) start [2025-02-08 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430609', 'tblTempUsageDetail_20' ) end [2025-02-08 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430609', 'tblTempVendorCDR_20' ) start [2025-02-08 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430609', 'tblTempVendorCDR_20' ) end [2025-02-08 15:23:20] Production.INFO: ProcessCDR(1,14430609,1,1,2) [2025-02-08 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430609', 'tblTempUsageDetail_20' ) start [2025-02-08 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430609', 'tblTempUsageDetail_20' ) end [2025-02-08 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:23:23] Production.INFO: ==15826== Releasing lock... [2025-02-08 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:23:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:24:05 [end_date_ymd] => 2025-02-08 15:24:05 [RateCDR] => 1 ) [2025-02-08 15:24: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` >= '2025-02-08 12:24:05' and `end` < '2025-02-08 15:24: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 ,'') [2025-02-08 15:24:18] Production.INFO: count ==1845 [2025-02-08 15:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:24:05 - End Time 2025-02-08 15:24:05 [2025-02-08 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430614', 'tblTempUsageDetail_20' ) start [2025-02-08 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430614', 'tblTempUsageDetail_20' ) end [2025-02-08 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430614', 'tblTempVendorCDR_20' ) start [2025-02-08 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430614', 'tblTempVendorCDR_20' ) end [2025-02-08 15:24:19] Production.INFO: ProcessCDR(1,14430614,1,1,2) [2025-02-08 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430614', 'tblTempUsageDetail_20' ) start [2025-02-08 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430614', 'tblTempUsageDetail_20' ) end [2025-02-08 15:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:24:24] Production.INFO: ==15916== Releasing lock... [2025-02-08 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:24:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:25:05 [end_date_ymd] => 2025-02-08 15:25:05 [RateCDR] => 1 ) [2025-02-08 15:25: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` >= '2025-02-08 12:25:05' and `end` < '2025-02-08 15:25: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 ,'') [2025-02-08 15:25:18] Production.INFO: count ==1839 [2025-02-08 15:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:25:05 - End Time 2025-02-08 15:25:05 [2025-02-08 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430619', 'tblTempUsageDetail_20' ) start [2025-02-08 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430619', 'tblTempUsageDetail_20' ) end [2025-02-08 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430619', 'tblTempVendorCDR_20' ) start [2025-02-08 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430619', 'tblTempVendorCDR_20' ) end [2025-02-08 15:25:19] Production.INFO: ProcessCDR(1,14430619,1,1,2) [2025-02-08 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430619', 'tblTempUsageDetail_20' ) start [2025-02-08 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430619', 'tblTempUsageDetail_20' ) end [2025-02-08 15:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:25:23] Production.INFO: ==16016== Releasing lock... [2025-02-08 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:25:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:26:06 [end_date_ymd] => 2025-02-08 15:26:06 [RateCDR] => 1 ) [2025-02-08 15:26: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-02-08 12:26:06' and `end` < '2025-02-08 15:26: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-02-08 15:26:19] Production.INFO: count ==1836 [2025-02-08 15:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:26:06 - End Time 2025-02-08 15:26:06 [2025-02-08 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430624', 'tblTempUsageDetail_20' ) start [2025-02-08 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430624', 'tblTempUsageDetail_20' ) end [2025-02-08 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430624', 'tblTempVendorCDR_20' ) start [2025-02-08 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430624', 'tblTempVendorCDR_20' ) end [2025-02-08 15:26:20] Production.INFO: ProcessCDR(1,14430624,1,1,2) [2025-02-08 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430624', 'tblTempUsageDetail_20' ) start [2025-02-08 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430624', 'tblTempUsageDetail_20' ) end [2025-02-08 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:26:23] Production.INFO: ==16112== Releasing lock... [2025-02-08 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:26:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:27:05 [end_date_ymd] => 2025-02-08 15:27:05 [RateCDR] => 1 ) [2025-02-08 15:27: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` >= '2025-02-08 12:27:05' and `end` < '2025-02-08 15:27: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 ,'') [2025-02-08 15:27:19] Production.INFO: count ==1841 [2025-02-08 15:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:27:05 - End Time 2025-02-08 15:27:05 [2025-02-08 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430629', 'tblTempUsageDetail_20' ) start [2025-02-08 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430629', 'tblTempUsageDetail_20' ) end [2025-02-08 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430629', 'tblTempVendorCDR_20' ) start [2025-02-08 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430629', 'tblTempVendorCDR_20' ) end [2025-02-08 15:27:19] Production.INFO: ProcessCDR(1,14430629,1,1,2) [2025-02-08 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430629', 'tblTempUsageDetail_20' ) start [2025-02-08 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430629', 'tblTempUsageDetail_20' ) end [2025-02-08 15:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:27:24] Production.INFO: ==16192== Releasing lock... [2025-02-08 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:27:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:28:05 [end_date_ymd] => 2025-02-08 15:28:05 [RateCDR] => 1 ) [2025-02-08 15:28: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` >= '2025-02-08 12:28:05' and `end` < '2025-02-08 15:28: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 ,'') [2025-02-08 15:28:18] Production.INFO: count ==1836 [2025-02-08 15:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:28:05 - End Time 2025-02-08 15:28:05 [2025-02-08 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430634', 'tblTempUsageDetail_20' ) start [2025-02-08 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430634', 'tblTempUsageDetail_20' ) end [2025-02-08 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430634', 'tblTempVendorCDR_20' ) start [2025-02-08 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430634', 'tblTempVendorCDR_20' ) end [2025-02-08 15:28:19] Production.INFO: ProcessCDR(1,14430634,1,1,2) [2025-02-08 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430634', 'tblTempUsageDetail_20' ) start [2025-02-08 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430634', 'tblTempUsageDetail_20' ) end [2025-02-08 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:28:23] Production.INFO: ==16273== Releasing lock... [2025-02-08 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:28:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:29:05 [end_date_ymd] => 2025-02-08 15:29:05 [RateCDR] => 1 ) [2025-02-08 15:29: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` >= '2025-02-08 12:29:05' and `end` < '2025-02-08 15:29: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 ,'') [2025-02-08 15:29:18] Production.INFO: count ==1835 [2025-02-08 15:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:29:05 - End Time 2025-02-08 15:29:05 [2025-02-08 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430639', 'tblTempUsageDetail_20' ) start [2025-02-08 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430639', 'tblTempUsageDetail_20' ) end [2025-02-08 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430639', 'tblTempVendorCDR_20' ) start [2025-02-08 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430639', 'tblTempVendorCDR_20' ) end [2025-02-08 15:29:19] Production.INFO: ProcessCDR(1,14430639,1,1,2) [2025-02-08 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430639', 'tblTempUsageDetail_20' ) start [2025-02-08 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430639', 'tblTempUsageDetail_20' ) end [2025-02-08 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:29:23] Production.INFO: ==16351== Releasing lock... [2025-02-08 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:29:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:30:06 [end_date_ymd] => 2025-02-08 15:30:06 [RateCDR] => 1 ) [2025-02-08 15:30: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-02-08 12:30:06' and `end` < '2025-02-08 15:30: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-02-08 15:30:19] Production.INFO: count ==1831 [2025-02-08 15:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:30:06 - End Time 2025-02-08 15:30:06 [2025-02-08 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430645', 'tblTempUsageDetail_20' ) start [2025-02-08 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430645', 'tblTempUsageDetail_20' ) end [2025-02-08 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430645', 'tblTempVendorCDR_20' ) start [2025-02-08 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430645', 'tblTempVendorCDR_20' ) end [2025-02-08 15:30:20] Production.INFO: ProcessCDR(1,14430645,1,1,2) [2025-02-08 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430645', 'tblTempUsageDetail_20' ) start [2025-02-08 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430645', 'tblTempUsageDetail_20' ) end [2025-02-08 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:30:24] Production.INFO: ==16433== Releasing lock... [2025-02-08 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:30:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:31:05 [end_date_ymd] => 2025-02-08 15:31:05 [RateCDR] => 1 ) [2025-02-08 15:31: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` >= '2025-02-08 12:31:05' and `end` < '2025-02-08 15:31: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 ,'') [2025-02-08 15:31:18] Production.INFO: count ==1829 [2025-02-08 15:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 12:31:05 - End Time 2025-02-08 15:31:05 [2025-02-08 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430650', 'tblTempUsageDetail_20' ) start [2025-02-08 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430650', 'tblTempUsageDetail_20' ) end [2025-02-08 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430650', 'tblTempVendorCDR_20' ) start [2025-02-08 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430650', 'tblTempVendorCDR_20' ) end [2025-02-08 15:31:18] Production.INFO: ProcessCDR(1,14430650,1,1,2) [2025-02-08 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430650', 'tblTempUsageDetail_20' ) start [2025-02-08 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430650', 'tblTempUsageDetail_20' ) end [2025-02-08 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:31:23] Production.INFO: ==16519== Releasing lock... [2025-02-08 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:31:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:32:05 [end_date_ymd] => 2025-02-08 15:32:05 [RateCDR] => 1 ) [2025-02-08 15:32: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` >= '2025-02-08 12:32:05' and `end` < '2025-02-08 15:32: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 ,'') [2025-02-08 15:32:18] Production.INFO: count ==1827 [2025-02-08 15:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:32:05 - End Time 2025-02-08 15:32:05 [2025-02-08 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430655', 'tblTempUsageDetail_20' ) start [2025-02-08 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430655', 'tblTempUsageDetail_20' ) end [2025-02-08 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430655', 'tblTempVendorCDR_20' ) start [2025-02-08 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430655', 'tblTempVendorCDR_20' ) end [2025-02-08 15:32:19] Production.INFO: ProcessCDR(1,14430655,1,1,2) [2025-02-08 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430655', 'tblTempUsageDetail_20' ) start [2025-02-08 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430655', 'tblTempUsageDetail_20' ) end [2025-02-08 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:32:24] Production.INFO: ==16594== Releasing lock... [2025-02-08 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:32:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:33:05 [end_date_ymd] => 2025-02-08 15:33:05 [RateCDR] => 1 ) [2025-02-08 15:33: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` >= '2025-02-08 12:33:05' and `end` < '2025-02-08 15:33: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 ,'') [2025-02-08 15:33:18] Production.INFO: count ==1826 [2025-02-08 15:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:33:05 - End Time 2025-02-08 15:33:05 [2025-02-08 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430660', 'tblTempUsageDetail_20' ) start [2025-02-08 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430660', 'tblTempUsageDetail_20' ) end [2025-02-08 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430660', 'tblTempVendorCDR_20' ) start [2025-02-08 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430660', 'tblTempVendorCDR_20' ) end [2025-02-08 15:33:19] Production.INFO: ProcessCDR(1,14430660,1,1,2) [2025-02-08 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430660', 'tblTempUsageDetail_20' ) start [2025-02-08 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430660', 'tblTempUsageDetail_20' ) end [2025-02-08 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:33:22] Production.INFO: ==16678== Releasing lock... [2025-02-08 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:33:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:34:05 [end_date_ymd] => 2025-02-08 15:34:05 [RateCDR] => 1 ) [2025-02-08 15:34: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` >= '2025-02-08 12:34:05' and `end` < '2025-02-08 15:34: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 ,'') [2025-02-08 15:34:18] Production.INFO: count ==1827 [2025-02-08 15:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:34:05 - End Time 2025-02-08 15:34:05 [2025-02-08 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430665', 'tblTempUsageDetail_20' ) start [2025-02-08 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430665', 'tblTempUsageDetail_20' ) end [2025-02-08 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430665', 'tblTempVendorCDR_20' ) start [2025-02-08 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430665', 'tblTempVendorCDR_20' ) end [2025-02-08 15:34:19] Production.INFO: ProcessCDR(1,14430665,1,1,2) [2025-02-08 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430665', 'tblTempUsageDetail_20' ) start [2025-02-08 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430665', 'tblTempUsageDetail_20' ) end [2025-02-08 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:34:22] Production.INFO: ==16763== Releasing lock... [2025-02-08 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:34:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:35:05 [end_date_ymd] => 2025-02-08 15:35:05 [RateCDR] => 1 ) [2025-02-08 15:35: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` >= '2025-02-08 12:35:05' and `end` < '2025-02-08 15:35: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 ,'') [2025-02-08 15:35:18] Production.INFO: count ==1828 [2025-02-08 15:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:35:05 - End Time 2025-02-08 15:35:05 [2025-02-08 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430670', 'tblTempUsageDetail_20' ) start [2025-02-08 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430670', 'tblTempUsageDetail_20' ) end [2025-02-08 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430670', 'tblTempVendorCDR_20' ) start [2025-02-08 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430670', 'tblTempVendorCDR_20' ) end [2025-02-08 15:35:19] Production.INFO: ProcessCDR(1,14430670,1,1,2) [2025-02-08 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430670', 'tblTempUsageDetail_20' ) start [2025-02-08 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430670', 'tblTempUsageDetail_20' ) end [2025-02-08 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:35:23] Production.INFO: ==16842== Releasing lock... [2025-02-08 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:35:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:36:05 [end_date_ymd] => 2025-02-08 15:36:05 [RateCDR] => 1 ) [2025-02-08 15:36: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` >= '2025-02-08 12:36:05' and `end` < '2025-02-08 15:36: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 ,'') [2025-02-08 15:36:18] Production.INFO: count ==1837 [2025-02-08 15:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:36:05 - End Time 2025-02-08 15:36:05 [2025-02-08 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430675', 'tblTempUsageDetail_20' ) start [2025-02-08 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430675', 'tblTempUsageDetail_20' ) end [2025-02-08 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430675', 'tblTempVendorCDR_20' ) start [2025-02-08 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430675', 'tblTempVendorCDR_20' ) end [2025-02-08 15:36:19] Production.INFO: ProcessCDR(1,14430675,1,1,2) [2025-02-08 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430675', 'tblTempUsageDetail_20' ) start [2025-02-08 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430675', 'tblTempUsageDetail_20' ) end [2025-02-08 15:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:36:24] Production.INFO: ==16957== Releasing lock... [2025-02-08 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:36:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:37:05 [end_date_ymd] => 2025-02-08 15:37:05 [RateCDR] => 1 ) [2025-02-08 15:37: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` >= '2025-02-08 12:37:05' and `end` < '2025-02-08 15:37: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 ,'') [2025-02-08 15:37:18] Production.INFO: count ==1840 [2025-02-08 15:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:37:05 - End Time 2025-02-08 15:37:05 [2025-02-08 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430680', 'tblTempUsageDetail_20' ) start [2025-02-08 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430680', 'tblTempUsageDetail_20' ) end [2025-02-08 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430680', 'tblTempVendorCDR_20' ) start [2025-02-08 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430680', 'tblTempVendorCDR_20' ) end [2025-02-08 15:37:19] Production.INFO: ProcessCDR(1,14430680,1,1,2) [2025-02-08 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430680', 'tblTempUsageDetail_20' ) start [2025-02-08 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430680', 'tblTempUsageDetail_20' ) end [2025-02-08 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:37:23] Production.INFO: ==17043== Releasing lock... [2025-02-08 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:37:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:38:05 [end_date_ymd] => 2025-02-08 15:38:05 [RateCDR] => 1 ) [2025-02-08 15:38: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` >= '2025-02-08 12:38:05' and `end` < '2025-02-08 15:38: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 ,'') [2025-02-08 15:38:19] Production.INFO: count ==1846 [2025-02-08 15:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:38:05 - End Time 2025-02-08 15:38:05 [2025-02-08 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430685', 'tblTempUsageDetail_20' ) start [2025-02-08 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430685', 'tblTempUsageDetail_20' ) end [2025-02-08 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430685', 'tblTempVendorCDR_20' ) start [2025-02-08 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430685', 'tblTempVendorCDR_20' ) end [2025-02-08 15:38:19] Production.INFO: ProcessCDR(1,14430685,1,1,2) [2025-02-08 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430685', 'tblTempUsageDetail_20' ) start [2025-02-08 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430685', 'tblTempUsageDetail_20' ) end [2025-02-08 15:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:38:24] Production.INFO: ==17122== Releasing lock... [2025-02-08 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:38:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:39:04 [end_date_ymd] => 2025-02-08 15:39:04 [RateCDR] => 1 ) [2025-02-08 15:39:04] 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-02-08 12:39:04' and `end` < '2025-02-08 15:39:04' 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-02-08 15:39:18] Production.INFO: count ==1834 [2025-02-08 15:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:39:04 - End Time 2025-02-08 15:39:04 [2025-02-08 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430690', 'tblTempUsageDetail_20' ) start [2025-02-08 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430690', 'tblTempUsageDetail_20' ) end [2025-02-08 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430690', 'tblTempVendorCDR_20' ) start [2025-02-08 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430690', 'tblTempVendorCDR_20' ) end [2025-02-08 15:39:19] Production.INFO: ProcessCDR(1,14430690,1,1,2) [2025-02-08 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430690', 'tblTempUsageDetail_20' ) start [2025-02-08 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430690', 'tblTempUsageDetail_20' ) end [2025-02-08 15:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:39:23] Production.INFO: ==17195== Releasing lock... [2025-02-08 15:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:39:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:40:07 [end_date_ymd] => 2025-02-08 15:40:07 [RateCDR] => 1 ) [2025-02-08 15:40: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-02-08 12:40:07' and `end` < '2025-02-08 15:40: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-02-08 15:40:20] Production.INFO: count ==1818 [2025-02-08 15:40:21] Production.ERROR: pbx CDR StartTime 2025-02-08 12:40:07 - End Time 2025-02-08 15:40:07 [2025-02-08 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430696', 'tblTempUsageDetail_20' ) start [2025-02-08 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430696', 'tblTempUsageDetail_20' ) end [2025-02-08 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430696', 'tblTempVendorCDR_20' ) start [2025-02-08 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430696', 'tblTempVendorCDR_20' ) end [2025-02-08 15:40:21] Production.INFO: ProcessCDR(1,14430696,1,1,2) [2025-02-08 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430696', 'tblTempUsageDetail_20' ) start [2025-02-08 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430696', 'tblTempUsageDetail_20' ) end [2025-02-08 15:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:40:26] Production.INFO: ==17279== Releasing lock... [2025-02-08 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:40:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:41:05 [end_date_ymd] => 2025-02-08 15:41:05 [RateCDR] => 1 ) [2025-02-08 15:41: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` >= '2025-02-08 12:41:05' and `end` < '2025-02-08 15:41: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 ,'') [2025-02-08 15:41:18] Production.INFO: count ==1797 [2025-02-08 15:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:41:05 - End Time 2025-02-08 15:41:05 [2025-02-08 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430701', 'tblTempUsageDetail_20' ) start [2025-02-08 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430701', 'tblTempUsageDetail_20' ) end [2025-02-08 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430701', 'tblTempVendorCDR_20' ) start [2025-02-08 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430701', 'tblTempVendorCDR_20' ) end [2025-02-08 15:41:19] Production.INFO: ProcessCDR(1,14430701,1,1,2) [2025-02-08 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430701', 'tblTempUsageDetail_20' ) start [2025-02-08 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430701', 'tblTempUsageDetail_20' ) end [2025-02-08 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:41:23] Production.INFO: ==17364== Releasing lock... [2025-02-08 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:41:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:42:04 [end_date_ymd] => 2025-02-08 15:42:04 [RateCDR] => 1 ) [2025-02-08 15:42:04] 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-02-08 12:42:04' and `end` < '2025-02-08 15:42:04' 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-02-08 15:42:17] Production.INFO: count ==1795 [2025-02-08 15:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 12:42:04 - End Time 2025-02-08 15:42:04 [2025-02-08 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430702', 'tblTempUsageDetail_20' ) start [2025-02-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430702', 'tblTempUsageDetail_20' ) end [2025-02-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430702', 'tblTempVendorCDR_20' ) start [2025-02-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430702', 'tblTempVendorCDR_20' ) end [2025-02-08 15:42:18] Production.INFO: ProcessCDR(1,14430702,1,1,2) [2025-02-08 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430702', 'tblTempUsageDetail_20' ) start [2025-02-08 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430702', 'tblTempUsageDetail_20' ) end [2025-02-08 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:42:23] Production.INFO: ==17442== Releasing lock... [2025-02-08 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:42:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:43:05 [end_date_ymd] => 2025-02-08 15:43:05 [RateCDR] => 1 ) [2025-02-08 15:43: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` >= '2025-02-08 12:43:05' and `end` < '2025-02-08 15:43: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 ,'') [2025-02-08 15:43:18] Production.INFO: count ==1784 [2025-02-08 15:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 12:43:05 - End Time 2025-02-08 15:43:05 [2025-02-08 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430711', 'tblTempUsageDetail_20' ) start [2025-02-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430711', 'tblTempUsageDetail_20' ) end [2025-02-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430711', 'tblTempVendorCDR_20' ) start [2025-02-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430711', 'tblTempVendorCDR_20' ) end [2025-02-08 15:43:18] Production.INFO: ProcessCDR(1,14430711,1,1,2) [2025-02-08 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430711', 'tblTempUsageDetail_20' ) start [2025-02-08 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430711', 'tblTempUsageDetail_20' ) end [2025-02-08 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:43:22] Production.INFO: ==17516== Releasing lock... [2025-02-08 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:43:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:44:04 [end_date_ymd] => 2025-02-08 15:44:04 [RateCDR] => 1 ) [2025-02-08 15:44:04] 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-02-08 12:44:04' and `end` < '2025-02-08 15:44:04' 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-02-08 15:44:19] Production.INFO: count ==1786 [2025-02-08 15:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:44:04 - End Time 2025-02-08 15:44:04 [2025-02-08 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430716', 'tblTempUsageDetail_20' ) start [2025-02-08 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430716', 'tblTempUsageDetail_20' ) end [2025-02-08 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430716', 'tblTempVendorCDR_20' ) start [2025-02-08 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430716', 'tblTempVendorCDR_20' ) end [2025-02-08 15:44:19] Production.INFO: ProcessCDR(1,14430716,1,1,2) [2025-02-08 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430716', 'tblTempUsageDetail_20' ) start [2025-02-08 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430716', 'tblTempUsageDetail_20' ) end [2025-02-08 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:44:24] Production.INFO: ==17588== Releasing lock... [2025-02-08 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:44:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:45:05 [end_date_ymd] => 2025-02-08 15:45:05 [RateCDR] => 1 ) [2025-02-08 15:45: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` >= '2025-02-08 12:45:05' and `end` < '2025-02-08 15:45: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 ,'') [2025-02-08 15:45:19] Production.INFO: count ==1791 [2025-02-08 15:45:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:45:05 - End Time 2025-02-08 15:45:05 [2025-02-08 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430721', 'tblTempUsageDetail_20' ) start [2025-02-08 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430721', 'tblTempUsageDetail_20' ) end [2025-02-08 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430721', 'tblTempVendorCDR_20' ) start [2025-02-08 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430721', 'tblTempVendorCDR_20' ) end [2025-02-08 15:45:20] Production.INFO: ProcessCDR(1,14430721,1,1,2) [2025-02-08 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430721', 'tblTempUsageDetail_20' ) start [2025-02-08 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430721', 'tblTempUsageDetail_20' ) end [2025-02-08 15:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:45:24] Production.INFO: ==17667== Releasing lock... [2025-02-08 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:45:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:46:05 [end_date_ymd] => 2025-02-08 15:46:05 [RateCDR] => 1 ) [2025-02-08 15:46: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` >= '2025-02-08 12:46:05' and `end` < '2025-02-08 15:46: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 ,'') [2025-02-08 15:46:18] Production.INFO: count ==1790 [2025-02-08 15:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 12:46:05 - End Time 2025-02-08 15:46:05 [2025-02-08 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430726', 'tblTempUsageDetail_20' ) start [2025-02-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430726', 'tblTempUsageDetail_20' ) end [2025-02-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430726', 'tblTempVendorCDR_20' ) start [2025-02-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430726', 'tblTempVendorCDR_20' ) end [2025-02-08 15:46:18] Production.INFO: ProcessCDR(1,14430726,1,1,2) [2025-02-08 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430726', 'tblTempUsageDetail_20' ) start [2025-02-08 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430726', 'tblTempUsageDetail_20' ) end [2025-02-08 15:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:46:22] Production.INFO: ==17745== Releasing lock... [2025-02-08 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:46:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:47:05 [end_date_ymd] => 2025-02-08 15:47:05 [RateCDR] => 1 ) [2025-02-08 15:47: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` >= '2025-02-08 12:47:05' and `end` < '2025-02-08 15:47: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 ,'') [2025-02-08 15:47:18] Production.INFO: count ==1795 [2025-02-08 15:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:47:05 - End Time 2025-02-08 15:47:05 [2025-02-08 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430731', 'tblTempUsageDetail_20' ) start [2025-02-08 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430731', 'tblTempUsageDetail_20' ) end [2025-02-08 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430731', 'tblTempVendorCDR_20' ) start [2025-02-08 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430731', 'tblTempVendorCDR_20' ) end [2025-02-08 15:47:19] Production.INFO: ProcessCDR(1,14430731,1,1,2) [2025-02-08 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430731', 'tblTempUsageDetail_20' ) start [2025-02-08 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430731', 'tblTempUsageDetail_20' ) end [2025-02-08 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:47:24] Production.INFO: ==17835== Releasing lock... [2025-02-08 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:48:04 [end_date_ymd] => 2025-02-08 15:48:04 [RateCDR] => 1 ) [2025-02-08 15:48:04] 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-02-08 12:48:04' and `end` < '2025-02-08 15:48:04' 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-02-08 15:48:18] Production.INFO: count ==1800 [2025-02-08 15:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:48:04 - End Time 2025-02-08 15:48:04 [2025-02-08 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430736', 'tblTempUsageDetail_20' ) start [2025-02-08 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430736', 'tblTempUsageDetail_20' ) end [2025-02-08 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430736', 'tblTempVendorCDR_20' ) start [2025-02-08 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430736', 'tblTempVendorCDR_20' ) end [2025-02-08 15:48:19] Production.INFO: ProcessCDR(1,14430736,1,1,2) [2025-02-08 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430736', 'tblTempUsageDetail_20' ) start [2025-02-08 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430736', 'tblTempUsageDetail_20' ) end [2025-02-08 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:48:23] Production.INFO: ==17935== Releasing lock... [2025-02-08 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:49:05 [end_date_ymd] => 2025-02-08 15:49:05 [RateCDR] => 1 ) [2025-02-08 15:49: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` >= '2025-02-08 12:49:05' and `end` < '2025-02-08 15:49: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 ,'') [2025-02-08 15:49:18] Production.INFO: count ==1801 [2025-02-08 15:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 12:49:05 - End Time 2025-02-08 15:49:05 [2025-02-08 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430741', 'tblTempUsageDetail_20' ) start [2025-02-08 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430741', 'tblTempUsageDetail_20' ) end [2025-02-08 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430741', 'tblTempVendorCDR_20' ) start [2025-02-08 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430741', 'tblTempVendorCDR_20' ) end [2025-02-08 15:49:18] Production.INFO: ProcessCDR(1,14430741,1,1,2) [2025-02-08 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430741', 'tblTempUsageDetail_20' ) start [2025-02-08 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430741', 'tblTempUsageDetail_20' ) end [2025-02-08 15:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:49:23] Production.INFO: ==18037== Releasing lock... [2025-02-08 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:49:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:50:06 [end_date_ymd] => 2025-02-08 15:50:06 [RateCDR] => 1 ) [2025-02-08 15:50: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-02-08 12:50:06' and `end` < '2025-02-08 15:50: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-02-08 15:50:20] Production.INFO: count ==1803 [2025-02-08 15:50:21] Production.ERROR: pbx CDR StartTime 2025-02-08 12:50:06 - End Time 2025-02-08 15:50:06 [2025-02-08 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430747', 'tblTempUsageDetail_20' ) start [2025-02-08 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430747', 'tblTempUsageDetail_20' ) end [2025-02-08 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430747', 'tblTempVendorCDR_20' ) start [2025-02-08 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430747', 'tblTempVendorCDR_20' ) end [2025-02-08 15:50:21] Production.INFO: ProcessCDR(1,14430747,1,1,2) [2025-02-08 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430747', 'tblTempUsageDetail_20' ) start [2025-02-08 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430747', 'tblTempUsageDetail_20' ) end [2025-02-08 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:50:25] Production.INFO: ==18142== Releasing lock... [2025-02-08 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:50:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:51:05 [end_date_ymd] => 2025-02-08 15:51:05 [RateCDR] => 1 ) [2025-02-08 15:51: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` >= '2025-02-08 12:51:05' and `end` < '2025-02-08 15:51: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 ,'') [2025-02-08 15:51:18] Production.INFO: count ==1807 [2025-02-08 15:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:51:05 - End Time 2025-02-08 15:51:05 [2025-02-08 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430752', 'tblTempUsageDetail_20' ) start [2025-02-08 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430752', 'tblTempUsageDetail_20' ) end [2025-02-08 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430752', 'tblTempVendorCDR_20' ) start [2025-02-08 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430752', 'tblTempVendorCDR_20' ) end [2025-02-08 15:51:19] Production.INFO: ProcessCDR(1,14430752,1,1,2) [2025-02-08 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430752', 'tblTempUsageDetail_20' ) start [2025-02-08 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430752', 'tblTempUsageDetail_20' ) end [2025-02-08 15:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:51:24] Production.INFO: ==18286== Releasing lock... [2025-02-08 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:51:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:52:05 [end_date_ymd] => 2025-02-08 15:52:05 [RateCDR] => 1 ) [2025-02-08 15:52: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` >= '2025-02-08 12:52:05' and `end` < '2025-02-08 15:52: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 ,'') [2025-02-08 15:52:19] Production.INFO: count ==1808 [2025-02-08 15:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:52:05 - End Time 2025-02-08 15:52:05 [2025-02-08 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430757', 'tblTempUsageDetail_20' ) start [2025-02-08 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430757', 'tblTempUsageDetail_20' ) end [2025-02-08 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430757', 'tblTempVendorCDR_20' ) start [2025-02-08 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430757', 'tblTempVendorCDR_20' ) end [2025-02-08 15:52:19] Production.INFO: ProcessCDR(1,14430757,1,1,2) [2025-02-08 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430757', 'tblTempUsageDetail_20' ) start [2025-02-08 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430757', 'tblTempUsageDetail_20' ) end [2025-02-08 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:52:22] Production.INFO: ==18385== Releasing lock... [2025-02-08 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:52:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:53:05 [end_date_ymd] => 2025-02-08 15:53:05 [RateCDR] => 1 ) [2025-02-08 15:53: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` >= '2025-02-08 12:53:05' and `end` < '2025-02-08 15:53: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 ,'') [2025-02-08 15:53:18] Production.INFO: count ==1810 [2025-02-08 15:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 12:53:05 - End Time 2025-02-08 15:53:05 [2025-02-08 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430762', 'tblTempUsageDetail_20' ) start [2025-02-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430762', 'tblTempUsageDetail_20' ) end [2025-02-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430762', 'tblTempVendorCDR_20' ) start [2025-02-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430762', 'tblTempVendorCDR_20' ) end [2025-02-08 15:53:18] Production.INFO: ProcessCDR(1,14430762,1,1,2) [2025-02-08 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430762', 'tblTempUsageDetail_20' ) start [2025-02-08 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430762', 'tblTempUsageDetail_20' ) end [2025-02-08 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:53:22] Production.INFO: ==18488== Releasing lock... [2025-02-08 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:53:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:54:05 [end_date_ymd] => 2025-02-08 15:54:05 [RateCDR] => 1 ) [2025-02-08 15:54: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` >= '2025-02-08 12:54:05' and `end` < '2025-02-08 15:54: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 ,'') [2025-02-08 15:54:18] Production.INFO: count ==1821 [2025-02-08 15:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:54:05 - End Time 2025-02-08 15:54:05 [2025-02-08 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430767', 'tblTempUsageDetail_20' ) start [2025-02-08 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430767', 'tblTempUsageDetail_20' ) end [2025-02-08 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430767', 'tblTempVendorCDR_20' ) start [2025-02-08 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430767', 'tblTempVendorCDR_20' ) end [2025-02-08 15:54:19] Production.INFO: ProcessCDR(1,14430767,1,1,2) [2025-02-08 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430767', 'tblTempUsageDetail_20' ) start [2025-02-08 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430767', 'tblTempUsageDetail_20' ) end [2025-02-08 15:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:54:24] Production.INFO: ==18590== Releasing lock... [2025-02-08 15:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:54:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:55:05 [end_date_ymd] => 2025-02-08 15:55:05 [RateCDR] => 1 ) [2025-02-08 15:55: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` >= '2025-02-08 12:55:05' and `end` < '2025-02-08 15:55: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 ,'') [2025-02-08 15:55:18] Production.INFO: count ==1821 [2025-02-08 15:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:55:05 - End Time 2025-02-08 15:55:05 [2025-02-08 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430772', 'tblTempUsageDetail_20' ) start [2025-02-08 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430772', 'tblTempUsageDetail_20' ) end [2025-02-08 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430772', 'tblTempVendorCDR_20' ) start [2025-02-08 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430772', 'tblTempVendorCDR_20' ) end [2025-02-08 15:55:19] Production.INFO: ProcessCDR(1,14430772,1,1,2) [2025-02-08 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430772', 'tblTempUsageDetail_20' ) start [2025-02-08 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430772', 'tblTempUsageDetail_20' ) end [2025-02-08 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:55:22] Production.INFO: ==18689== Releasing lock... [2025-02-08 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:55:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:56:05 [end_date_ymd] => 2025-02-08 15:56:05 [RateCDR] => 1 ) [2025-02-08 15:56: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` >= '2025-02-08 12:56:05' and `end` < '2025-02-08 15:56: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 ,'') [2025-02-08 15:56:18] Production.INFO: count ==1823 [2025-02-08 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:56:05 - End Time 2025-02-08 15:56:05 [2025-02-08 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430777', 'tblTempUsageDetail_20' ) start [2025-02-08 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430777', 'tblTempUsageDetail_20' ) end [2025-02-08 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430777', 'tblTempVendorCDR_20' ) start [2025-02-08 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430777', 'tblTempVendorCDR_20' ) end [2025-02-08 15:56:19] Production.INFO: ProcessCDR(1,14430777,1,1,2) [2025-02-08 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430777', 'tblTempUsageDetail_20' ) start [2025-02-08 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430777', 'tblTempUsageDetail_20' ) end [2025-02-08 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:56:23] Production.INFO: ==18796== Releasing lock... [2025-02-08 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:56:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:57:05 [end_date_ymd] => 2025-02-08 15:57:05 [RateCDR] => 1 ) [2025-02-08 15:57: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` >= '2025-02-08 12:57:05' and `end` < '2025-02-08 15:57: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 ,'') [2025-02-08 15:57:19] Production.INFO: count ==1829 [2025-02-08 15:57:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:57:05 - End Time 2025-02-08 15:57:05 [2025-02-08 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430782', 'tblTempUsageDetail_20' ) start [2025-02-08 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430782', 'tblTempUsageDetail_20' ) end [2025-02-08 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430782', 'tblTempVendorCDR_20' ) start [2025-02-08 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430782', 'tblTempVendorCDR_20' ) end [2025-02-08 15:57:20] Production.INFO: ProcessCDR(1,14430782,1,1,2) [2025-02-08 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430782', 'tblTempUsageDetail_20' ) start [2025-02-08 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430782', 'tblTempUsageDetail_20' ) end [2025-02-08 15:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:57:23] Production.INFO: ==18902== Releasing lock... [2025-02-08 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:57:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:58:05 [end_date_ymd] => 2025-02-08 15:58:05 [RateCDR] => 1 ) [2025-02-08 15:58: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` >= '2025-02-08 12:58:05' and `end` < '2025-02-08 15:58: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 ,'') [2025-02-08 15:58:18] Production.INFO: count ==1835 [2025-02-08 15:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 12:58:05 - End Time 2025-02-08 15:58:05 [2025-02-08 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430787', 'tblTempUsageDetail_20' ) start [2025-02-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430787', 'tblTempUsageDetail_20' ) end [2025-02-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430787', 'tblTempVendorCDR_20' ) start [2025-02-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430787', 'tblTempVendorCDR_20' ) end [2025-02-08 15:58:19] Production.INFO: ProcessCDR(1,14430787,1,1,2) [2025-02-08 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430787', 'tblTempUsageDetail_20' ) start [2025-02-08 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430787', 'tblTempUsageDetail_20' ) end [2025-02-08 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:58:22] Production.INFO: ==19005== Releasing lock... [2025-02-08 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:58:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 12:59:05 [end_date_ymd] => 2025-02-08 15:59:05 [RateCDR] => 1 ) [2025-02-08 15:59: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` >= '2025-02-08 12:59:05' and `end` < '2025-02-08 15:59: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 ,'') [2025-02-08 15:59:20] Production.INFO: count ==1831 [2025-02-08 15:59:20] Production.ERROR: pbx CDR StartTime 2025-02-08 12:59:05 - End Time 2025-02-08 15:59:05 [2025-02-08 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430792', 'tblTempUsageDetail_20' ) start [2025-02-08 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430792', 'tblTempUsageDetail_20' ) end [2025-02-08 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430792', 'tblTempVendorCDR_20' ) start [2025-02-08 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430792', 'tblTempVendorCDR_20' ) end [2025-02-08 15:59:20] Production.INFO: ProcessCDR(1,14430792,1,1,2) [2025-02-08 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430792', 'tblTempUsageDetail_20' ) start [2025-02-08 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430792', 'tblTempUsageDetail_20' ) end [2025-02-08 15:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 15:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 15:59:25] Production.INFO: ==19110== Releasing lock... [2025-02-08 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 15:59:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:00:06 [end_date_ymd] => 2025-02-08 16:00:06 [RateCDR] => 1 ) [2025-02-08 16: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-02-08 13:00:06' and `end` < '2025-02-08 16: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-02-08 16:00:19] Production.INFO: count ==1818 [2025-02-08 16:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:00:06 - End Time 2025-02-08 16:00:06 [2025-02-08 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430798', 'tblTempUsageDetail_20' ) start [2025-02-08 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430798', 'tblTempUsageDetail_20' ) end [2025-02-08 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430798', 'tblTempVendorCDR_20' ) start [2025-02-08 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430798', 'tblTempVendorCDR_20' ) end [2025-02-08 16:00:20] Production.INFO: ProcessCDR(1,14430798,1,1,2) [2025-02-08 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430798', 'tblTempUsageDetail_20' ) start [2025-02-08 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430798', 'tblTempUsageDetail_20' ) end [2025-02-08 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:00:23] Production.INFO: ==19224== Releasing lock... [2025-02-08 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:00:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:01:05 [end_date_ymd] => 2025-02-08 16:01:05 [RateCDR] => 1 ) [2025-02-08 16: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` >= '2025-02-08 13:01:05' and `end` < '2025-02-08 16: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 ,'') [2025-02-08 16:01:19] Production.INFO: count ==1819 [2025-02-08 16:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:01:05 - End Time 2025-02-08 16:01:05 [2025-02-08 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430803', 'tblTempUsageDetail_20' ) start [2025-02-08 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430803', 'tblTempUsageDetail_20' ) end [2025-02-08 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430803', 'tblTempVendorCDR_20' ) start [2025-02-08 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430803', 'tblTempVendorCDR_20' ) end [2025-02-08 16:01:19] Production.INFO: ProcessCDR(1,14430803,1,1,2) [2025-02-08 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430803', 'tblTempUsageDetail_20' ) start [2025-02-08 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430803', 'tblTempUsageDetail_20' ) end [2025-02-08 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:01:24] Production.INFO: ==19343== Releasing lock... [2025-02-08 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:01:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:02:06 [end_date_ymd] => 2025-02-08 16:02:06 [RateCDR] => 1 ) [2025-02-08 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 13:02:06' and `end` < '2025-02-08 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 16:02:20] Production.INFO: count ==1810 [2025-02-08 16:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:02:06 - End Time 2025-02-08 16:02:06 [2025-02-08 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430808', 'tblTempUsageDetail_20' ) start [2025-02-08 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430808', 'tblTempUsageDetail_20' ) end [2025-02-08 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430808', 'tblTempVendorCDR_20' ) start [2025-02-08 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430808', 'tblTempVendorCDR_20' ) end [2025-02-08 16:02:20] Production.INFO: ProcessCDR(1,14430808,1,1,2) [2025-02-08 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430808', 'tblTempUsageDetail_20' ) start [2025-02-08 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430808', 'tblTempUsageDetail_20' ) end [2025-02-08 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:02:25] Production.INFO: ==19447== Releasing lock... [2025-02-08 16:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:02:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:03:06 [end_date_ymd] => 2025-02-08 16:03:06 [RateCDR] => 1 ) [2025-02-08 16:03: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-02-08 13:03:06' and `end` < '2025-02-08 16:03: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-02-08 16:03:20] Production.INFO: count ==1820 [2025-02-08 16:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:03:06 - End Time 2025-02-08 16:03:06 [2025-02-08 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430813', 'tblTempUsageDetail_20' ) start [2025-02-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430813', 'tblTempUsageDetail_20' ) end [2025-02-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430813', 'tblTempVendorCDR_20' ) start [2025-02-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430813', 'tblTempVendorCDR_20' ) end [2025-02-08 16:03:21] Production.INFO: ProcessCDR(1,14430813,1,1,2) [2025-02-08 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430813', 'tblTempUsageDetail_20' ) start [2025-02-08 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430813', 'tblTempUsageDetail_20' ) end [2025-02-08 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:03:26] Production.INFO: ==19549== Releasing lock... [2025-02-08 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:03:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:04:06 [end_date_ymd] => 2025-02-08 16:04:06 [RateCDR] => 1 ) [2025-02-08 16:04: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-02-08 13:04:06' and `end` < '2025-02-08 16:04: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-02-08 16:04:20] Production.INFO: count ==1819 [2025-02-08 16:04:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:04:06 - End Time 2025-02-08 16:04:06 [2025-02-08 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430818', 'tblTempUsageDetail_20' ) start [2025-02-08 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430818', 'tblTempUsageDetail_20' ) end [2025-02-08 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430818', 'tblTempVendorCDR_20' ) start [2025-02-08 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430818', 'tblTempVendorCDR_20' ) end [2025-02-08 16:04:20] Production.INFO: ProcessCDR(1,14430818,1,1,2) [2025-02-08 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430818', 'tblTempUsageDetail_20' ) start [2025-02-08 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430818', 'tblTempUsageDetail_20' ) end [2025-02-08 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:04:26] Production.INFO: ==19654== Releasing lock... [2025-02-08 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:04:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:05:06 [end_date_ymd] => 2025-02-08 16:05:06 [RateCDR] => 1 ) [2025-02-08 16:05: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-02-08 13:05:06' and `end` < '2025-02-08 16:05: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-02-08 16:05:19] Production.INFO: count ==1814 [2025-02-08 16:05:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:05:06 - End Time 2025-02-08 16:05:06 [2025-02-08 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430823', 'tblTempUsageDetail_20' ) start [2025-02-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430823', 'tblTempUsageDetail_20' ) end [2025-02-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430823', 'tblTempVendorCDR_20' ) start [2025-02-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430823', 'tblTempVendorCDR_20' ) end [2025-02-08 16:05:20] Production.INFO: ProcessCDR(1,14430823,1,1,2) [2025-02-08 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430823', 'tblTempUsageDetail_20' ) start [2025-02-08 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430823', 'tblTempUsageDetail_20' ) end [2025-02-08 16:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:05:25] Production.INFO: ==19740== Releasing lock... [2025-02-08 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:05:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:06:05 [end_date_ymd] => 2025-02-08 16:06:05 [RateCDR] => 1 ) [2025-02-08 16:06: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` >= '2025-02-08 13:06:05' and `end` < '2025-02-08 16:06: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 ,'') [2025-02-08 16:06:18] Production.INFO: count ==1808 [2025-02-08 16:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:06:05 - End Time 2025-02-08 16:06:05 [2025-02-08 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430828', 'tblTempUsageDetail_20' ) start [2025-02-08 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430828', 'tblTempUsageDetail_20' ) end [2025-02-08 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430828', 'tblTempVendorCDR_20' ) start [2025-02-08 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430828', 'tblTempVendorCDR_20' ) end [2025-02-08 16:06:19] Production.INFO: ProcessCDR(1,14430828,1,1,2) [2025-02-08 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430828', 'tblTempUsageDetail_20' ) start [2025-02-08 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430828', 'tblTempUsageDetail_20' ) end [2025-02-08 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:06:24] Production.INFO: ==19853== Releasing lock... [2025-02-08 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:06:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:07:06 [end_date_ymd] => 2025-02-08 16:07:06 [RateCDR] => 1 ) [2025-02-08 16:07: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-02-08 13:07:06' and `end` < '2025-02-08 16:07: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-02-08 16:07:19] Production.INFO: count ==1807 [2025-02-08 16:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:07:06 - End Time 2025-02-08 16:07:06 [2025-02-08 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430833', 'tblTempUsageDetail_20' ) start [2025-02-08 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430833', 'tblTempUsageDetail_20' ) end [2025-02-08 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430833', 'tblTempVendorCDR_20' ) start [2025-02-08 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430833', 'tblTempVendorCDR_20' ) end [2025-02-08 16:07:20] Production.INFO: ProcessCDR(1,14430833,1,1,2) [2025-02-08 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430833', 'tblTempUsageDetail_20' ) start [2025-02-08 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430833', 'tblTempUsageDetail_20' ) end [2025-02-08 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:07:25] Production.INFO: ==19929== Releasing lock... [2025-02-08 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:07:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:08:05 [end_date_ymd] => 2025-02-08 16:08:05 [RateCDR] => 1 ) [2025-02-08 16:08: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` >= '2025-02-08 13:08:05' and `end` < '2025-02-08 16:08: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 ,'') [2025-02-08 16:08:18] Production.INFO: count ==1806 [2025-02-08 16:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:08:05 - End Time 2025-02-08 16:08:05 [2025-02-08 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430838', 'tblTempUsageDetail_20' ) start [2025-02-08 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430838', 'tblTempUsageDetail_20' ) end [2025-02-08 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430838', 'tblTempVendorCDR_20' ) start [2025-02-08 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430838', 'tblTempVendorCDR_20' ) end [2025-02-08 16:08:19] Production.INFO: ProcessCDR(1,14430838,1,1,2) [2025-02-08 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430838', 'tblTempUsageDetail_20' ) start [2025-02-08 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430838', 'tblTempUsageDetail_20' ) end [2025-02-08 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:08:24] Production.INFO: ==20062== Releasing lock... [2025-02-08 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:08:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:09:05 [end_date_ymd] => 2025-02-08 16:09:05 [RateCDR] => 1 ) [2025-02-08 16:09: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` >= '2025-02-08 13:09:05' and `end` < '2025-02-08 16:09: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 ,'') [2025-02-08 16:09:19] Production.INFO: count ==1808 [2025-02-08 16:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:09:05 - End Time 2025-02-08 16:09:05 [2025-02-08 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430843', 'tblTempUsageDetail_20' ) start [2025-02-08 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430843', 'tblTempUsageDetail_20' ) end [2025-02-08 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430843', 'tblTempVendorCDR_20' ) start [2025-02-08 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430843', 'tblTempVendorCDR_20' ) end [2025-02-08 16:09:19] Production.INFO: ProcessCDR(1,14430843,1,1,2) [2025-02-08 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430843', 'tblTempUsageDetail_20' ) start [2025-02-08 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430843', 'tblTempUsageDetail_20' ) end [2025-02-08 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:09:24] Production.INFO: ==20162== Releasing lock... [2025-02-08 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:09:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:10:05 [end_date_ymd] => 2025-02-08 16:10:05 [RateCDR] => 1 ) [2025-02-08 16:10: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` >= '2025-02-08 13:10:05' and `end` < '2025-02-08 16:10: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 ,'') [2025-02-08 16:10:20] Production.INFO: count ==1799 [2025-02-08 16:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:10:05 - End Time 2025-02-08 16:10:05 [2025-02-08 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430849', 'tblTempUsageDetail_20' ) start [2025-02-08 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430849', 'tblTempUsageDetail_20' ) end [2025-02-08 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430849', 'tblTempVendorCDR_20' ) start [2025-02-08 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430849', 'tblTempVendorCDR_20' ) end [2025-02-08 16:10:20] Production.INFO: ProcessCDR(1,14430849,1,1,2) [2025-02-08 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430849', 'tblTempUsageDetail_20' ) start [2025-02-08 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430849', 'tblTempUsageDetail_20' ) end [2025-02-08 16:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:10:25] Production.INFO: ==20238== Releasing lock... [2025-02-08 16:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:10:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:11:05 [end_date_ymd] => 2025-02-08 16:11:05 [RateCDR] => 1 ) [2025-02-08 16:11: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` >= '2025-02-08 13:11:05' and `end` < '2025-02-08 16:11: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 ,'') [2025-02-08 16:11:18] Production.INFO: count ==1801 [2025-02-08 16:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:11:05 - End Time 2025-02-08 16:11:05 [2025-02-08 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430854', 'tblTempUsageDetail_20' ) start [2025-02-08 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430854', 'tblTempUsageDetail_20' ) end [2025-02-08 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430854', 'tblTempVendorCDR_20' ) start [2025-02-08 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430854', 'tblTempVendorCDR_20' ) end [2025-02-08 16:11:19] Production.INFO: ProcessCDR(1,14430854,1,1,2) [2025-02-08 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430854', 'tblTempUsageDetail_20' ) start [2025-02-08 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430854', 'tblTempUsageDetail_20' ) end [2025-02-08 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:11:23] Production.INFO: ==20318== Releasing lock... [2025-02-08 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:11:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:12:06 [end_date_ymd] => 2025-02-08 16:12:06 [RateCDR] => 1 ) [2025-02-08 16:12: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-02-08 13:12:06' and `end` < '2025-02-08 16:12: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-02-08 16:12:21] Production.INFO: count ==1800 [2025-02-08 16:12:21] Production.ERROR: pbx CDR StartTime 2025-02-08 13:12:06 - End Time 2025-02-08 16:12:06 [2025-02-08 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430859', 'tblTempUsageDetail_20' ) start [2025-02-08 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430859', 'tblTempUsageDetail_20' ) end [2025-02-08 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430859', 'tblTempVendorCDR_20' ) start [2025-02-08 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430859', 'tblTempVendorCDR_20' ) end [2025-02-08 16:12:21] Production.INFO: ProcessCDR(1,14430859,1,1,2) [2025-02-08 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430859', 'tblTempUsageDetail_20' ) start [2025-02-08 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430859', 'tblTempUsageDetail_20' ) end [2025-02-08 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:12:26] Production.INFO: ==20393== Releasing lock... [2025-02-08 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:12:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:13:05 [end_date_ymd] => 2025-02-08 16:13:05 [RateCDR] => 1 ) [2025-02-08 16:13: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` >= '2025-02-08 13:13:05' and `end` < '2025-02-08 16:13: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 ,'') [2025-02-08 16:13:18] Production.INFO: count ==1805 [2025-02-08 16:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:13:05 - End Time 2025-02-08 16:13:05 [2025-02-08 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430864', 'tblTempUsageDetail_20' ) start [2025-02-08 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430864', 'tblTempUsageDetail_20' ) end [2025-02-08 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430864', 'tblTempVendorCDR_20' ) start [2025-02-08 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430864', 'tblTempVendorCDR_20' ) end [2025-02-08 16:13:19] Production.INFO: ProcessCDR(1,14430864,1,1,2) [2025-02-08 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430864', 'tblTempUsageDetail_20' ) start [2025-02-08 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430864', 'tblTempUsageDetail_20' ) end [2025-02-08 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:13:23] Production.INFO: ==20470== Releasing lock... [2025-02-08 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:13:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:14:05 [end_date_ymd] => 2025-02-08 16:14:05 [RateCDR] => 1 ) [2025-02-08 16:14: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` >= '2025-02-08 13:14:05' and `end` < '2025-02-08 16:14: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 ,'') [2025-02-08 16:14:19] Production.INFO: count ==1795 [2025-02-08 16:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:14:05 - End Time 2025-02-08 16:14:05 [2025-02-08 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430869', 'tblTempUsageDetail_20' ) start [2025-02-08 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430869', 'tblTempUsageDetail_20' ) end [2025-02-08 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430869', 'tblTempVendorCDR_20' ) start [2025-02-08 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430869', 'tblTempVendorCDR_20' ) end [2025-02-08 16:14:20] Production.INFO: ProcessCDR(1,14430869,1,1,2) [2025-02-08 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430869', 'tblTempUsageDetail_20' ) start [2025-02-08 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430869', 'tblTempUsageDetail_20' ) end [2025-02-08 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:14:24] Production.INFO: ==20546== Releasing lock... [2025-02-08 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:14:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:15:04 [end_date_ymd] => 2025-02-08 16:15:04 [RateCDR] => 1 ) [2025-02-08 16:15:04] 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-02-08 13:15:04' and `end` < '2025-02-08 16:15:04' 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-02-08 16:15:19] Production.INFO: count ==1795 [2025-02-08 16:15:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:15:04 - End Time 2025-02-08 16:15:04 [2025-02-08 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430874', 'tblTempUsageDetail_20' ) start [2025-02-08 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430874', 'tblTempUsageDetail_20' ) end [2025-02-08 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430874', 'tblTempVendorCDR_20' ) start [2025-02-08 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430874', 'tblTempVendorCDR_20' ) end [2025-02-08 16:15:20] Production.INFO: ProcessCDR(1,14430874,1,1,2) [2025-02-08 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430874', 'tblTempUsageDetail_20' ) start [2025-02-08 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430874', 'tblTempUsageDetail_20' ) end [2025-02-08 16:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:15:25] Production.INFO: ==20621== Releasing lock... [2025-02-08 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:15:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:16:06 [end_date_ymd] => 2025-02-08 16:16:06 [RateCDR] => 1 ) [2025-02-08 16:16: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-02-08 13:16:06' and `end` < '2025-02-08 16:16: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-02-08 16:16:19] Production.INFO: count ==1806 [2025-02-08 16:16:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:16:06 - End Time 2025-02-08 16:16:06 [2025-02-08 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430879', 'tblTempUsageDetail_20' ) start [2025-02-08 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430879', 'tblTempUsageDetail_20' ) end [2025-02-08 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430879', 'tblTempVendorCDR_20' ) start [2025-02-08 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430879', 'tblTempVendorCDR_20' ) end [2025-02-08 16:16:20] Production.INFO: ProcessCDR(1,14430879,1,1,2) [2025-02-08 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430879', 'tblTempUsageDetail_20' ) start [2025-02-08 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430879', 'tblTempUsageDetail_20' ) end [2025-02-08 16:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:16:25] Production.INFO: ==20698== Releasing lock... [2025-02-08 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:16:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:17:05 [end_date_ymd] => 2025-02-08 16:17:05 [RateCDR] => 1 ) [2025-02-08 16:17: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` >= '2025-02-08 13:17:05' and `end` < '2025-02-08 16:17: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 ,'') [2025-02-08 16:17:18] Production.INFO: count ==1814 [2025-02-08 16:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:17:05 - End Time 2025-02-08 16:17:05 [2025-02-08 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430884', 'tblTempUsageDetail_20' ) start [2025-02-08 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430884', 'tblTempUsageDetail_20' ) end [2025-02-08 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430884', 'tblTempVendorCDR_20' ) start [2025-02-08 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430884', 'tblTempVendorCDR_20' ) end [2025-02-08 16:17:19] Production.INFO: ProcessCDR(1,14430884,1,1,2) [2025-02-08 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430884', 'tblTempUsageDetail_20' ) start [2025-02-08 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430884', 'tblTempUsageDetail_20' ) end [2025-02-08 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:17:23] Production.INFO: ==20774== Releasing lock... [2025-02-08 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:17:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:18:05 [end_date_ymd] => 2025-02-08 16:18:05 [RateCDR] => 1 ) [2025-02-08 16:18: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` >= '2025-02-08 13:18:05' and `end` < '2025-02-08 16:18: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 ,'') [2025-02-08 16:18:18] Production.INFO: count ==1812 [2025-02-08 16:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:18:05 - End Time 2025-02-08 16:18:05 [2025-02-08 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430889', 'tblTempUsageDetail_20' ) start [2025-02-08 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430889', 'tblTempUsageDetail_20' ) end [2025-02-08 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430889', 'tblTempVendorCDR_20' ) start [2025-02-08 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430889', 'tblTempVendorCDR_20' ) end [2025-02-08 16:18:19] Production.INFO: ProcessCDR(1,14430889,1,1,2) [2025-02-08 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430889', 'tblTempUsageDetail_20' ) start [2025-02-08 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430889', 'tblTempUsageDetail_20' ) end [2025-02-08 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:18:24] Production.INFO: ==20861== Releasing lock... [2025-02-08 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:18:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:19:04 [end_date_ymd] => 2025-02-08 16:19:04 [RateCDR] => 1 ) [2025-02-08 16:19:04] 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-02-08 13:19:04' and `end` < '2025-02-08 16:19:04' 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-02-08 16:19:18] Production.INFO: count ==1815 [2025-02-08 16:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:19:04 - End Time 2025-02-08 16:19:04 [2025-02-08 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430894', 'tblTempUsageDetail_20' ) start [2025-02-08 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430894', 'tblTempUsageDetail_20' ) end [2025-02-08 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430894', 'tblTempVendorCDR_20' ) start [2025-02-08 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430894', 'tblTempVendorCDR_20' ) end [2025-02-08 16:19:19] Production.INFO: ProcessCDR(1,14430894,1,1,2) [2025-02-08 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430894', 'tblTempUsageDetail_20' ) start [2025-02-08 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430894', 'tblTempUsageDetail_20' ) end [2025-02-08 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:19:23] Production.INFO: ==20937== Releasing lock... [2025-02-08 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:19:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:20:05 [end_date_ymd] => 2025-02-08 16:20:05 [RateCDR] => 1 ) [2025-02-08 16:20: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` >= '2025-02-08 13:20:05' and `end` < '2025-02-08 16:20: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 ,'') [2025-02-08 16:20:19] Production.INFO: count ==1819 [2025-02-08 16:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:20:05 - End Time 2025-02-08 16:20:05 [2025-02-08 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430899', 'tblTempUsageDetail_20' ) start [2025-02-08 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430899', 'tblTempUsageDetail_20' ) end [2025-02-08 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430899', 'tblTempVendorCDR_20' ) start [2025-02-08 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430899', 'tblTempVendorCDR_20' ) end [2025-02-08 16:20:20] Production.INFO: ProcessCDR(1,14430899,1,1,2) [2025-02-08 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430899', 'tblTempUsageDetail_20' ) start [2025-02-08 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430899', 'tblTempUsageDetail_20' ) end [2025-02-08 16:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:20:24] Production.INFO: ==21016== Releasing lock... [2025-02-08 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:20:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:21:06 [end_date_ymd] => 2025-02-08 16:21:06 [RateCDR] => 1 ) [2025-02-08 16:21: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-02-08 13:21:06' and `end` < '2025-02-08 16:21: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-02-08 16:21:19] Production.INFO: count ==1818 [2025-02-08 16:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:21:06 - End Time 2025-02-08 16:21:06 [2025-02-08 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430905', 'tblTempUsageDetail_20' ) start [2025-02-08 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430905', 'tblTempUsageDetail_20' ) end [2025-02-08 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430905', 'tblTempVendorCDR_20' ) start [2025-02-08 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430905', 'tblTempVendorCDR_20' ) end [2025-02-08 16:21:19] Production.INFO: ProcessCDR(1,14430905,1,1,2) [2025-02-08 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430905', 'tblTempUsageDetail_20' ) start [2025-02-08 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430905', 'tblTempUsageDetail_20' ) end [2025-02-08 16:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:21:24] Production.INFO: ==21094== Releasing lock... [2025-02-08 16:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:22:05 [end_date_ymd] => 2025-02-08 16:22:05 [RateCDR] => 1 ) [2025-02-08 16:22: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` >= '2025-02-08 13:22:05' and `end` < '2025-02-08 16:22: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 ,'') [2025-02-08 16:22:18] Production.INFO: count ==1824 [2025-02-08 16:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:22:05 - End Time 2025-02-08 16:22:05 [2025-02-08 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430910', 'tblTempUsageDetail_20' ) start [2025-02-08 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430910', 'tblTempUsageDetail_20' ) end [2025-02-08 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430910', 'tblTempVendorCDR_20' ) start [2025-02-08 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430910', 'tblTempVendorCDR_20' ) end [2025-02-08 16:22:19] Production.INFO: ProcessCDR(1,14430910,1,1,2) [2025-02-08 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430910', 'tblTempUsageDetail_20' ) start [2025-02-08 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430910', 'tblTempUsageDetail_20' ) end [2025-02-08 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:22:24] Production.INFO: ==21207== Releasing lock... [2025-02-08 16:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:23:05 [end_date_ymd] => 2025-02-08 16:23:05 [RateCDR] => 1 ) [2025-02-08 16:23: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` >= '2025-02-08 13:23:05' and `end` < '2025-02-08 16:23: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 ,'') [2025-02-08 16:23:20] Production.INFO: count ==1832 [2025-02-08 16:23:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:23:05 - End Time 2025-02-08 16:23:05 [2025-02-08 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430915', 'tblTempUsageDetail_20' ) start [2025-02-08 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430915', 'tblTempUsageDetail_20' ) end [2025-02-08 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430915', 'tblTempVendorCDR_20' ) start [2025-02-08 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430915', 'tblTempVendorCDR_20' ) end [2025-02-08 16:23:20] Production.INFO: ProcessCDR(1,14430915,1,1,2) [2025-02-08 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430915', 'tblTempUsageDetail_20' ) start [2025-02-08 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430915', 'tblTempUsageDetail_20' ) end [2025-02-08 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:23:25] Production.INFO: ==21285== Releasing lock... [2025-02-08 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:23:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:24:04 [end_date_ymd] => 2025-02-08 16:24:04 [RateCDR] => 1 ) [2025-02-08 16:24: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` >= '2025-02-08 13:24:04' and `end` < '2025-02-08 16:24:04' 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-02-08 16:24:18] Production.INFO: count ==1835 [2025-02-08 16:24:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:24:04 - End Time 2025-02-08 16:24:04 [2025-02-08 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430920', 'tblTempUsageDetail_20' ) start [2025-02-08 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430920', 'tblTempUsageDetail_20' ) end [2025-02-08 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430920', 'tblTempVendorCDR_20' ) start [2025-02-08 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430920', 'tblTempVendorCDR_20' ) end [2025-02-08 16:24:18] Production.INFO: ProcessCDR(1,14430920,1,1,2) [2025-02-08 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430920', 'tblTempUsageDetail_20' ) start [2025-02-08 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430920', 'tblTempUsageDetail_20' ) end [2025-02-08 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:24:23] Production.INFO: ==21360== Releasing lock... [2025-02-08 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:24:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:25:05 [end_date_ymd] => 2025-02-08 16:25:05 [RateCDR] => 1 ) [2025-02-08 16:25: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` >= '2025-02-08 13:25:05' and `end` < '2025-02-08 16:25: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 ,'') [2025-02-08 16:25:18] Production.INFO: count ==1826 [2025-02-08 16:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:25:05 - End Time 2025-02-08 16:25:05 [2025-02-08 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430925', 'tblTempUsageDetail_20' ) start [2025-02-08 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430925', 'tblTempUsageDetail_20' ) end [2025-02-08 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430925', 'tblTempVendorCDR_20' ) start [2025-02-08 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430925', 'tblTempVendorCDR_20' ) end [2025-02-08 16:25:19] Production.INFO: ProcessCDR(1,14430925,1,1,2) [2025-02-08 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430925', 'tblTempUsageDetail_20' ) start [2025-02-08 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430925', 'tblTempUsageDetail_20' ) end [2025-02-08 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:25:23] Production.INFO: ==21435== Releasing lock... [2025-02-08 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:25:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:26:05 [end_date_ymd] => 2025-02-08 16:26:05 [RateCDR] => 1 ) [2025-02-08 16:26: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` >= '2025-02-08 13:26:05' and `end` < '2025-02-08 16:26: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 ,'') [2025-02-08 16:26:20] Production.INFO: count ==1819 [2025-02-08 16:26:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:26:05 - End Time 2025-02-08 16:26:05 [2025-02-08 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430930', 'tblTempUsageDetail_20' ) start [2025-02-08 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430930', 'tblTempUsageDetail_20' ) end [2025-02-08 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430930', 'tblTempVendorCDR_20' ) start [2025-02-08 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430930', 'tblTempVendorCDR_20' ) end [2025-02-08 16:26:20] Production.INFO: ProcessCDR(1,14430930,1,1,2) [2025-02-08 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430930', 'tblTempUsageDetail_20' ) start [2025-02-08 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430930', 'tblTempUsageDetail_20' ) end [2025-02-08 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:26:25] Production.INFO: ==21516== Releasing lock... [2025-02-08 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:26:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:27:05 [end_date_ymd] => 2025-02-08 16:27:05 [RateCDR] => 1 ) [2025-02-08 16:27: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` >= '2025-02-08 13:27:05' and `end` < '2025-02-08 16:27: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 ,'') [2025-02-08 16:27:19] Production.INFO: count ==1822 [2025-02-08 16:27:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:27:05 - End Time 2025-02-08 16:27:05 [2025-02-08 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430935', 'tblTempUsageDetail_20' ) start [2025-02-08 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430935', 'tblTempUsageDetail_20' ) end [2025-02-08 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430935', 'tblTempVendorCDR_20' ) start [2025-02-08 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430935', 'tblTempVendorCDR_20' ) end [2025-02-08 16:27:20] Production.INFO: ProcessCDR(1,14430935,1,1,2) [2025-02-08 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430935', 'tblTempUsageDetail_20' ) start [2025-02-08 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430935', 'tblTempUsageDetail_20' ) end [2025-02-08 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:27:25] Production.INFO: ==21591== Releasing lock... [2025-02-08 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:27:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:28:06 [end_date_ymd] => 2025-02-08 16:28:06 [RateCDR] => 1 ) [2025-02-08 16:28: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-02-08 13:28:06' and `end` < '2025-02-08 16:28: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-02-08 16:28:21] Production.INFO: count ==1832 [2025-02-08 16:28:21] Production.ERROR: pbx CDR StartTime 2025-02-08 13:28:06 - End Time 2025-02-08 16:28:06 [2025-02-08 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430940', 'tblTempUsageDetail_20' ) start [2025-02-08 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430940', 'tblTempUsageDetail_20' ) end [2025-02-08 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430940', 'tblTempVendorCDR_20' ) start [2025-02-08 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430940', 'tblTempVendorCDR_20' ) end [2025-02-08 16:28:21] Production.INFO: ProcessCDR(1,14430940,1,1,2) [2025-02-08 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430940', 'tblTempUsageDetail_20' ) start [2025-02-08 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430940', 'tblTempUsageDetail_20' ) end [2025-02-08 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:28:26] Production.INFO: ==21667== Releasing lock... [2025-02-08 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:28:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:29:05 [end_date_ymd] => 2025-02-08 16:29:05 [RateCDR] => 1 ) [2025-02-08 16:29: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` >= '2025-02-08 13:29:05' and `end` < '2025-02-08 16:29: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 ,'') [2025-02-08 16:29:18] Production.INFO: count ==1830 [2025-02-08 16:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:29:05 - End Time 2025-02-08 16:29:05 [2025-02-08 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430945', 'tblTempUsageDetail_20' ) start [2025-02-08 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430945', 'tblTempUsageDetail_20' ) end [2025-02-08 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430945', 'tblTempVendorCDR_20' ) start [2025-02-08 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430945', 'tblTempVendorCDR_20' ) end [2025-02-08 16:29:19] Production.INFO: ProcessCDR(1,14430945,1,1,2) [2025-02-08 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430945', 'tblTempUsageDetail_20' ) start [2025-02-08 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430945', 'tblTempUsageDetail_20' ) end [2025-02-08 16:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:29:24] Production.INFO: ==21745== Releasing lock... [2025-02-08 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:29:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:30:06 [end_date_ymd] => 2025-02-08 16:30:06 [RateCDR] => 1 ) [2025-02-08 16:30: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-02-08 13:30:06' and `end` < '2025-02-08 16:30: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-02-08 16:30:23] Production.INFO: count ==1828 [2025-02-08 16:30:24] Production.ERROR: pbx CDR StartTime 2025-02-08 13:30:06 - End Time 2025-02-08 16:30:06 [2025-02-08 16:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430951', 'tblTempUsageDetail_20' ) start [2025-02-08 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430951', 'tblTempUsageDetail_20' ) end [2025-02-08 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430951', 'tblTempVendorCDR_20' ) start [2025-02-08 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430951', 'tblTempVendorCDR_20' ) end [2025-02-08 16:30:24] Production.INFO: ProcessCDR(1,14430951,1,1,2) [2025-02-08 16:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430951', 'tblTempUsageDetail_20' ) start [2025-02-08 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430951', 'tblTempUsageDetail_20' ) end [2025-02-08 16:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:30:29] Production.INFO: ==21819== Releasing lock... [2025-02-08 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:30:29] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:31:05 [end_date_ymd] => 2025-02-08 16:31:05 [RateCDR] => 1 ) [2025-02-08 16:31: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` >= '2025-02-08 13:31:05' and `end` < '2025-02-08 16:31: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 ,'') [2025-02-08 16:31:18] Production.INFO: count ==1822 [2025-02-08 16:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:31:05 - End Time 2025-02-08 16:31:05 [2025-02-08 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430956', 'tblTempUsageDetail_20' ) start [2025-02-08 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430956', 'tblTempUsageDetail_20' ) end [2025-02-08 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430956', 'tblTempVendorCDR_20' ) start [2025-02-08 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430956', 'tblTempVendorCDR_20' ) end [2025-02-08 16:31:19] Production.INFO: ProcessCDR(1,14430956,1,1,2) [2025-02-08 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430956', 'tblTempUsageDetail_20' ) start [2025-02-08 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430956', 'tblTempUsageDetail_20' ) end [2025-02-08 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:31:23] Production.INFO: ==21899== Releasing lock... [2025-02-08 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:31:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:32:05 [end_date_ymd] => 2025-02-08 16:32:05 [RateCDR] => 1 ) [2025-02-08 16:32: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` >= '2025-02-08 13:32:05' and `end` < '2025-02-08 16:32: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 ,'') [2025-02-08 16:32:18] Production.INFO: count ==1828 [2025-02-08 16:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:32:05 - End Time 2025-02-08 16:32:05 [2025-02-08 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430961', 'tblTempUsageDetail_20' ) start [2025-02-08 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430961', 'tblTempUsageDetail_20' ) end [2025-02-08 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430961', 'tblTempVendorCDR_20' ) start [2025-02-08 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430961', 'tblTempVendorCDR_20' ) end [2025-02-08 16:32:19] Production.INFO: ProcessCDR(1,14430961,1,1,2) [2025-02-08 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430961', 'tblTempUsageDetail_20' ) start [2025-02-08 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430961', 'tblTempUsageDetail_20' ) end [2025-02-08 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:32:23] Production.INFO: ==21972== Releasing lock... [2025-02-08 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:33:05 [end_date_ymd] => 2025-02-08 16:33:05 [RateCDR] => 1 ) [2025-02-08 16:33: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` >= '2025-02-08 13:33:05' and `end` < '2025-02-08 16:33: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 ,'') [2025-02-08 16:33:20] Production.INFO: count ==1819 [2025-02-08 16:33:21] Production.ERROR: pbx CDR StartTime 2025-02-08 13:33:05 - End Time 2025-02-08 16:33:05 [2025-02-08 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430966', 'tblTempUsageDetail_20' ) start [2025-02-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430966', 'tblTempUsageDetail_20' ) end [2025-02-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430966', 'tblTempVendorCDR_20' ) start [2025-02-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430966', 'tblTempVendorCDR_20' ) end [2025-02-08 16:33:21] Production.INFO: ProcessCDR(1,14430966,1,1,2) [2025-02-08 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430966', 'tblTempUsageDetail_20' ) start [2025-02-08 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430966', 'tblTempUsageDetail_20' ) end [2025-02-08 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:33:25] Production.INFO: ==22048== Releasing lock... [2025-02-08 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:33:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:34:05 [end_date_ymd] => 2025-02-08 16:34:05 [RateCDR] => 1 ) [2025-02-08 16:34: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` >= '2025-02-08 13:34:05' and `end` < '2025-02-08 16:34: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 ,'') [2025-02-08 16:34:19] Production.INFO: count ==1816 [2025-02-08 16:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:34:05 - End Time 2025-02-08 16:34:05 [2025-02-08 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430971', 'tblTempUsageDetail_20' ) start [2025-02-08 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430971', 'tblTempUsageDetail_20' ) end [2025-02-08 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430971', 'tblTempVendorCDR_20' ) start [2025-02-08 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430971', 'tblTempVendorCDR_20' ) end [2025-02-08 16:34:19] Production.INFO: ProcessCDR(1,14430971,1,1,2) [2025-02-08 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430971', 'tblTempUsageDetail_20' ) start [2025-02-08 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430971', 'tblTempUsageDetail_20' ) end [2025-02-08 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:34:24] Production.INFO: ==22122== Releasing lock... [2025-02-08 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:34:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:35:05 [end_date_ymd] => 2025-02-08 16:35:05 [RateCDR] => 1 ) [2025-02-08 16:35: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` >= '2025-02-08 13:35:05' and `end` < '2025-02-08 16:35: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 ,'') [2025-02-08 16:35:18] Production.INFO: count ==1814 [2025-02-08 16:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:35:05 - End Time 2025-02-08 16:35:05 [2025-02-08 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430976', 'tblTempUsageDetail_20' ) start [2025-02-08 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430976', 'tblTempUsageDetail_20' ) end [2025-02-08 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430976', 'tblTempVendorCDR_20' ) start [2025-02-08 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430976', 'tblTempVendorCDR_20' ) end [2025-02-08 16:35:19] Production.INFO: ProcessCDR(1,14430976,1,1,2) [2025-02-08 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430976', 'tblTempUsageDetail_20' ) start [2025-02-08 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430976', 'tblTempUsageDetail_20' ) end [2025-02-08 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:35:24] Production.INFO: ==22201== Releasing lock... [2025-02-08 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:35:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:36:05 [end_date_ymd] => 2025-02-08 16:36:05 [RateCDR] => 1 ) [2025-02-08 16:36: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` >= '2025-02-08 13:36:05' and `end` < '2025-02-08 16:36: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 ,'') [2025-02-08 16:36:18] Production.INFO: count ==1816 [2025-02-08 16:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:36:05 - End Time 2025-02-08 16:36:05 [2025-02-08 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430981', 'tblTempUsageDetail_20' ) start [2025-02-08 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430981', 'tblTempUsageDetail_20' ) end [2025-02-08 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430981', 'tblTempVendorCDR_20' ) start [2025-02-08 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430981', 'tblTempVendorCDR_20' ) end [2025-02-08 16:36:19] Production.INFO: ProcessCDR(1,14430981,1,1,2) [2025-02-08 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430981', 'tblTempUsageDetail_20' ) start [2025-02-08 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430981', 'tblTempUsageDetail_20' ) end [2025-02-08 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:36:24] Production.INFO: ==22275== Releasing lock... [2025-02-08 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:36:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:37:05 [end_date_ymd] => 2025-02-08 16:37:05 [RateCDR] => 1 ) [2025-02-08 16:37: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` >= '2025-02-08 13:37:05' and `end` < '2025-02-08 16:37: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 ,'') [2025-02-08 16:37:18] Production.INFO: count ==1813 [2025-02-08 16:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:37:05 - End Time 2025-02-08 16:37:05 [2025-02-08 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430986', 'tblTempUsageDetail_20' ) start [2025-02-08 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430986', 'tblTempUsageDetail_20' ) end [2025-02-08 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430986', 'tblTempVendorCDR_20' ) start [2025-02-08 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430986', 'tblTempVendorCDR_20' ) end [2025-02-08 16:37:19] Production.INFO: ProcessCDR(1,14430986,1,1,2) [2025-02-08 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430986', 'tblTempUsageDetail_20' ) start [2025-02-08 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430986', 'tblTempUsageDetail_20' ) end [2025-02-08 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:37:23] Production.INFO: ==22386== Releasing lock... [2025-02-08 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:37:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:38:05 [end_date_ymd] => 2025-02-08 16:38:05 [RateCDR] => 1 ) [2025-02-08 16:38: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` >= '2025-02-08 13:38:05' and `end` < '2025-02-08 16:38: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 ,'') [2025-02-08 16:38:19] Production.INFO: count ==1818 [2025-02-08 16:38:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:38:05 - End Time 2025-02-08 16:38:05 [2025-02-08 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430991', 'tblTempUsageDetail_20' ) start [2025-02-08 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430991', 'tblTempUsageDetail_20' ) end [2025-02-08 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430991', 'tblTempVendorCDR_20' ) start [2025-02-08 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430991', 'tblTempVendorCDR_20' ) end [2025-02-08 16:38:20] Production.INFO: ProcessCDR(1,14430991,1,1,2) [2025-02-08 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430991', 'tblTempUsageDetail_20' ) start [2025-02-08 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430991', 'tblTempUsageDetail_20' ) end [2025-02-08 16:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:38:24] Production.INFO: ==22461== Releasing lock... [2025-02-08 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:38:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:39:04 [end_date_ymd] => 2025-02-08 16:39:04 [RateCDR] => 1 ) [2025-02-08 16:39:04] 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-02-08 13:39:04' and `end` < '2025-02-08 16:39:04' 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-02-08 16:39:18] Production.INFO: count ==1817 [2025-02-08 16:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:39:04 - End Time 2025-02-08 16:39:04 [2025-02-08 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430996', 'tblTempUsageDetail_20' ) start [2025-02-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14430996', 'tblTempUsageDetail_20' ) end [2025-02-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430996', 'tblTempVendorCDR_20' ) start [2025-02-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14430996', 'tblTempVendorCDR_20' ) end [2025-02-08 16:39:18] Production.INFO: ProcessCDR(1,14430996,1,1,2) [2025-02-08 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14430996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14430996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14430996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14430996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430996', 'tblTempUsageDetail_20' ) start [2025-02-08 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14430996', 'tblTempUsageDetail_20' ) end [2025-02-08 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:39:23] Production.INFO: ==22538== Releasing lock... [2025-02-08 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:39:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:40:06 [end_date_ymd] => 2025-02-08 16:40:06 [RateCDR] => 1 ) [2025-02-08 16:40: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-02-08 13:40:06' and `end` < '2025-02-08 16:40: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-02-08 16:40:20] Production.INFO: count ==1807 [2025-02-08 16:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:40:06 - End Time 2025-02-08 16:40:06 [2025-02-08 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431002', 'tblTempUsageDetail_20' ) start [2025-02-08 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431002', 'tblTempUsageDetail_20' ) end [2025-02-08 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431002', 'tblTempVendorCDR_20' ) start [2025-02-08 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431002', 'tblTempVendorCDR_20' ) end [2025-02-08 16:40:20] Production.INFO: ProcessCDR(1,14431002,1,1,2) [2025-02-08 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431002', 'tblTempUsageDetail_20' ) start [2025-02-08 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431002', 'tblTempUsageDetail_20' ) end [2025-02-08 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:40:23] Production.INFO: ==22615== Releasing lock... [2025-02-08 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:40:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:41:04 [end_date_ymd] => 2025-02-08 16:41:04 [RateCDR] => 1 ) [2025-02-08 16:41:04] 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-02-08 13:41:04' and `end` < '2025-02-08 16:41:04' 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-02-08 16:41:17] Production.INFO: count ==1798 [2025-02-08 16:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:41:04 - End Time 2025-02-08 16:41:04 [2025-02-08 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431007', 'tblTempUsageDetail_20' ) start [2025-02-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431007', 'tblTempUsageDetail_20' ) end [2025-02-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431007', 'tblTempVendorCDR_20' ) start [2025-02-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431007', 'tblTempVendorCDR_20' ) end [2025-02-08 16:41:18] Production.INFO: ProcessCDR(1,14431007,1,1,2) [2025-02-08 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431007', 'tblTempUsageDetail_20' ) start [2025-02-08 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431007', 'tblTempUsageDetail_20' ) end [2025-02-08 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:41:23] Production.INFO: ==22690== Releasing lock... [2025-02-08 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:41:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:42:05 [end_date_ymd] => 2025-02-08 16:42:05 [RateCDR] => 1 ) [2025-02-08 16:42: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` >= '2025-02-08 13:42:05' and `end` < '2025-02-08 16:42: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 ,'') [2025-02-08 16:42:18] Production.INFO: count ==1793 [2025-02-08 16:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:42:05 - End Time 2025-02-08 16:42:05 [2025-02-08 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431012', 'tblTempUsageDetail_20' ) start [2025-02-08 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431012', 'tblTempUsageDetail_20' ) end [2025-02-08 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431012', 'tblTempVendorCDR_20' ) start [2025-02-08 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431012', 'tblTempVendorCDR_20' ) end [2025-02-08 16:42:19] Production.INFO: ProcessCDR(1,14431012,1,1,2) [2025-02-08 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431012', 'tblTempUsageDetail_20' ) start [2025-02-08 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431012', 'tblTempUsageDetail_20' ) end [2025-02-08 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:42:22] Production.INFO: ==22762== Releasing lock... [2025-02-08 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:42:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:43:06 [end_date_ymd] => 2025-02-08 16:43:06 [RateCDR] => 1 ) [2025-02-08 16:43: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-02-08 13:43:06' and `end` < '2025-02-08 16:43: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-02-08 16:43:19] Production.INFO: count ==1795 [2025-02-08 16:43:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:43:06 - End Time 2025-02-08 16:43:06 [2025-02-08 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431017', 'tblTempUsageDetail_20' ) start [2025-02-08 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431017', 'tblTempUsageDetail_20' ) end [2025-02-08 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431017', 'tblTempVendorCDR_20' ) start [2025-02-08 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431017', 'tblTempVendorCDR_20' ) end [2025-02-08 16:43:20] Production.INFO: ProcessCDR(1,14431017,1,1,2) [2025-02-08 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431017', 'tblTempUsageDetail_20' ) start [2025-02-08 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431017', 'tblTempUsageDetail_20' ) end [2025-02-08 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:43:24] Production.INFO: ==22833== Releasing lock... [2025-02-08 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:43:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:44:05 [end_date_ymd] => 2025-02-08 16:44:05 [RateCDR] => 1 ) [2025-02-08 16:44: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` >= '2025-02-08 13:44:05' and `end` < '2025-02-08 16:44: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 ,'') [2025-02-08 16:44:18] Production.INFO: count ==1797 [2025-02-08 16:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:44:05 - End Time 2025-02-08 16:44:05 [2025-02-08 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431022', 'tblTempUsageDetail_20' ) start [2025-02-08 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431022', 'tblTempUsageDetail_20' ) end [2025-02-08 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431022', 'tblTempVendorCDR_20' ) start [2025-02-08 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431022', 'tblTempVendorCDR_20' ) end [2025-02-08 16:44:19] Production.INFO: ProcessCDR(1,14431022,1,1,2) [2025-02-08 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431022', 'tblTempUsageDetail_20' ) start [2025-02-08 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431022', 'tblTempUsageDetail_20' ) end [2025-02-08 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:44:24] Production.INFO: ==22906== Releasing lock... [2025-02-08 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:45:05 [end_date_ymd] => 2025-02-08 16:45:05 [RateCDR] => 1 ) [2025-02-08 16:45: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` >= '2025-02-08 13:45:05' and `end` < '2025-02-08 16:45: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 ,'') [2025-02-08 16:45:18] Production.INFO: count ==1800 [2025-02-08 16:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:45:05 - End Time 2025-02-08 16:45:05 [2025-02-08 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431027', 'tblTempUsageDetail_20' ) start [2025-02-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431027', 'tblTempUsageDetail_20' ) end [2025-02-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431027', 'tblTempVendorCDR_20' ) start [2025-02-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431027', 'tblTempVendorCDR_20' ) end [2025-02-08 16:45:18] Production.INFO: ProcessCDR(1,14431027,1,1,2) [2025-02-08 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431027', 'tblTempUsageDetail_20' ) start [2025-02-08 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431027', 'tblTempUsageDetail_20' ) end [2025-02-08 16:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:45:23] Production.INFO: ==22981== Releasing lock... [2025-02-08 16:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:45:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:46:05 [end_date_ymd] => 2025-02-08 16:46:05 [RateCDR] => 1 ) [2025-02-08 16:46: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` >= '2025-02-08 13:46:05' and `end` < '2025-02-08 16:46: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 ,'') [2025-02-08 16:46:18] Production.INFO: count ==1779 [2025-02-08 16:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:46:05 - End Time 2025-02-08 16:46:05 [2025-02-08 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431032', 'tblTempUsageDetail_20' ) start [2025-02-08 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431032', 'tblTempUsageDetail_20' ) end [2025-02-08 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431032', 'tblTempVendorCDR_20' ) start [2025-02-08 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431032', 'tblTempVendorCDR_20' ) end [2025-02-08 16:46:19] Production.INFO: ProcessCDR(1,14431032,1,1,2) [2025-02-08 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431032', 'tblTempUsageDetail_20' ) start [2025-02-08 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431032', 'tblTempUsageDetail_20' ) end [2025-02-08 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:46:22] Production.INFO: ==23053== Releasing lock... [2025-02-08 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:46:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:47:05 [end_date_ymd] => 2025-02-08 16:47:05 [RateCDR] => 1 ) [2025-02-08 16:47: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` >= '2025-02-08 13:47:05' and `end` < '2025-02-08 16:47: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 ,'') [2025-02-08 16:47:18] Production.INFO: count ==1779 [2025-02-08 16:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:47:05 - End Time 2025-02-08 16:47:05 [2025-02-08 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431037', 'tblTempUsageDetail_20' ) start [2025-02-08 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431037', 'tblTempUsageDetail_20' ) end [2025-02-08 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431037', 'tblTempVendorCDR_20' ) start [2025-02-08 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431037', 'tblTempVendorCDR_20' ) end [2025-02-08 16:47:19] Production.INFO: ProcessCDR(1,14431037,1,1,2) [2025-02-08 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431037', 'tblTempUsageDetail_20' ) start [2025-02-08 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431037', 'tblTempUsageDetail_20' ) end [2025-02-08 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:47:22] Production.INFO: ==23126== Releasing lock... [2025-02-08 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:47:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:48:05 [end_date_ymd] => 2025-02-08 16:48:05 [RateCDR] => 1 ) [2025-02-08 16:48: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` >= '2025-02-08 13:48:05' and `end` < '2025-02-08 16:48: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 ,'') [2025-02-08 16:48:19] Production.INFO: count ==1778 [2025-02-08 16:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:48:05 - End Time 2025-02-08 16:48:05 [2025-02-08 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431042', 'tblTempUsageDetail_20' ) start [2025-02-08 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431042', 'tblTempUsageDetail_20' ) end [2025-02-08 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431042', 'tblTempVendorCDR_20' ) start [2025-02-08 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431042', 'tblTempVendorCDR_20' ) end [2025-02-08 16:48:19] Production.INFO: ProcessCDR(1,14431042,1,1,2) [2025-02-08 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431042', 'tblTempUsageDetail_20' ) start [2025-02-08 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431042', 'tblTempUsageDetail_20' ) end [2025-02-08 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:48:23] Production.INFO: ==23202== Releasing lock... [2025-02-08 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:49:05 [end_date_ymd] => 2025-02-08 16:49:05 [RateCDR] => 1 ) [2025-02-08 16:49: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` >= '2025-02-08 13:49:05' and `end` < '2025-02-08 16:49: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 ,'') [2025-02-08 16:49:20] Production.INFO: count ==1774 [2025-02-08 16:49:21] Production.ERROR: pbx CDR StartTime 2025-02-08 13:49:05 - End Time 2025-02-08 16:49:05 [2025-02-08 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431047', 'tblTempUsageDetail_20' ) start [2025-02-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431047', 'tblTempUsageDetail_20' ) end [2025-02-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431047', 'tblTempVendorCDR_20' ) start [2025-02-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431047', 'tblTempVendorCDR_20' ) end [2025-02-08 16:49:21] Production.INFO: ProcessCDR(1,14431047,1,1,2) [2025-02-08 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431047', 'tblTempUsageDetail_20' ) start [2025-02-08 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431047', 'tblTempUsageDetail_20' ) end [2025-02-08 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:49:24] Production.INFO: ==23275== Releasing lock... [2025-02-08 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:49:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:50:05 [end_date_ymd] => 2025-02-08 16:50:05 [RateCDR] => 1 ) [2025-02-08 16:50: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` >= '2025-02-08 13:50:05' and `end` < '2025-02-08 16:50: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 ,'') [2025-02-08 16:50:26] Production.INFO: count ==1776 [2025-02-08 16:50:26] Production.ERROR: pbx CDR StartTime 2025-02-08 13:50:05 - End Time 2025-02-08 16:50:05 [2025-02-08 16:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431052', 'tblTempUsageDetail_20' ) start [2025-02-08 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431052', 'tblTempUsageDetail_20' ) end [2025-02-08 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431052', 'tblTempVendorCDR_20' ) start [2025-02-08 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431052', 'tblTempVendorCDR_20' ) end [2025-02-08 16:50:26] Production.INFO: ProcessCDR(1,14431052,1,1,2) [2025-02-08 16:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431052', 'tblTempUsageDetail_20' ) start [2025-02-08 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431052', 'tblTempUsageDetail_20' ) end [2025-02-08 16:50:31] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:50:31] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:50:31] Production.INFO: ==23375== Releasing lock... [2025-02-08 16:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:50:31] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:51:05 [end_date_ymd] => 2025-02-08 16:51:05 [RateCDR] => 1 ) [2025-02-08 16:51: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` >= '2025-02-08 13:51:05' and `end` < '2025-02-08 16:51: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 ,'') [2025-02-08 16:51:22] Production.INFO: count ==1802 [2025-02-08 16:51:22] Production.ERROR: pbx CDR StartTime 2025-02-08 13:51:05 - End Time 2025-02-08 16:51:05 [2025-02-08 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431058', 'tblTempUsageDetail_20' ) start [2025-02-08 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431058', 'tblTempUsageDetail_20' ) end [2025-02-08 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431058', 'tblTempVendorCDR_20' ) start [2025-02-08 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431058', 'tblTempVendorCDR_20' ) end [2025-02-08 16:51:22] Production.INFO: ProcessCDR(1,14431058,1,1,2) [2025-02-08 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431058', 'tblTempUsageDetail_20' ) start [2025-02-08 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431058', 'tblTempUsageDetail_20' ) end [2025-02-08 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:51:27] Production.INFO: ==23515== Releasing lock... [2025-02-08 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:51:27] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:52:05 [end_date_ymd] => 2025-02-08 16:52:05 [RateCDR] => 1 ) [2025-02-08 16:52: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` >= '2025-02-08 13:52:05' and `end` < '2025-02-08 16:52: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 ,'') [2025-02-08 16:52:19] Production.INFO: count ==1798 [2025-02-08 16:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:52:05 - End Time 2025-02-08 16:52:05 [2025-02-08 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431063', 'tblTempUsageDetail_20' ) start [2025-02-08 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431063', 'tblTempUsageDetail_20' ) end [2025-02-08 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431063', 'tblTempVendorCDR_20' ) start [2025-02-08 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431063', 'tblTempVendorCDR_20' ) end [2025-02-08 16:52:19] Production.INFO: ProcessCDR(1,14431063,1,1,2) [2025-02-08 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431063', 'tblTempUsageDetail_20' ) start [2025-02-08 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431063', 'tblTempUsageDetail_20' ) end [2025-02-08 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:52:24] Production.INFO: ==23590== Releasing lock... [2025-02-08 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:52:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:53:06 [end_date_ymd] => 2025-02-08 16:53:06 [RateCDR] => 1 ) [2025-02-08 16:53: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-02-08 13:53:06' and `end` < '2025-02-08 16:53: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-02-08 16:53:19] Production.INFO: count ==1796 [2025-02-08 16:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:53:06 - End Time 2025-02-08 16:53:06 [2025-02-08 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431068', 'tblTempUsageDetail_20' ) start [2025-02-08 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431068', 'tblTempUsageDetail_20' ) end [2025-02-08 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431068', 'tblTempVendorCDR_20' ) start [2025-02-08 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431068', 'tblTempVendorCDR_20' ) end [2025-02-08 16:53:19] Production.INFO: ProcessCDR(1,14431068,1,1,2) [2025-02-08 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431068', 'tblTempUsageDetail_20' ) start [2025-02-08 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431068', 'tblTempUsageDetail_20' ) end [2025-02-08 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:53:24] Production.INFO: ==23707== Releasing lock... [2025-02-08 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:53:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:54:05 [end_date_ymd] => 2025-02-08 16:54:05 [RateCDR] => 1 ) [2025-02-08 16:54: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` >= '2025-02-08 13:54:05' and `end` < '2025-02-08 16:54: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 ,'') [2025-02-08 16:54:19] Production.INFO: count ==1805 [2025-02-08 16:54:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:54:05 - End Time 2025-02-08 16:54:05 [2025-02-08 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431073', 'tblTempUsageDetail_20' ) start [2025-02-08 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431073', 'tblTempUsageDetail_20' ) end [2025-02-08 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431073', 'tblTempVendorCDR_20' ) start [2025-02-08 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431073', 'tblTempVendorCDR_20' ) end [2025-02-08 16:54:20] Production.INFO: ProcessCDR(1,14431073,1,1,2) [2025-02-08 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431073', 'tblTempUsageDetail_20' ) start [2025-02-08 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431073', 'tblTempUsageDetail_20' ) end [2025-02-08 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:54:23] Production.INFO: ==23782== Releasing lock... [2025-02-08 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:54:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:55:05 [end_date_ymd] => 2025-02-08 16:55:05 [RateCDR] => 1 ) [2025-02-08 16:55: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` >= '2025-02-08 13:55:05' and `end` < '2025-02-08 16:55: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 ,'') [2025-02-08 16:55:20] Production.INFO: count ==1804 [2025-02-08 16:55:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:55:05 - End Time 2025-02-08 16:55:05 [2025-02-08 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431078', 'tblTempUsageDetail_20' ) start [2025-02-08 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431078', 'tblTempUsageDetail_20' ) end [2025-02-08 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431078', 'tblTempVendorCDR_20' ) start [2025-02-08 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431078', 'tblTempVendorCDR_20' ) end [2025-02-08 16:55:20] Production.INFO: ProcessCDR(1,14431078,1,1,2) [2025-02-08 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431078', 'tblTempUsageDetail_20' ) start [2025-02-08 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431078', 'tblTempUsageDetail_20' ) end [2025-02-08 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:55:24] Production.INFO: ==23862== Releasing lock... [2025-02-08 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:55:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:56:05 [end_date_ymd] => 2025-02-08 16:56:05 [RateCDR] => 1 ) [2025-02-08 16:56: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` >= '2025-02-08 13:56:05' and `end` < '2025-02-08 16:56: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 ,'') [2025-02-08 16:56:19] Production.INFO: count ==1802 [2025-02-08 16:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 13:56:05 - End Time 2025-02-08 16:56:05 [2025-02-08 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431083', 'tblTempUsageDetail_20' ) start [2025-02-08 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431083', 'tblTempUsageDetail_20' ) end [2025-02-08 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431083', 'tblTempVendorCDR_20' ) start [2025-02-08 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431083', 'tblTempVendorCDR_20' ) end [2025-02-08 16:56:19] Production.INFO: ProcessCDR(1,14431083,1,1,2) [2025-02-08 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431083', 'tblTempUsageDetail_20' ) start [2025-02-08 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431083', 'tblTempUsageDetail_20' ) end [2025-02-08 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:56:22] Production.INFO: ==23941== Releasing lock... [2025-02-08 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:56:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:57:04 [end_date_ymd] => 2025-02-08 16:57:04 [RateCDR] => 1 ) [2025-02-08 16:57:04] 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-02-08 13:57:04' and `end` < '2025-02-08 16:57:04' 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-02-08 16:57:18] Production.INFO: count ==1802 [2025-02-08 16:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:57:04 - End Time 2025-02-08 16:57:04 [2025-02-08 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431088', 'tblTempUsageDetail_20' ) start [2025-02-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431088', 'tblTempUsageDetail_20' ) end [2025-02-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431088', 'tblTempVendorCDR_20' ) start [2025-02-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431088', 'tblTempVendorCDR_20' ) end [2025-02-08 16:57:18] Production.INFO: ProcessCDR(1,14431088,1,1,2) [2025-02-08 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431088', 'tblTempUsageDetail_20' ) start [2025-02-08 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431088', 'tblTempUsageDetail_20' ) end [2025-02-08 16:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:57:22] Production.INFO: ==24010== Releasing lock... [2025-02-08 16:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:57:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:58:05 [end_date_ymd] => 2025-02-08 16:58:05 [RateCDR] => 1 ) [2025-02-08 16:58: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` >= '2025-02-08 13:58:05' and `end` < '2025-02-08 16:58: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 ,'') [2025-02-08 16:58:20] Production.INFO: count ==1806 [2025-02-08 16:58:20] Production.ERROR: pbx CDR StartTime 2025-02-08 13:58:05 - End Time 2025-02-08 16:58:05 [2025-02-08 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431093', 'tblTempUsageDetail_20' ) start [2025-02-08 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431093', 'tblTempUsageDetail_20' ) end [2025-02-08 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431093', 'tblTempVendorCDR_20' ) start [2025-02-08 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431093', 'tblTempVendorCDR_20' ) end [2025-02-08 16:58:20] Production.INFO: ProcessCDR(1,14431093,1,1,2) [2025-02-08 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431093', 'tblTempUsageDetail_20' ) start [2025-02-08 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431093', 'tblTempUsageDetail_20' ) end [2025-02-08 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:58:25] Production.INFO: ==24085== Releasing lock... [2025-02-08 16:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:58:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 13:59:04 [end_date_ymd] => 2025-02-08 16:59:04 [RateCDR] => 1 ) [2025-02-08 16:59:04] 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-02-08 13:59:04' and `end` < '2025-02-08 16:59:04' 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-02-08 16:59:18] Production.INFO: count ==1789 [2025-02-08 16:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 13:59:04 - End Time 2025-02-08 16:59:04 [2025-02-08 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431098', 'tblTempUsageDetail_20' ) start [2025-02-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431098', 'tblTempUsageDetail_20' ) end [2025-02-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431098', 'tblTempVendorCDR_20' ) start [2025-02-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431098', 'tblTempVendorCDR_20' ) end [2025-02-08 16:59:18] Production.INFO: ProcessCDR(1,14431098,1,1,2) [2025-02-08 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431098', 'tblTempUsageDetail_20' ) start [2025-02-08 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431098', 'tblTempUsageDetail_20' ) end [2025-02-08 16:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 16:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 16:59:21] Production.INFO: ==24157== Releasing lock... [2025-02-08 16:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 16:59:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:00:07 [end_date_ymd] => 2025-02-08 17:00:07 [RateCDR] => 1 ) [2025-02-08 17: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-02-08 14:00:07' and `end` < '2025-02-08 17: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-02-08 17:00:20] Production.INFO: count ==1777 [2025-02-08 17:00:21] Production.ERROR: pbx CDR StartTime 2025-02-08 14:00:07 - End Time 2025-02-08 17:00:07 [2025-02-08 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431104', 'tblTempUsageDetail_20' ) start [2025-02-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431104', 'tblTempUsageDetail_20' ) end [2025-02-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431104', 'tblTempVendorCDR_20' ) start [2025-02-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431104', 'tblTempVendorCDR_20' ) end [2025-02-08 17:00:21] Production.INFO: ProcessCDR(1,14431104,1,1,2) [2025-02-08 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431104', 'tblTempUsageDetail_20' ) start [2025-02-08 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431104', 'tblTempUsageDetail_20' ) end [2025-02-08 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:00:24] Production.INFO: ==24236== Releasing lock... [2025-02-08 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:01:05 [end_date_ymd] => 2025-02-08 17:01:05 [RateCDR] => 1 ) [2025-02-08 17: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` >= '2025-02-08 14:01:05' and `end` < '2025-02-08 17: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 ,'') [2025-02-08 17:01:18] Production.INFO: count ==1745 [2025-02-08 17:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:01:05 - End Time 2025-02-08 17:01:05 [2025-02-08 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431109', 'tblTempUsageDetail_20' ) start [2025-02-08 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431109', 'tblTempUsageDetail_20' ) end [2025-02-08 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431109', 'tblTempVendorCDR_20' ) start [2025-02-08 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431109', 'tblTempVendorCDR_20' ) end [2025-02-08 17:01:19] Production.INFO: ProcessCDR(1,14431109,1,1,2) [2025-02-08 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431109', 'tblTempUsageDetail_20' ) start [2025-02-08 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431109', 'tblTempUsageDetail_20' ) end [2025-02-08 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:01:22] Production.INFO: ==24326== Releasing lock... [2025-02-08 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:01:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:02:05 [end_date_ymd] => 2025-02-08 17:02:05 [RateCDR] => 1 ) [2025-02-08 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 14:02:05' and `end` < '2025-02-08 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 17:02:19] Production.INFO: count ==1734 [2025-02-08 17:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 14:02:05 - End Time 2025-02-08 17:02:05 [2025-02-08 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431114', 'tblTempUsageDetail_20' ) start [2025-02-08 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431114', 'tblTempUsageDetail_20' ) end [2025-02-08 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431114', 'tblTempVendorCDR_20' ) start [2025-02-08 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431114', 'tblTempVendorCDR_20' ) end [2025-02-08 17:02:20] Production.INFO: ProcessCDR(1,14431114,1,1,2) [2025-02-08 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431114', 'tblTempUsageDetail_20' ) start [2025-02-08 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431114', 'tblTempUsageDetail_20' ) end [2025-02-08 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:02:23] Production.INFO: ==24404== Releasing lock... [2025-02-08 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:02:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:03:05 [end_date_ymd] => 2025-02-08 17:03:05 [RateCDR] => 1 ) [2025-02-08 17:03: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` >= '2025-02-08 14:03:05' and `end` < '2025-02-08 17:03: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 ,'') [2025-02-08 17:03:20] Production.INFO: count ==1734 [2025-02-08 17:03:21] Production.ERROR: pbx CDR StartTime 2025-02-08 14:03:05 - End Time 2025-02-08 17:03:05 [2025-02-08 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431119', 'tblTempUsageDetail_20' ) start [2025-02-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431119', 'tblTempUsageDetail_20' ) end [2025-02-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431119', 'tblTempVendorCDR_20' ) start [2025-02-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431119', 'tblTempVendorCDR_20' ) end [2025-02-08 17:03:21] Production.INFO: ProcessCDR(1,14431119,1,1,2) [2025-02-08 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431119', 'tblTempUsageDetail_20' ) start [2025-02-08 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431119', 'tblTempUsageDetail_20' ) end [2025-02-08 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:03:24] Production.INFO: ==24478== Releasing lock... [2025-02-08 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:03:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:04:05 [end_date_ymd] => 2025-02-08 17:04:05 [RateCDR] => 1 ) [2025-02-08 17:04: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` >= '2025-02-08 14:04:05' and `end` < '2025-02-08 17:04: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 ,'') [2025-02-08 17:04:19] Production.INFO: count ==1732 [2025-02-08 17:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:04:05 - End Time 2025-02-08 17:04:05 [2025-02-08 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431124', 'tblTempUsageDetail_20' ) start [2025-02-08 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431124', 'tblTempUsageDetail_20' ) end [2025-02-08 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431124', 'tblTempVendorCDR_20' ) start [2025-02-08 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431124', 'tblTempVendorCDR_20' ) end [2025-02-08 17:04:19] Production.INFO: ProcessCDR(1,14431124,1,1,2) [2025-02-08 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431124', 'tblTempUsageDetail_20' ) start [2025-02-08 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431124', 'tblTempUsageDetail_20' ) end [2025-02-08 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:04:22] Production.INFO: ==24555== Releasing lock... [2025-02-08 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:05:05 [end_date_ymd] => 2025-02-08 17:05:05 [RateCDR] => 1 ) [2025-02-08 17:05: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` >= '2025-02-08 14:05:05' and `end` < '2025-02-08 17:05: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 ,'') [2025-02-08 17:05:22] Production.INFO: count ==1731 [2025-02-08 17:05:23] Production.ERROR: pbx CDR StartTime 2025-02-08 14:05:05 - End Time 2025-02-08 17:05:05 [2025-02-08 17:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431129', 'tblTempUsageDetail_20' ) start [2025-02-08 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431129', 'tblTempUsageDetail_20' ) end [2025-02-08 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431129', 'tblTempVendorCDR_20' ) start [2025-02-08 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431129', 'tblTempVendorCDR_20' ) end [2025-02-08 17:05:23] Production.INFO: ProcessCDR(1,14431129,1,1,2) [2025-02-08 17:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431129', 'tblTempUsageDetail_20' ) start [2025-02-08 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431129', 'tblTempUsageDetail_20' ) end [2025-02-08 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:05:26] Production.INFO: ==24638== Releasing lock... [2025-02-08 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:05:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:06:05 [end_date_ymd] => 2025-02-08 17:06:05 [RateCDR] => 1 ) [2025-02-08 17:06: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` >= '2025-02-08 14:06:05' and `end` < '2025-02-08 17:06: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 ,'') [2025-02-08 17:06:19] Production.INFO: count ==1735 [2025-02-08 17:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:06:05 - End Time 2025-02-08 17:06:05 [2025-02-08 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431134', 'tblTempUsageDetail_20' ) start [2025-02-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431134', 'tblTempUsageDetail_20' ) end [2025-02-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431134', 'tblTempVendorCDR_20' ) start [2025-02-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431134', 'tblTempVendorCDR_20' ) end [2025-02-08 17:06:19] Production.INFO: ProcessCDR(1,14431134,1,1,2) [2025-02-08 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431134', 'tblTempUsageDetail_20' ) start [2025-02-08 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431134', 'tblTempUsageDetail_20' ) end [2025-02-08 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:06:23] Production.INFO: ==24722== Releasing lock... [2025-02-08 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:06:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:07:05 [end_date_ymd] => 2025-02-08 17:07:05 [RateCDR] => 1 ) [2025-02-08 17:07: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` >= '2025-02-08 14:07:05' and `end` < '2025-02-08 17:07: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 ,'') [2025-02-08 17:07:18] Production.INFO: count ==1726 [2025-02-08 17:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:07:05 - End Time 2025-02-08 17:07:05 [2025-02-08 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431139', 'tblTempUsageDetail_20' ) start [2025-02-08 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431139', 'tblTempUsageDetail_20' ) end [2025-02-08 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431139', 'tblTempVendorCDR_20' ) start [2025-02-08 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431139', 'tblTempVendorCDR_20' ) end [2025-02-08 17:07:19] Production.INFO: ProcessCDR(1,14431139,1,1,2) [2025-02-08 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431139', 'tblTempUsageDetail_20' ) start [2025-02-08 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431139', 'tblTempUsageDetail_20' ) end [2025-02-08 17:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:07:22] Production.INFO: ==24800== Releasing lock... [2025-02-08 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:07:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:08:05 [end_date_ymd] => 2025-02-08 17:08:05 [RateCDR] => 1 ) [2025-02-08 17:08: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` >= '2025-02-08 14:08:05' and `end` < '2025-02-08 17:08: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 ,'') [2025-02-08 17:08:19] Production.INFO: count ==1732 [2025-02-08 17:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:08:05 - End Time 2025-02-08 17:08:05 [2025-02-08 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431144', 'tblTempUsageDetail_20' ) start [2025-02-08 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431144', 'tblTempUsageDetail_20' ) end [2025-02-08 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431144', 'tblTempVendorCDR_20' ) start [2025-02-08 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431144', 'tblTempVendorCDR_20' ) end [2025-02-08 17:08:19] Production.INFO: ProcessCDR(1,14431144,1,1,2) [2025-02-08 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431144', 'tblTempUsageDetail_20' ) start [2025-02-08 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431144', 'tblTempUsageDetail_20' ) end [2025-02-08 17:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:08:22] Production.INFO: ==24919== Releasing lock... [2025-02-08 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:08:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:09:04 [end_date_ymd] => 2025-02-08 17:09:04 [RateCDR] => 1 ) [2025-02-08 17:09:04] 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-02-08 14:09:04' and `end` < '2025-02-08 17:09:04' 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-02-08 17:09:18] Production.INFO: count ==1729 [2025-02-08 17:09:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:09:04 - End Time 2025-02-08 17:09:04 [2025-02-08 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431149', 'tblTempUsageDetail_20' ) start [2025-02-08 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431149', 'tblTempUsageDetail_20' ) end [2025-02-08 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431149', 'tblTempVendorCDR_20' ) start [2025-02-08 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431149', 'tblTempVendorCDR_20' ) end [2025-02-08 17:09:18] Production.INFO: ProcessCDR(1,14431149,1,1,2) [2025-02-08 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431149', 'tblTempUsageDetail_20' ) start [2025-02-08 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431149', 'tblTempUsageDetail_20' ) end [2025-02-08 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:09:22] Production.INFO: ==25005== Releasing lock... [2025-02-08 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:09:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:10:06 [end_date_ymd] => 2025-02-08 17:10:06 [RateCDR] => 1 ) [2025-02-08 17:10: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-02-08 14:10:06' and `end` < '2025-02-08 17:10: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-02-08 17:10:19] Production.INFO: count ==1723 [2025-02-08 17:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:10:06 - End Time 2025-02-08 17:10:06 [2025-02-08 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431155', 'tblTempUsageDetail_20' ) start [2025-02-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431155', 'tblTempUsageDetail_20' ) end [2025-02-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431155', 'tblTempVendorCDR_20' ) start [2025-02-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431155', 'tblTempVendorCDR_20' ) end [2025-02-08 17:10:19] Production.INFO: ProcessCDR(1,14431155,1,1,2) [2025-02-08 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431155', 'tblTempUsageDetail_20' ) start [2025-02-08 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431155', 'tblTempUsageDetail_20' ) end [2025-02-08 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:10:23] Production.INFO: ==25092== Releasing lock... [2025-02-08 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:10:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:11:04 [end_date_ymd] => 2025-02-08 17:11:04 [RateCDR] => 1 ) [2025-02-08 17:11:04] 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-02-08 14:11:04' and `end` < '2025-02-08 17:11:04' 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-02-08 17:11:18] Production.INFO: count ==1710 [2025-02-08 17:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:11:04 - End Time 2025-02-08 17:11:04 [2025-02-08 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431160', 'tblTempUsageDetail_20' ) start [2025-02-08 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431160', 'tblTempUsageDetail_20' ) end [2025-02-08 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431160', 'tblTempVendorCDR_20' ) start [2025-02-08 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431160', 'tblTempVendorCDR_20' ) end [2025-02-08 17:11:18] Production.INFO: ProcessCDR(1,14431160,1,1,2) [2025-02-08 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431160', 'tblTempUsageDetail_20' ) start [2025-02-08 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431160', 'tblTempUsageDetail_20' ) end [2025-02-08 17:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:11:21] Production.INFO: ==25173== Releasing lock... [2025-02-08 17:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:11:21] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:12:05 [end_date_ymd] => 2025-02-08 17:12:05 [RateCDR] => 1 ) [2025-02-08 17:12: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` >= '2025-02-08 14:12:05' and `end` < '2025-02-08 17:12: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 ,'') [2025-02-08 17:12:18] Production.INFO: count ==1706 [2025-02-08 17:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:12:05 - End Time 2025-02-08 17:12:05 [2025-02-08 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431165', 'tblTempUsageDetail_20' ) start [2025-02-08 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431165', 'tblTempUsageDetail_20' ) end [2025-02-08 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431165', 'tblTempVendorCDR_20' ) start [2025-02-08 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431165', 'tblTempVendorCDR_20' ) end [2025-02-08 17:12:19] Production.INFO: ProcessCDR(1,14431165,1,1,2) [2025-02-08 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431165', 'tblTempUsageDetail_20' ) start [2025-02-08 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431165', 'tblTempUsageDetail_20' ) end [2025-02-08 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:12:22] Production.INFO: ==25260== Releasing lock... [2025-02-08 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:13:05 [end_date_ymd] => 2025-02-08 17:13:05 [RateCDR] => 1 ) [2025-02-08 17:13: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` >= '2025-02-08 14:13:05' and `end` < '2025-02-08 17:13: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 ,'') [2025-02-08 17:13:18] Production.INFO: count ==1697 [2025-02-08 17:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:13:05 - End Time 2025-02-08 17:13:05 [2025-02-08 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431170', 'tblTempUsageDetail_20' ) start [2025-02-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431170', 'tblTempUsageDetail_20' ) end [2025-02-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431170', 'tblTempVendorCDR_20' ) start [2025-02-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431170', 'tblTempVendorCDR_20' ) end [2025-02-08 17:13:19] Production.INFO: ProcessCDR(1,14431170,1,1,2) [2025-02-08 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431170', 'tblTempUsageDetail_20' ) start [2025-02-08 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431170', 'tblTempUsageDetail_20' ) end [2025-02-08 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:13:22] Production.INFO: ==25348== Releasing lock... [2025-02-08 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:14:05 [end_date_ymd] => 2025-02-08 17:14:05 [RateCDR] => 1 ) [2025-02-08 17:14: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` >= '2025-02-08 14:14:05' and `end` < '2025-02-08 17:14: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 ,'') [2025-02-08 17:14:18] Production.INFO: count ==1691 [2025-02-08 17:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:14:05 - End Time 2025-02-08 17:14:05 [2025-02-08 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431175', 'tblTempUsageDetail_20' ) start [2025-02-08 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431175', 'tblTempUsageDetail_20' ) end [2025-02-08 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431175', 'tblTempVendorCDR_20' ) start [2025-02-08 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431175', 'tblTempVendorCDR_20' ) end [2025-02-08 17:14:19] Production.INFO: ProcessCDR(1,14431175,1,1,2) [2025-02-08 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431175', 'tblTempUsageDetail_20' ) start [2025-02-08 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431175', 'tblTempUsageDetail_20' ) end [2025-02-08 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:14:22] Production.INFO: ==25434== Releasing lock... [2025-02-08 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:14:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:15:05 [end_date_ymd] => 2025-02-08 17:15:05 [RateCDR] => 1 ) [2025-02-08 17:15: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` >= '2025-02-08 14:15:05' and `end` < '2025-02-08 17:15: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 ,'') [2025-02-08 17:15:18] Production.INFO: count ==1682 [2025-02-08 17:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:15:05 - End Time 2025-02-08 17:15:05 [2025-02-08 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431180', 'tblTempUsageDetail_20' ) start [2025-02-08 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431180', 'tblTempUsageDetail_20' ) end [2025-02-08 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431180', 'tblTempVendorCDR_20' ) start [2025-02-08 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431180', 'tblTempVendorCDR_20' ) end [2025-02-08 17:15:19] Production.INFO: ProcessCDR(1,14431180,1,1,2) [2025-02-08 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431180', 'tblTempUsageDetail_20' ) start [2025-02-08 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431180', 'tblTempUsageDetail_20' ) end [2025-02-08 17:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:15:22] Production.INFO: ==25523== Releasing lock... [2025-02-08 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:16:05 [end_date_ymd] => 2025-02-08 17:16:05 [RateCDR] => 1 ) [2025-02-08 17:16: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` >= '2025-02-08 14:16:05' and `end` < '2025-02-08 17:16: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 ,'') [2025-02-08 17:16:18] Production.INFO: count ==1669 [2025-02-08 17:16:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:16:05 - End Time 2025-02-08 17:16:05 [2025-02-08 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431185', 'tblTempUsageDetail_20' ) start [2025-02-08 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431185', 'tblTempUsageDetail_20' ) end [2025-02-08 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431185', 'tblTempVendorCDR_20' ) start [2025-02-08 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431185', 'tblTempVendorCDR_20' ) end [2025-02-08 17:16:19] Production.INFO: ProcessCDR(1,14431185,1,1,2) [2025-02-08 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431185', 'tblTempUsageDetail_20' ) start [2025-02-08 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431185', 'tblTempUsageDetail_20' ) end [2025-02-08 17:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:16:22] Production.INFO: ==25613== Releasing lock... [2025-02-08 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:16:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:17:06 [end_date_ymd] => 2025-02-08 17:17:06 [RateCDR] => 1 ) [2025-02-08 17:17: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-02-08 14:17:06' and `end` < '2025-02-08 17:17: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-02-08 17:17:19] Production.INFO: count ==1664 [2025-02-08 17:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:17:06 - End Time 2025-02-08 17:17:06 [2025-02-08 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431190', 'tblTempUsageDetail_20' ) start [2025-02-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431190', 'tblTempUsageDetail_20' ) end [2025-02-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431190', 'tblTempVendorCDR_20' ) start [2025-02-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431190', 'tblTempVendorCDR_20' ) end [2025-02-08 17:17:20] Production.INFO: ProcessCDR(1,14431190,1,1,2) [2025-02-08 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431190', 'tblTempUsageDetail_20' ) start [2025-02-08 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431190', 'tblTempUsageDetail_20' ) end [2025-02-08 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:17:24] Production.INFO: ==25700== Releasing lock... [2025-02-08 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:17:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:18:05 [end_date_ymd] => 2025-02-08 17:18:05 [RateCDR] => 1 ) [2025-02-08 17:18: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` >= '2025-02-08 14:18:05' and `end` < '2025-02-08 17:18: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 ,'') [2025-02-08 17:18:18] Production.INFO: count ==1633 [2025-02-08 17:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:18:05 - End Time 2025-02-08 17:18:05 [2025-02-08 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431195', 'tblTempUsageDetail_20' ) start [2025-02-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431195', 'tblTempUsageDetail_20' ) end [2025-02-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431195', 'tblTempVendorCDR_20' ) start [2025-02-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431195', 'tblTempVendorCDR_20' ) end [2025-02-08 17:18:19] Production.INFO: ProcessCDR(1,14431195,1,1,2) [2025-02-08 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431195', 'tblTempUsageDetail_20' ) start [2025-02-08 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431195', 'tblTempUsageDetail_20' ) end [2025-02-08 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:18:22] Production.INFO: ==25786== Releasing lock... [2025-02-08 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:18:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:19:05 [end_date_ymd] => 2025-02-08 17:19:05 [RateCDR] => 1 ) [2025-02-08 17:19: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` >= '2025-02-08 14:19:05' and `end` < '2025-02-08 17:19: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 ,'') [2025-02-08 17:19:18] Production.INFO: count ==1628 [2025-02-08 17:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:19:05 - End Time 2025-02-08 17:19:05 [2025-02-08 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431200', 'tblTempUsageDetail_20' ) start [2025-02-08 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431200', 'tblTempUsageDetail_20' ) end [2025-02-08 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431200', 'tblTempVendorCDR_20' ) start [2025-02-08 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431200', 'tblTempVendorCDR_20' ) end [2025-02-08 17:19:19] Production.INFO: ProcessCDR(1,14431200,1,1,2) [2025-02-08 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431200', 'tblTempUsageDetail_20' ) start [2025-02-08 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431200', 'tblTempUsageDetail_20' ) end [2025-02-08 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:19:23] Production.INFO: ==25881== Releasing lock... [2025-02-08 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:19:23] Production.INFO: 40 MB #Memory Used# [2025-02-08 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:20:06 [end_date_ymd] => 2025-02-08 17:20:06 [RateCDR] => 1 ) [2025-02-08 17:20: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-02-08 14:20:06' and `end` < '2025-02-08 17:20: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-02-08 17:20:23] Production.INFO: count ==1625 [2025-02-08 17:20:23] Production.ERROR: pbx CDR StartTime 2025-02-08 14:20:06 - End Time 2025-02-08 17:20:06 [2025-02-08 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431206', 'tblTempUsageDetail_20' ) start [2025-02-08 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431206', 'tblTempUsageDetail_20' ) end [2025-02-08 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431206', 'tblTempVendorCDR_20' ) start [2025-02-08 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431206', 'tblTempVendorCDR_20' ) end [2025-02-08 17:20:23] Production.INFO: ProcessCDR(1,14431206,1,1,2) [2025-02-08 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431206', 'tblTempUsageDetail_20' ) start [2025-02-08 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431206', 'tblTempUsageDetail_20' ) end [2025-02-08 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:20:27] Production.INFO: ==25976== Releasing lock... [2025-02-08 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:20:27] Production.INFO: 40 MB #Memory Used# [2025-02-08 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:21:06 [end_date_ymd] => 2025-02-08 17:21:06 [RateCDR] => 1 ) [2025-02-08 17:21: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-02-08 14:21:06' and `end` < '2025-02-08 17:21: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-02-08 17:21:20] Production.INFO: count ==1664 [2025-02-08 17:21:20] Production.ERROR: pbx CDR StartTime 2025-02-08 14:21:06 - End Time 2025-02-08 17:21:06 [2025-02-08 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431211', 'tblTempUsageDetail_20' ) start [2025-02-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431211', 'tblTempUsageDetail_20' ) end [2025-02-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431211', 'tblTempVendorCDR_20' ) start [2025-02-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431211', 'tblTempVendorCDR_20' ) end [2025-02-08 17:21:20] Production.INFO: ProcessCDR(1,14431211,1,1,2) [2025-02-08 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431211', 'tblTempUsageDetail_20' ) start [2025-02-08 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431211', 'tblTempUsageDetail_20' ) end [2025-02-08 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:21:25] Production.INFO: ==26082== Releasing lock... [2025-02-08 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:21:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:22:05 [end_date_ymd] => 2025-02-08 17:22:05 [RateCDR] => 1 ) [2025-02-08 17:22: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` >= '2025-02-08 14:22:05' and `end` < '2025-02-08 17:22: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 ,'') [2025-02-08 17:22:18] Production.INFO: count ==1661 [2025-02-08 17:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:22:05 - End Time 2025-02-08 17:22:05 [2025-02-08 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431216', 'tblTempUsageDetail_20' ) start [2025-02-08 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431216', 'tblTempUsageDetail_20' ) end [2025-02-08 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431216', 'tblTempVendorCDR_20' ) start [2025-02-08 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431216', 'tblTempVendorCDR_20' ) end [2025-02-08 17:22:19] Production.INFO: ProcessCDR(1,14431216,1,1,2) [2025-02-08 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431216', 'tblTempUsageDetail_20' ) start [2025-02-08 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431216', 'tblTempUsageDetail_20' ) end [2025-02-08 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:22:23] Production.INFO: ==26167== Releasing lock... [2025-02-08 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:22:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:23:05 [end_date_ymd] => 2025-02-08 17:23:05 [RateCDR] => 1 ) [2025-02-08 17:23: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` >= '2025-02-08 14:23:05' and `end` < '2025-02-08 17:23: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 ,'') [2025-02-08 17:23:18] Production.INFO: count ==1649 [2025-02-08 17:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:23:05 - End Time 2025-02-08 17:23:05 [2025-02-08 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431221', 'tblTempUsageDetail_20' ) start [2025-02-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431221', 'tblTempUsageDetail_20' ) end [2025-02-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431221', 'tblTempVendorCDR_20' ) start [2025-02-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431221', 'tblTempVendorCDR_20' ) end [2025-02-08 17:23:18] Production.INFO: ProcessCDR(1,14431221,1,1,2) [2025-02-08 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431221', 'tblTempUsageDetail_20' ) start [2025-02-08 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431221', 'tblTempUsageDetail_20' ) end [2025-02-08 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:23:23] Production.INFO: ==26258== Releasing lock... [2025-02-08 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:23:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:24:05 [end_date_ymd] => 2025-02-08 17:24:05 [RateCDR] => 1 ) [2025-02-08 17:24: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` >= '2025-02-08 14:24:05' and `end` < '2025-02-08 17:24: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 ,'') [2025-02-08 17:24:18] Production.INFO: count ==1640 [2025-02-08 17:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:24:05 - End Time 2025-02-08 17:24:05 [2025-02-08 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431226', 'tblTempUsageDetail_20' ) start [2025-02-08 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431226', 'tblTempUsageDetail_20' ) end [2025-02-08 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431226', 'tblTempVendorCDR_20' ) start [2025-02-08 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431226', 'tblTempVendorCDR_20' ) end [2025-02-08 17:24:19] Production.INFO: ProcessCDR(1,14431226,1,1,2) [2025-02-08 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431226', 'tblTempUsageDetail_20' ) start [2025-02-08 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431226', 'tblTempUsageDetail_20' ) end [2025-02-08 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:24:23] Production.INFO: ==26389== Releasing lock... [2025-02-08 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:24:23] Production.INFO: 40 MB #Memory Used# [2025-02-08 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:25:05 [end_date_ymd] => 2025-02-08 17:25:05 [RateCDR] => 1 ) [2025-02-08 17:25: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` >= '2025-02-08 14:25:05' and `end` < '2025-02-08 17:25: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 ,'') [2025-02-08 17:25:19] Production.INFO: count ==1665 [2025-02-08 17:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:25:05 - End Time 2025-02-08 17:25:05 [2025-02-08 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431231', 'tblTempUsageDetail_20' ) start [2025-02-08 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431231', 'tblTempUsageDetail_20' ) end [2025-02-08 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431231', 'tblTempVendorCDR_20' ) start [2025-02-08 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431231', 'tblTempVendorCDR_20' ) end [2025-02-08 17:25:19] Production.INFO: ProcessCDR(1,14431231,1,1,2) [2025-02-08 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431231', 'tblTempUsageDetail_20' ) start [2025-02-08 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431231', 'tblTempUsageDetail_20' ) end [2025-02-08 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:25:24] Production.INFO: ==26506== Releasing lock... [2025-02-08 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:25:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 17:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:26:20 [end_date_ymd] => 2025-02-08 17:26:20 [RateCDR] => 1 ) [2025-02-08 17:26:20] 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-02-08 14:26:20' and `end` < '2025-02-08 17:26:20' 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-02-08 17:26:34] Production.INFO: count ==1687 [2025-02-08 17:26:48] Production.ERROR: pbx CDR StartTime 2025-02-08 14:26:20 - End Time 2025-02-08 17:26:20 [2025-02-08 17:26:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:26:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431236', 'tblTempUsageDetail_20' ) start [2025-02-08 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431236', 'tblTempUsageDetail_20' ) end [2025-02-08 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431236', 'tblTempVendorCDR_20' ) start [2025-02-08 17:26:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431236', 'tblTempVendorCDR_20' ) end [2025-02-08 17:26:54] Production.INFO: ProcessCDR(1,14431236,1,1,2) [2025-02-08 17:26:54] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:27:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431236', 'tblTempUsageDetail_20' ) start [2025-02-08 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431236', 'tblTempUsageDetail_20' ) end [2025-02-08 17:27:48] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:27:48] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:27:48] Production.INFO: ==26623== Releasing lock... [2025-02-08 17:27:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:27:48] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:28:14] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:28:14 [end_date_ymd] => 2025-02-08 17:28:14 [RateCDR] => 1 ) [2025-02-08 17:28:14] 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-02-08 14:28:14' and `end` < '2025-02-08 17:28:14' 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-02-08 17:28:28] Production.INFO: count ==1683 [2025-02-08 17:28:34] Production.ERROR: pbx CDR StartTime 2025-02-08 14:28:14 - End Time 2025-02-08 17:28:14 [2025-02-08 17:28:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431243', 'tblTempUsageDetail_20' ) start [2025-02-08 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431243', 'tblTempUsageDetail_20' ) end [2025-02-08 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431243', 'tblTempVendorCDR_20' ) start [2025-02-08 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431243', 'tblTempVendorCDR_20' ) end [2025-02-08 17:28:34] Production.INFO: ProcessCDR(1,14431243,1,1,2) [2025-02-08 17:28:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:28:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:28:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:28:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:28:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431243', 'tblTempUsageDetail_20' ) start [2025-02-08 17:28:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431243', 'tblTempUsageDetail_20' ) end [2025-02-08 17:28:49] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:28:49] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:28:49] Production.INFO: ==26832== Releasing lock... [2025-02-08 17:28:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:28:49] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:29:18 [end_date_ymd] => 2025-02-08 17:29:18 [RateCDR] => 1 ) [2025-02-08 17:29:18] 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-02-08 14:29:18' and `end` < '2025-02-08 17:29:18' 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-02-08 17:29:31] Production.INFO: count ==1697 [2025-02-08 17:29:46] Production.ERROR: pbx CDR StartTime 2025-02-08 14:29:18 - End Time 2025-02-08 17:29:18 [2025-02-08 17:29:46] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:29:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431248', 'tblTempUsageDetail_20' ) start [2025-02-08 17:29:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431248', 'tblTempUsageDetail_20' ) end [2025-02-08 17:29:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431248', 'tblTempVendorCDR_20' ) start [2025-02-08 17:29:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431248', 'tblTempVendorCDR_20' ) end [2025-02-08 17:29:48] Production.INFO: ProcessCDR(1,14431248,1,1,2) [2025-02-08 17:29:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:30:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:30:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431248', 'tblTempUsageDetail_20' ) start [2025-02-08 17:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431248', 'tblTempUsageDetail_20' ) end [2025-02-08 17:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:30:27] Production.INFO: ==26950== Releasing lock... [2025-02-08 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:30:27] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 17:31:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:31:16 [end_date_ymd] => 2025-02-08 17:31:16 [RateCDR] => 1 ) [2025-02-08 17:31:16] 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-02-08 14:31:16' and `end` < '2025-02-08 17:31:16' 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-02-08 17:31:30] Production.INFO: count ==1790 [2025-02-08 17:31:42] Production.ERROR: pbx CDR StartTime 2025-02-08 14:31:16 - End Time 2025-02-08 17:31:16 [2025-02-08 17:31:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:31:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431257', 'tblTempUsageDetail_20' ) start [2025-02-08 17:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431257', 'tblTempUsageDetail_20' ) end [2025-02-08 17:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431257', 'tblTempVendorCDR_20' ) start [2025-02-08 17:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431257', 'tblTempVendorCDR_20' ) end [2025-02-08 17:31:45] Production.INFO: ProcessCDR(1,14431257,1,1,2) [2025-02-08 17:31:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:31:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:31:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:32:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:32:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431257', 'tblTempUsageDetail_20' ) start [2025-02-08 17:32:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431257', 'tblTempUsageDetail_20' ) end [2025-02-08 17:32:00] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:32:00] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:32:00] Production.INFO: ==27172== Releasing lock... [2025-02-08 17:32:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:32:00] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:32:05 [end_date_ymd] => 2025-02-08 17:32:05 [RateCDR] => 1 ) [2025-02-08 17:32: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` >= '2025-02-08 14:32:05' and `end` < '2025-02-08 17:32: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 ,'') [2025-02-08 17:32:18] Production.INFO: count ==1792 [2025-02-08 17:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:32:05 - End Time 2025-02-08 17:32:05 [2025-02-08 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431262', 'tblTempUsageDetail_20' ) start [2025-02-08 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431262', 'tblTempUsageDetail_20' ) end [2025-02-08 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431262', 'tblTempVendorCDR_20' ) start [2025-02-08 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431262', 'tblTempVendorCDR_20' ) end [2025-02-08 17:32:19] Production.INFO: ProcessCDR(1,14431262,1,1,2) [2025-02-08 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431262', 'tblTempUsageDetail_20' ) start [2025-02-08 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431262', 'tblTempUsageDetail_20' ) end [2025-02-08 17:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:32:22] Production.INFO: ==27295== Releasing lock... [2025-02-08 17:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:32:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:33:05 [end_date_ymd] => 2025-02-08 17:33:05 [RateCDR] => 1 ) [2025-02-08 17:33: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` >= '2025-02-08 14:33:05' and `end` < '2025-02-08 17:33: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 ,'') [2025-02-08 17:33:18] Production.INFO: count ==1786 [2025-02-08 17:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:33:05 - End Time 2025-02-08 17:33:05 [2025-02-08 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431267', 'tblTempUsageDetail_20' ) start [2025-02-08 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431267', 'tblTempUsageDetail_20' ) end [2025-02-08 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431267', 'tblTempVendorCDR_20' ) start [2025-02-08 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431267', 'tblTempVendorCDR_20' ) end [2025-02-08 17:33:19] Production.INFO: ProcessCDR(1,14431267,1,1,2) [2025-02-08 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431267', 'tblTempUsageDetail_20' ) start [2025-02-08 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431267', 'tblTempUsageDetail_20' ) end [2025-02-08 17:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:33:22] Production.INFO: ==27416== Releasing lock... [2025-02-08 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:33:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:34:05 [end_date_ymd] => 2025-02-08 17:34:05 [RateCDR] => 1 ) [2025-02-08 17:34: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` >= '2025-02-08 14:34:05' and `end` < '2025-02-08 17:34: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 ,'') [2025-02-08 17:34:18] Production.INFO: count ==1784 [2025-02-08 17:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:34:05 - End Time 2025-02-08 17:34:05 [2025-02-08 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431272', 'tblTempUsageDetail_20' ) start [2025-02-08 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431272', 'tblTempUsageDetail_20' ) end [2025-02-08 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431272', 'tblTempVendorCDR_20' ) start [2025-02-08 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431272', 'tblTempVendorCDR_20' ) end [2025-02-08 17:34:19] Production.INFO: ProcessCDR(1,14431272,1,1,2) [2025-02-08 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431272', 'tblTempUsageDetail_20' ) start [2025-02-08 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431272', 'tblTempUsageDetail_20' ) end [2025-02-08 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:34:22] Production.INFO: ==27532== Releasing lock... [2025-02-08 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:34:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:35:04 [end_date_ymd] => 2025-02-08 17:35:04 [RateCDR] => 1 ) [2025-02-08 17:35:04] 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-02-08 14:35:04' and `end` < '2025-02-08 17:35:04' 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-02-08 17:35:18] Production.INFO: count ==1783 [2025-02-08 17:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:35:04 - End Time 2025-02-08 17:35:04 [2025-02-08 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431276', 'tblTempUsageDetail_20' ) start [2025-02-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431276', 'tblTempUsageDetail_20' ) end [2025-02-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431276', 'tblTempVendorCDR_20' ) start [2025-02-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431276', 'tblTempVendorCDR_20' ) end [2025-02-08 17:35:18] Production.INFO: ProcessCDR(1,14431276,1,1,2) [2025-02-08 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431276', 'tblTempUsageDetail_20' ) start [2025-02-08 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431276', 'tblTempUsageDetail_20' ) end [2025-02-08 17:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:35:21] Production.INFO: ==27646== Releasing lock... [2025-02-08 17:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:35:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:36:05 [end_date_ymd] => 2025-02-08 17:36:05 [RateCDR] => 1 ) [2025-02-08 17:36: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` >= '2025-02-08 14:36:05' and `end` < '2025-02-08 17:36: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 ,'') [2025-02-08 17:36:21] Production.INFO: count ==1777 [2025-02-08 17:36:22] Production.ERROR: pbx CDR StartTime 2025-02-08 14:36:05 - End Time 2025-02-08 17:36:05 [2025-02-08 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431282', 'tblTempUsageDetail_20' ) start [2025-02-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431282', 'tblTempUsageDetail_20' ) end [2025-02-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431282', 'tblTempVendorCDR_20' ) start [2025-02-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431282', 'tblTempVendorCDR_20' ) end [2025-02-08 17:36:22] Production.INFO: ProcessCDR(1,14431282,1,1,2) [2025-02-08 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431282', 'tblTempUsageDetail_20' ) start [2025-02-08 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431282', 'tblTempUsageDetail_20' ) end [2025-02-08 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:36:25] Production.INFO: ==27757== Releasing lock... [2025-02-08 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:36:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:37:04 [end_date_ymd] => 2025-02-08 17:37:04 [RateCDR] => 1 ) [2025-02-08 17:37:04] 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-02-08 14:37:04' and `end` < '2025-02-08 17:37:04' 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-02-08 17:37:17] Production.INFO: count ==1771 [2025-02-08 17:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:37:04 - End Time 2025-02-08 17:37:04 [2025-02-08 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431287', 'tblTempUsageDetail_20' ) start [2025-02-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431287', 'tblTempUsageDetail_20' ) end [2025-02-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431287', 'tblTempVendorCDR_20' ) start [2025-02-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431287', 'tblTempVendorCDR_20' ) end [2025-02-08 17:37:18] Production.INFO: ProcessCDR(1,14431287,1,1,2) [2025-02-08 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431287', 'tblTempUsageDetail_20' ) start [2025-02-08 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431287', 'tblTempUsageDetail_20' ) end [2025-02-08 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:37:22] Production.INFO: ==27873== Releasing lock... [2025-02-08 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:37:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:38:05 [end_date_ymd] => 2025-02-08 17:38:05 [RateCDR] => 1 ) [2025-02-08 17:38: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` >= '2025-02-08 14:38:05' and `end` < '2025-02-08 17:38: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 ,'') [2025-02-08 17:38:19] Production.INFO: count ==1755 [2025-02-08 17:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:38:05 - End Time 2025-02-08 17:38:05 [2025-02-08 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431292', 'tblTempUsageDetail_20' ) start [2025-02-08 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431292', 'tblTempUsageDetail_20' ) end [2025-02-08 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431292', 'tblTempVendorCDR_20' ) start [2025-02-08 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431292', 'tblTempVendorCDR_20' ) end [2025-02-08 17:38:19] Production.INFO: ProcessCDR(1,14431292,1,1,2) [2025-02-08 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431292', 'tblTempUsageDetail_20' ) start [2025-02-08 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431292', 'tblTempUsageDetail_20' ) end [2025-02-08 17:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:38:22] Production.INFO: ==27987== Releasing lock... [2025-02-08 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:38:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:39:05 [end_date_ymd] => 2025-02-08 17:39:05 [RateCDR] => 1 ) [2025-02-08 17:39: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` >= '2025-02-08 14:39:05' and `end` < '2025-02-08 17:39: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 ,'') [2025-02-08 17:39:18] Production.INFO: count ==1741 [2025-02-08 17:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:39:05 - End Time 2025-02-08 17:39:05 [2025-02-08 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431297', 'tblTempUsageDetail_20' ) start [2025-02-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431297', 'tblTempUsageDetail_20' ) end [2025-02-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431297', 'tblTempVendorCDR_20' ) start [2025-02-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431297', 'tblTempVendorCDR_20' ) end [2025-02-08 17:39:18] Production.INFO: ProcessCDR(1,14431297,1,1,2) [2025-02-08 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431297', 'tblTempUsageDetail_20' ) start [2025-02-08 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431297', 'tblTempUsageDetail_20' ) end [2025-02-08 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:39:21] Production.INFO: ==28135== Releasing lock... [2025-02-08 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:39:21] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:40:05 [end_date_ymd] => 2025-02-08 17:40:05 [RateCDR] => 1 ) [2025-02-08 17:40: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` >= '2025-02-08 14:40:05' and `end` < '2025-02-08 17:40: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 ,'') [2025-02-08 17:40:19] Production.INFO: count ==1728 [2025-02-08 17:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:40:05 - End Time 2025-02-08 17:40:05 [2025-02-08 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431302', 'tblTempUsageDetail_20' ) start [2025-02-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431302', 'tblTempUsageDetail_20' ) end [2025-02-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431302', 'tblTempVendorCDR_20' ) start [2025-02-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431302', 'tblTempVendorCDR_20' ) end [2025-02-08 17:40:19] Production.INFO: ProcessCDR(1,14431302,1,1,2) [2025-02-08 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431302', 'tblTempUsageDetail_20' ) start [2025-02-08 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431302', 'tblTempUsageDetail_20' ) end [2025-02-08 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:40:23] Production.INFO: ==28252== Releasing lock... [2025-02-08 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:40:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:41:05 [end_date_ymd] => 2025-02-08 17:41:05 [RateCDR] => 1 ) [2025-02-08 17:41: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` >= '2025-02-08 14:41:05' and `end` < '2025-02-08 17:41: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 ,'') [2025-02-08 17:41:19] Production.INFO: count ==1757 [2025-02-08 17:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:41:05 - End Time 2025-02-08 17:41:05 [2025-02-08 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431308', 'tblTempUsageDetail_20' ) start [2025-02-08 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431308', 'tblTempUsageDetail_20' ) end [2025-02-08 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431308', 'tblTempVendorCDR_20' ) start [2025-02-08 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431308', 'tblTempVendorCDR_20' ) end [2025-02-08 17:41:19] Production.INFO: ProcessCDR(1,14431308,1,1,2) [2025-02-08 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431308', 'tblTempUsageDetail_20' ) start [2025-02-08 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431308', 'tblTempUsageDetail_20' ) end [2025-02-08 17:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:41:22] Production.INFO: ==28369== Releasing lock... [2025-02-08 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:41:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:42:05 [end_date_ymd] => 2025-02-08 17:42:05 [RateCDR] => 1 ) [2025-02-08 17:42: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` >= '2025-02-08 14:42:05' and `end` < '2025-02-08 17:42: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 ,'') [2025-02-08 17:42:18] Production.INFO: count ==1760 [2025-02-08 17:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:42:05 - End Time 2025-02-08 17:42:05 [2025-02-08 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431313', 'tblTempUsageDetail_20' ) start [2025-02-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431313', 'tblTempUsageDetail_20' ) end [2025-02-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431313', 'tblTempVendorCDR_20' ) start [2025-02-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431313', 'tblTempVendorCDR_20' ) end [2025-02-08 17:42:18] Production.INFO: ProcessCDR(1,14431313,1,1,2) [2025-02-08 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431313', 'tblTempUsageDetail_20' ) start [2025-02-08 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431313', 'tblTempUsageDetail_20' ) end [2025-02-08 17:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:42:22] Production.INFO: ==28475== Releasing lock... [2025-02-08 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:42:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:43:05 [end_date_ymd] => 2025-02-08 17:43:05 [RateCDR] => 1 ) [2025-02-08 17:43: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` >= '2025-02-08 14:43:05' and `end` < '2025-02-08 17:43: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 ,'') [2025-02-08 17:43:19] Production.INFO: count ==1752 [2025-02-08 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-08 14:43:05 - End Time 2025-02-08 17:43:05 [2025-02-08 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431318', 'tblTempUsageDetail_20' ) start [2025-02-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431318', 'tblTempUsageDetail_20' ) end [2025-02-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431318', 'tblTempVendorCDR_20' ) start [2025-02-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431318', 'tblTempVendorCDR_20' ) end [2025-02-08 17:43:20] Production.INFO: ProcessCDR(1,14431318,1,1,2) [2025-02-08 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431318', 'tblTempUsageDetail_20' ) start [2025-02-08 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431318', 'tblTempUsageDetail_20' ) end [2025-02-08 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:43:23] Production.INFO: ==28551== Releasing lock... [2025-02-08 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:43:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:44:05 [end_date_ymd] => 2025-02-08 17:44:05 [RateCDR] => 1 ) [2025-02-08 17:44: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` >= '2025-02-08 14:44:05' and `end` < '2025-02-08 17:44: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 ,'') [2025-02-08 17:44:18] Production.INFO: count ==1737 [2025-02-08 17:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:44:05 - End Time 2025-02-08 17:44:05 [2025-02-08 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431323', 'tblTempUsageDetail_20' ) start [2025-02-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431323', 'tblTempUsageDetail_20' ) end [2025-02-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431323', 'tblTempVendorCDR_20' ) start [2025-02-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431323', 'tblTempVendorCDR_20' ) end [2025-02-08 17:44:18] Production.INFO: ProcessCDR(1,14431323,1,1,2) [2025-02-08 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431323', 'tblTempUsageDetail_20' ) start [2025-02-08 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431323', 'tblTempUsageDetail_20' ) end [2025-02-08 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:44:22] Production.INFO: ==28632== Releasing lock... [2025-02-08 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:44:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:45:05 [end_date_ymd] => 2025-02-08 17:45:05 [RateCDR] => 1 ) [2025-02-08 17:45: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` >= '2025-02-08 14:45:05' and `end` < '2025-02-08 17:45: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 ,'') [2025-02-08 17:45:19] Production.INFO: count ==1725 [2025-02-08 17:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:45:05 - End Time 2025-02-08 17:45:05 [2025-02-08 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431328', 'tblTempUsageDetail_20' ) start [2025-02-08 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431328', 'tblTempUsageDetail_20' ) end [2025-02-08 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431328', 'tblTempVendorCDR_20' ) start [2025-02-08 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431328', 'tblTempVendorCDR_20' ) end [2025-02-08 17:45:19] Production.INFO: ProcessCDR(1,14431328,1,1,2) [2025-02-08 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431328', 'tblTempUsageDetail_20' ) start [2025-02-08 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431328', 'tblTempUsageDetail_20' ) end [2025-02-08 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:45:23] Production.INFO: ==28722== Releasing lock... [2025-02-08 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:46:05 [end_date_ymd] => 2025-02-08 17:46:05 [RateCDR] => 1 ) [2025-02-08 17:46: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` >= '2025-02-08 14:46:05' and `end` < '2025-02-08 17:46: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 ,'') [2025-02-08 17:46:18] Production.INFO: count ==1725 [2025-02-08 17:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:46:05 - End Time 2025-02-08 17:46:05 [2025-02-08 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431333', 'tblTempUsageDetail_20' ) start [2025-02-08 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431333', 'tblTempUsageDetail_20' ) end [2025-02-08 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431333', 'tblTempVendorCDR_20' ) start [2025-02-08 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431333', 'tblTempVendorCDR_20' ) end [2025-02-08 17:46:19] Production.INFO: ProcessCDR(1,14431333,1,1,2) [2025-02-08 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431333', 'tblTempUsageDetail_20' ) start [2025-02-08 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431333', 'tblTempUsageDetail_20' ) end [2025-02-08 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:46:23] Production.INFO: ==28798== Releasing lock... [2025-02-08 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:46:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:47:04 [end_date_ymd] => 2025-02-08 17:47:04 [RateCDR] => 1 ) [2025-02-08 17:47:04] 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-02-08 14:47:04' and `end` < '2025-02-08 17:47:04' 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-02-08 17:47:18] Production.INFO: count ==1721 [2025-02-08 17:47:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:47:04 - End Time 2025-02-08 17:47:04 [2025-02-08 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431338', 'tblTempUsageDetail_20' ) start [2025-02-08 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431338', 'tblTempUsageDetail_20' ) end [2025-02-08 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431338', 'tblTempVendorCDR_20' ) start [2025-02-08 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431338', 'tblTempVendorCDR_20' ) end [2025-02-08 17:47:18] Production.INFO: ProcessCDR(1,14431338,1,1,2) [2025-02-08 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431338', 'tblTempUsageDetail_20' ) start [2025-02-08 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431338', 'tblTempUsageDetail_20' ) end [2025-02-08 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:47:23] Production.INFO: ==28882== Releasing lock... [2025-02-08 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:47:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:48:05 [end_date_ymd] => 2025-02-08 17:48:05 [RateCDR] => 1 ) [2025-02-08 17:48: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` >= '2025-02-08 14:48:05' and `end` < '2025-02-08 17:48: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 ,'') [2025-02-08 17:48:19] Production.INFO: count ==1720 [2025-02-08 17:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:48:05 - End Time 2025-02-08 17:48:05 [2025-02-08 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431343', 'tblTempUsageDetail_20' ) start [2025-02-08 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431343', 'tblTempUsageDetail_20' ) end [2025-02-08 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431343', 'tblTempVendorCDR_20' ) start [2025-02-08 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431343', 'tblTempVendorCDR_20' ) end [2025-02-08 17:48:19] Production.INFO: ProcessCDR(1,14431343,1,1,2) [2025-02-08 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431343', 'tblTempUsageDetail_20' ) start [2025-02-08 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431343', 'tblTempUsageDetail_20' ) end [2025-02-08 17:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:48:22] Production.INFO: ==28971== Releasing lock... [2025-02-08 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:49:05 [end_date_ymd] => 2025-02-08 17:49:05 [RateCDR] => 1 ) [2025-02-08 17:49: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` >= '2025-02-08 14:49:05' and `end` < '2025-02-08 17:49: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 ,'') [2025-02-08 17:49:20] Production.INFO: count ==1720 [2025-02-08 17:49:20] Production.ERROR: pbx CDR StartTime 2025-02-08 14:49:05 - End Time 2025-02-08 17:49:05 [2025-02-08 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431348', 'tblTempUsageDetail_20' ) start [2025-02-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431348', 'tblTempUsageDetail_20' ) end [2025-02-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431348', 'tblTempVendorCDR_20' ) start [2025-02-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431348', 'tblTempVendorCDR_20' ) end [2025-02-08 17:49:20] Production.INFO: ProcessCDR(1,14431348,1,1,2) [2025-02-08 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431348', 'tblTempUsageDetail_20' ) start [2025-02-08 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431348', 'tblTempUsageDetail_20' ) end [2025-02-08 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:49:25] Production.INFO: ==29052== Releasing lock... [2025-02-08 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:49:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:50:07 [end_date_ymd] => 2025-02-08 17:50:07 [RateCDR] => 1 ) [2025-02-08 17:50: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-02-08 14:50:07' and `end` < '2025-02-08 17:50: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-02-08 17:50:22] Production.INFO: count ==1724 [2025-02-08 17:50:23] Production.ERROR: pbx CDR StartTime 2025-02-08 14:50:07 - End Time 2025-02-08 17:50:07 [2025-02-08 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431354', 'tblTempUsageDetail_20' ) start [2025-02-08 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431354', 'tblTempUsageDetail_20' ) end [2025-02-08 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431354', 'tblTempVendorCDR_20' ) start [2025-02-08 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431354', 'tblTempVendorCDR_20' ) end [2025-02-08 17:50:23] Production.INFO: ProcessCDR(1,14431354,1,1,2) [2025-02-08 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431354', 'tblTempUsageDetail_20' ) start [2025-02-08 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431354', 'tblTempUsageDetail_20' ) end [2025-02-08 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:50:28] Production.INFO: ==29132== Releasing lock... [2025-02-08 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:50:28] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:51:05 [end_date_ymd] => 2025-02-08 17:51:05 [RateCDR] => 1 ) [2025-02-08 17:51: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` >= '2025-02-08 14:51:05' and `end` < '2025-02-08 17:51: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 ,'') [2025-02-08 17:51:18] Production.INFO: count ==1734 [2025-02-08 17:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:51:05 - End Time 2025-02-08 17:51:05 [2025-02-08 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431359', 'tblTempUsageDetail_20' ) start [2025-02-08 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431359', 'tblTempUsageDetail_20' ) end [2025-02-08 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431359', 'tblTempVendorCDR_20' ) start [2025-02-08 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431359', 'tblTempVendorCDR_20' ) end [2025-02-08 17:51:19] Production.INFO: ProcessCDR(1,14431359,1,1,2) [2025-02-08 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431359', 'tblTempUsageDetail_20' ) start [2025-02-08 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431359', 'tblTempUsageDetail_20' ) end [2025-02-08 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:51:22] Production.INFO: ==29213== Releasing lock... [2025-02-08 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:51:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:52:06 [end_date_ymd] => 2025-02-08 17:52:06 [RateCDR] => 1 ) [2025-02-08 17:52: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-02-08 14:52:06' and `end` < '2025-02-08 17:52: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-02-08 17:52:19] Production.INFO: count ==1736 [2025-02-08 17:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:52:06 - End Time 2025-02-08 17:52:06 [2025-02-08 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431364', 'tblTempUsageDetail_20' ) start [2025-02-08 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431364', 'tblTempUsageDetail_20' ) end [2025-02-08 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431364', 'tblTempVendorCDR_20' ) start [2025-02-08 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431364', 'tblTempVendorCDR_20' ) end [2025-02-08 17:52:19] Production.INFO: ProcessCDR(1,14431364,1,1,2) [2025-02-08 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431364', 'tblTempUsageDetail_20' ) start [2025-02-08 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431364', 'tblTempUsageDetail_20' ) end [2025-02-08 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:52:23] Production.INFO: ==29290== Releasing lock... [2025-02-08 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:52:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:53:04 [end_date_ymd] => 2025-02-08 17:53:04 [RateCDR] => 1 ) [2025-02-08 17:53:04] 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-02-08 14:53:04' and `end` < '2025-02-08 17:53:04' 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-02-08 17:53:19] Production.INFO: count ==1729 [2025-02-08 17:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:53:04 - End Time 2025-02-08 17:53:04 [2025-02-08 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431369', 'tblTempUsageDetail_20' ) start [2025-02-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431369', 'tblTempUsageDetail_20' ) end [2025-02-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431369', 'tblTempVendorCDR_20' ) start [2025-02-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431369', 'tblTempVendorCDR_20' ) end [2025-02-08 17:53:20] Production.INFO: ProcessCDR(1,14431369,1,1,2) [2025-02-08 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431369', 'tblTempUsageDetail_20' ) start [2025-02-08 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431369', 'tblTempUsageDetail_20' ) end [2025-02-08 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:53:23] Production.INFO: ==29367== Releasing lock... [2025-02-08 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:54:05 [end_date_ymd] => 2025-02-08 17:54:05 [RateCDR] => 1 ) [2025-02-08 17:54: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` >= '2025-02-08 14:54:05' and `end` < '2025-02-08 17:54: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 ,'') [2025-02-08 17:54:18] Production.INFO: count ==1738 [2025-02-08 17:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:54:05 - End Time 2025-02-08 17:54:05 [2025-02-08 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431374', 'tblTempUsageDetail_20' ) start [2025-02-08 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431374', 'tblTempUsageDetail_20' ) end [2025-02-08 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431374', 'tblTempVendorCDR_20' ) start [2025-02-08 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431374', 'tblTempVendorCDR_20' ) end [2025-02-08 17:54:19] Production.INFO: ProcessCDR(1,14431374,1,1,2) [2025-02-08 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431374', 'tblTempUsageDetail_20' ) start [2025-02-08 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431374', 'tblTempUsageDetail_20' ) end [2025-02-08 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:54:22] Production.INFO: ==29484== Releasing lock... [2025-02-08 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:54:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:55:05 [end_date_ymd] => 2025-02-08 17:55:05 [RateCDR] => 1 ) [2025-02-08 17:55: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` >= '2025-02-08 14:55:05' and `end` < '2025-02-08 17:55: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 ,'') [2025-02-08 17:55:21] Production.INFO: count ==1747 [2025-02-08 17:55:21] Production.ERROR: pbx CDR StartTime 2025-02-08 14:55:05 - End Time 2025-02-08 17:55:05 [2025-02-08 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431379', 'tblTempUsageDetail_20' ) start [2025-02-08 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431379', 'tblTempUsageDetail_20' ) end [2025-02-08 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431379', 'tblTempVendorCDR_20' ) start [2025-02-08 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431379', 'tblTempVendorCDR_20' ) end [2025-02-08 17:55:21] Production.INFO: ProcessCDR(1,14431379,1,1,2) [2025-02-08 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431379', 'tblTempUsageDetail_20' ) start [2025-02-08 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431379', 'tblTempUsageDetail_20' ) end [2025-02-08 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:55:24] Production.INFO: ==29561== Releasing lock... [2025-02-08 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:55:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:56:05 [end_date_ymd] => 2025-02-08 17:56:05 [RateCDR] => 1 ) [2025-02-08 17:56: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` >= '2025-02-08 14:56:05' and `end` < '2025-02-08 17:56: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 ,'') [2025-02-08 17:56:21] Production.INFO: count ==1744 [2025-02-08 17:56:21] Production.ERROR: pbx CDR StartTime 2025-02-08 14:56:05 - End Time 2025-02-08 17:56:05 [2025-02-08 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431384', 'tblTempUsageDetail_20' ) start [2025-02-08 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431384', 'tblTempUsageDetail_20' ) end [2025-02-08 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431384', 'tblTempVendorCDR_20' ) start [2025-02-08 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431384', 'tblTempVendorCDR_20' ) end [2025-02-08 17:56:21] Production.INFO: ProcessCDR(1,14431384,1,1,2) [2025-02-08 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431384', 'tblTempUsageDetail_20' ) start [2025-02-08 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431384', 'tblTempUsageDetail_20' ) end [2025-02-08 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:56:24] Production.INFO: ==29635== Releasing lock... [2025-02-08 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:56:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:57:05 [end_date_ymd] => 2025-02-08 17:57:05 [RateCDR] => 1 ) [2025-02-08 17:57: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` >= '2025-02-08 14:57:05' and `end` < '2025-02-08 17:57: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 ,'') [2025-02-08 17:57:18] Production.INFO: count ==1743 [2025-02-08 17:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 14:57:05 - End Time 2025-02-08 17:57:05 [2025-02-08 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431389', 'tblTempUsageDetail_20' ) start [2025-02-08 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431389', 'tblTempUsageDetail_20' ) end [2025-02-08 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431389', 'tblTempVendorCDR_20' ) start [2025-02-08 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431389', 'tblTempVendorCDR_20' ) end [2025-02-08 17:57:18] Production.INFO: ProcessCDR(1,14431389,1,1,2) [2025-02-08 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431389', 'tblTempUsageDetail_20' ) start [2025-02-08 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431389', 'tblTempUsageDetail_20' ) end [2025-02-08 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:57:23] Production.INFO: ==29710== Releasing lock... [2025-02-08 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:57:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:58:05 [end_date_ymd] => 2025-02-08 17:58:05 [RateCDR] => 1 ) [2025-02-08 17:58: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` >= '2025-02-08 14:58:05' and `end` < '2025-02-08 17:58: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 ,'') [2025-02-08 17:58:18] Production.INFO: count ==1743 [2025-02-08 17:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:58:05 - End Time 2025-02-08 17:58:05 [2025-02-08 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431394', 'tblTempUsageDetail_20' ) start [2025-02-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431394', 'tblTempUsageDetail_20' ) end [2025-02-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431394', 'tblTempVendorCDR_20' ) start [2025-02-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431394', 'tblTempVendorCDR_20' ) end [2025-02-08 17:58:19] Production.INFO: ProcessCDR(1,14431394,1,1,2) [2025-02-08 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431394', 'tblTempUsageDetail_20' ) start [2025-02-08 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431394', 'tblTempUsageDetail_20' ) end [2025-02-08 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:58:22] Production.INFO: ==29784== Releasing lock... [2025-02-08 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:58:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 14:59:05 [end_date_ymd] => 2025-02-08 17:59:05 [RateCDR] => 1 ) [2025-02-08 17:59: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` >= '2025-02-08 14:59:05' and `end` < '2025-02-08 17:59: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 ,'') [2025-02-08 17:59:18] Production.INFO: count ==1740 [2025-02-08 17:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 14:59:05 - End Time 2025-02-08 17:59:05 [2025-02-08 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431399', 'tblTempUsageDetail_20' ) start [2025-02-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431399', 'tblTempUsageDetail_20' ) end [2025-02-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431399', 'tblTempVendorCDR_20' ) start [2025-02-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431399', 'tblTempVendorCDR_20' ) end [2025-02-08 17:59:19] Production.INFO: ProcessCDR(1,14431399,1,1,2) [2025-02-08 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431399', 'tblTempUsageDetail_20' ) start [2025-02-08 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431399', 'tblTempUsageDetail_20' ) end [2025-02-08 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 17:59:22] Production.INFO: ==29864== Releasing lock... [2025-02-08 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 17:59:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:00:06 [end_date_ymd] => 2025-02-08 18:00:06 [RateCDR] => 1 ) [2025-02-08 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 15:00:06' and `end` < '2025-02-08 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 18:00:19] Production.INFO: count ==1737 [2025-02-08 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:00:06 - End Time 2025-02-08 18:00:06 [2025-02-08 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431405', 'tblTempUsageDetail_20' ) start [2025-02-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431405', 'tblTempUsageDetail_20' ) end [2025-02-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431405', 'tblTempVendorCDR_20' ) start [2025-02-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431405', 'tblTempVendorCDR_20' ) end [2025-02-08 18:00:20] Production.INFO: ProcessCDR(1,14431405,1,1,2) [2025-02-08 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431405', 'tblTempUsageDetail_20' ) start [2025-02-08 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431405', 'tblTempUsageDetail_20' ) end [2025-02-08 18:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:00:23] Production.INFO: ==29946== Releasing lock... [2025-02-08 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:00:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:01:05 [end_date_ymd] => 2025-02-08 18:01:05 [RateCDR] => 1 ) [2025-02-08 18: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` >= '2025-02-08 15:01:05' and `end` < '2025-02-08 18: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 ,'') [2025-02-08 18:01:20] Production.INFO: count ==1784 [2025-02-08 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:01:05 - End Time 2025-02-08 18:01:05 [2025-02-08 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431410', 'tblTempUsageDetail_20' ) start [2025-02-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431410', 'tblTempUsageDetail_20' ) end [2025-02-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431410', 'tblTempVendorCDR_20' ) start [2025-02-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431410', 'tblTempVendorCDR_20' ) end [2025-02-08 18:01:20] Production.INFO: ProcessCDR(1,14431410,1,1,2) [2025-02-08 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431410', 'tblTempUsageDetail_20' ) start [2025-02-08 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431410', 'tblTempUsageDetail_20' ) end [2025-02-08 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:01:24] Production.INFO: ==30037== Releasing lock... [2025-02-08 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:01:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:02:05 [end_date_ymd] => 2025-02-08 18:02:05 [RateCDR] => 1 ) [2025-02-08 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 15:02:05' and `end` < '2025-02-08 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 18:02:19] Production.INFO: count ==1786 [2025-02-08 18:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:02:05 - End Time 2025-02-08 18:02:05 [2025-02-08 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431415', 'tblTempUsageDetail_20' ) start [2025-02-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431415', 'tblTempUsageDetail_20' ) end [2025-02-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431415', 'tblTempVendorCDR_20' ) start [2025-02-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431415', 'tblTempVendorCDR_20' ) end [2025-02-08 18:02:19] Production.INFO: ProcessCDR(1,14431415,1,1,2) [2025-02-08 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431415', 'tblTempUsageDetail_20' ) start [2025-02-08 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431415', 'tblTempUsageDetail_20' ) end [2025-02-08 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:02:22] Production.INFO: ==30111== Releasing lock... [2025-02-08 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:02:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:03:06 [end_date_ymd] => 2025-02-08 18:03:06 [RateCDR] => 1 ) [2025-02-08 18:03: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-02-08 15:03:06' and `end` < '2025-02-08 18:03: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-02-08 18:03:21] Production.INFO: count ==1787 [2025-02-08 18:03:21] Production.ERROR: pbx CDR StartTime 2025-02-08 15:03:06 - End Time 2025-02-08 18:03:06 [2025-02-08 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431420', 'tblTempUsageDetail_20' ) start [2025-02-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431420', 'tblTempUsageDetail_20' ) end [2025-02-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431420', 'tblTempVendorCDR_20' ) start [2025-02-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431420', 'tblTempVendorCDR_20' ) end [2025-02-08 18:03:22] Production.INFO: ProcessCDR(1,14431420,1,1,2) [2025-02-08 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431420', 'tblTempUsageDetail_20' ) start [2025-02-08 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431420', 'tblTempUsageDetail_20' ) end [2025-02-08 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:03:25] Production.INFO: ==30186== Releasing lock... [2025-02-08 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:03:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:04:05 [end_date_ymd] => 2025-02-08 18:04:05 [RateCDR] => 1 ) [2025-02-08 18:04: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` >= '2025-02-08 15:04:05' and `end` < '2025-02-08 18:04: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 ,'') [2025-02-08 18:04:19] Production.INFO: count ==1783 [2025-02-08 18:04:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:04:05 - End Time 2025-02-08 18:04:05 [2025-02-08 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431425', 'tblTempUsageDetail_20' ) start [2025-02-08 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431425', 'tblTempUsageDetail_20' ) end [2025-02-08 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431425', 'tblTempVendorCDR_20' ) start [2025-02-08 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431425', 'tblTempVendorCDR_20' ) end [2025-02-08 18:04:20] Production.INFO: ProcessCDR(1,14431425,1,1,2) [2025-02-08 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431425', 'tblTempUsageDetail_20' ) start [2025-02-08 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431425', 'tblTempUsageDetail_20' ) end [2025-02-08 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:04:23] Production.INFO: ==30263== Releasing lock... [2025-02-08 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:05:05 [end_date_ymd] => 2025-02-08 18:05:05 [RateCDR] => 1 ) [2025-02-08 18:05: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` >= '2025-02-08 15:05:05' and `end` < '2025-02-08 18:05: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 ,'') [2025-02-08 18:05:18] Production.INFO: count ==1778 [2025-02-08 18:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:05:05 - End Time 2025-02-08 18:05:05 [2025-02-08 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431430', 'tblTempUsageDetail_20' ) start [2025-02-08 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431430', 'tblTempUsageDetail_20' ) end [2025-02-08 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431430', 'tblTempVendorCDR_20' ) start [2025-02-08 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431430', 'tblTempVendorCDR_20' ) end [2025-02-08 18:05:18] Production.INFO: ProcessCDR(1,14431430,1,1,2) [2025-02-08 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431430', 'tblTempUsageDetail_20' ) start [2025-02-08 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431430', 'tblTempUsageDetail_20' ) end [2025-02-08 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:05:23] Production.INFO: ==30338== Releasing lock... [2025-02-08 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:05:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:06:05 [end_date_ymd] => 2025-02-08 18:06:05 [RateCDR] => 1 ) [2025-02-08 18:06: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` >= '2025-02-08 15:06:05' and `end` < '2025-02-08 18:06: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 ,'') [2025-02-08 18:06:18] Production.INFO: count ==1773 [2025-02-08 18:06:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:06:05 - End Time 2025-02-08 18:06:05 [2025-02-08 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431435', 'tblTempUsageDetail_20' ) start [2025-02-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431435', 'tblTempUsageDetail_20' ) end [2025-02-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431435', 'tblTempVendorCDR_20' ) start [2025-02-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431435', 'tblTempVendorCDR_20' ) end [2025-02-08 18:06:18] Production.INFO: ProcessCDR(1,14431435,1,1,2) [2025-02-08 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431435', 'tblTempUsageDetail_20' ) start [2025-02-08 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431435', 'tblTempUsageDetail_20' ) end [2025-02-08 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:06:23] Production.INFO: ==30414== Releasing lock... [2025-02-08 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:06:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:07:06 [end_date_ymd] => 2025-02-08 18:07:06 [RateCDR] => 1 ) [2025-02-08 18:07: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-02-08 15:07:06' and `end` < '2025-02-08 18:07: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-02-08 18:07:19] Production.INFO: count ==1772 [2025-02-08 18:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:07:06 - End Time 2025-02-08 18:07:06 [2025-02-08 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431440', 'tblTempUsageDetail_20' ) start [2025-02-08 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431440', 'tblTempUsageDetail_20' ) end [2025-02-08 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431440', 'tblTempVendorCDR_20' ) start [2025-02-08 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431440', 'tblTempVendorCDR_20' ) end [2025-02-08 18:07:19] Production.INFO: ProcessCDR(1,14431440,1,1,2) [2025-02-08 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431440', 'tblTempUsageDetail_20' ) start [2025-02-08 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431440', 'tblTempUsageDetail_20' ) end [2025-02-08 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:07:24] Production.INFO: ==30487== Releasing lock... [2025-02-08 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:07:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:08:05 [end_date_ymd] => 2025-02-08 18:08:05 [RateCDR] => 1 ) [2025-02-08 18:08: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` >= '2025-02-08 15:08:05' and `end` < '2025-02-08 18:08: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 ,'') [2025-02-08 18:08:19] Production.INFO: count ==1772 [2025-02-08 18:08:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:08:05 - End Time 2025-02-08 18:08:05 [2025-02-08 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431445', 'tblTempUsageDetail_20' ) start [2025-02-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431445', 'tblTempUsageDetail_20' ) end [2025-02-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431445', 'tblTempVendorCDR_20' ) start [2025-02-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431445', 'tblTempVendorCDR_20' ) end [2025-02-08 18:08:20] Production.INFO: ProcessCDR(1,14431445,1,1,2) [2025-02-08 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431445', 'tblTempUsageDetail_20' ) start [2025-02-08 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431445', 'tblTempUsageDetail_20' ) end [2025-02-08 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:08:24] Production.INFO: ==30559== Releasing lock... [2025-02-08 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:08:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:09:06 [end_date_ymd] => 2025-02-08 18:09:06 [RateCDR] => 1 ) [2025-02-08 18:09: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-02-08 15:09:06' and `end` < '2025-02-08 18:09: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-02-08 18:09:19] Production.INFO: count ==1773 [2025-02-08 18:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:09:06 - End Time 2025-02-08 18:09:06 [2025-02-08 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431450', 'tblTempUsageDetail_20' ) start [2025-02-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431450', 'tblTempUsageDetail_20' ) end [2025-02-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431450', 'tblTempVendorCDR_20' ) start [2025-02-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431450', 'tblTempVendorCDR_20' ) end [2025-02-08 18:09:19] Production.INFO: ProcessCDR(1,14431450,1,1,2) [2025-02-08 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431450', 'tblTempUsageDetail_20' ) start [2025-02-08 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431450', 'tblTempUsageDetail_20' ) end [2025-02-08 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:09:24] Production.INFO: ==30635== Releasing lock... [2025-02-08 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:09:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:10:05 [end_date_ymd] => 2025-02-08 18:10:05 [RateCDR] => 1 ) [2025-02-08 18:10: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` >= '2025-02-08 15:10:05' and `end` < '2025-02-08 18:10: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 ,'') [2025-02-08 18:10:19] Production.INFO: count ==1773 [2025-02-08 18:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:10:05 - End Time 2025-02-08 18:10:05 [2025-02-08 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431455', 'tblTempUsageDetail_20' ) start [2025-02-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431455', 'tblTempUsageDetail_20' ) end [2025-02-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431455', 'tblTempVendorCDR_20' ) start [2025-02-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431455', 'tblTempVendorCDR_20' ) end [2025-02-08 18:10:20] Production.INFO: ProcessCDR(1,14431455,1,1,2) [2025-02-08 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431455', 'tblTempUsageDetail_20' ) start [2025-02-08 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431455', 'tblTempUsageDetail_20' ) end [2025-02-08 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:10:24] Production.INFO: ==30750== Releasing lock... [2025-02-08 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:10:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:11:05 [end_date_ymd] => 2025-02-08 18:11:05 [RateCDR] => 1 ) [2025-02-08 18:11: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` >= '2025-02-08 15:11:05' and `end` < '2025-02-08 18:11: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 ,'') [2025-02-08 18:11:18] Production.INFO: count ==1803 [2025-02-08 18:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:11:05 - End Time 2025-02-08 18:11:05 [2025-02-08 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431461', 'tblTempUsageDetail_20' ) start [2025-02-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431461', 'tblTempUsageDetail_20' ) end [2025-02-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431461', 'tblTempVendorCDR_20' ) start [2025-02-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431461', 'tblTempVendorCDR_20' ) end [2025-02-08 18:11:19] Production.INFO: ProcessCDR(1,14431461,1,1,2) [2025-02-08 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431461', 'tblTempUsageDetail_20' ) start [2025-02-08 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431461', 'tblTempUsageDetail_20' ) end [2025-02-08 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:11:22] Production.INFO: ==30826== Releasing lock... [2025-02-08 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:12:05 [end_date_ymd] => 2025-02-08 18:12:05 [RateCDR] => 1 ) [2025-02-08 18:12: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` >= '2025-02-08 15:12:05' and `end` < '2025-02-08 18:12: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 ,'') [2025-02-08 18:12:18] Production.INFO: count ==1802 [2025-02-08 18:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:12:05 - End Time 2025-02-08 18:12:05 [2025-02-08 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431466', 'tblTempUsageDetail_20' ) start [2025-02-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431466', 'tblTempUsageDetail_20' ) end [2025-02-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431466', 'tblTempVendorCDR_20' ) start [2025-02-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431466', 'tblTempVendorCDR_20' ) end [2025-02-08 18:12:19] Production.INFO: ProcessCDR(1,14431466,1,1,2) [2025-02-08 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431466', 'tblTempUsageDetail_20' ) start [2025-02-08 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431466', 'tblTempUsageDetail_20' ) end [2025-02-08 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:12:22] Production.INFO: ==30907== Releasing lock... [2025-02-08 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:13:05 [end_date_ymd] => 2025-02-08 18:13:05 [RateCDR] => 1 ) [2025-02-08 18:13: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` >= '2025-02-08 15:13:05' and `end` < '2025-02-08 18:13: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 ,'') [2025-02-08 18:13:18] Production.INFO: count ==1793 [2025-02-08 18:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:13:05 - End Time 2025-02-08 18:13:05 [2025-02-08 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431471', 'tblTempUsageDetail_20' ) start [2025-02-08 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431471', 'tblTempUsageDetail_20' ) end [2025-02-08 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431471', 'tblTempVendorCDR_20' ) start [2025-02-08 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431471', 'tblTempVendorCDR_20' ) end [2025-02-08 18:13:19] Production.INFO: ProcessCDR(1,14431471,1,1,2) [2025-02-08 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431471', 'tblTempUsageDetail_20' ) start [2025-02-08 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431471', 'tblTempUsageDetail_20' ) end [2025-02-08 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:13:22] Production.INFO: ==30985== Releasing lock... [2025-02-08 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:14:05 [end_date_ymd] => 2025-02-08 18:14:05 [RateCDR] => 1 ) [2025-02-08 18:14: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` >= '2025-02-08 15:14:05' and `end` < '2025-02-08 18:14: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 ,'') [2025-02-08 18:14:19] Production.INFO: count ==1791 [2025-02-08 18:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:14:05 - End Time 2025-02-08 18:14:05 [2025-02-08 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431476', 'tblTempUsageDetail_20' ) start [2025-02-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431476', 'tblTempUsageDetail_20' ) end [2025-02-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431476', 'tblTempVendorCDR_20' ) start [2025-02-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431476', 'tblTempVendorCDR_20' ) end [2025-02-08 18:14:19] Production.INFO: ProcessCDR(1,14431476,1,1,2) [2025-02-08 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431476', 'tblTempUsageDetail_20' ) start [2025-02-08 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431476', 'tblTempUsageDetail_20' ) end [2025-02-08 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:14:23] Production.INFO: ==31058== Releasing lock... [2025-02-08 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:14:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:15:05 [end_date_ymd] => 2025-02-08 18:15:05 [RateCDR] => 1 ) [2025-02-08 18:15: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` >= '2025-02-08 15:15:05' and `end` < '2025-02-08 18:15: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 ,'') [2025-02-08 18:15:18] Production.INFO: count ==1790 [2025-02-08 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:15:05 - End Time 2025-02-08 18:15:05 [2025-02-08 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431481', 'tblTempUsageDetail_20' ) start [2025-02-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431481', 'tblTempUsageDetail_20' ) end [2025-02-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431481', 'tblTempVendorCDR_20' ) start [2025-02-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431481', 'tblTempVendorCDR_20' ) end [2025-02-08 18:15:19] Production.INFO: ProcessCDR(1,14431481,1,1,2) [2025-02-08 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431481', 'tblTempUsageDetail_20' ) start [2025-02-08 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431481', 'tblTempUsageDetail_20' ) end [2025-02-08 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:15:22] Production.INFO: ==31129== Releasing lock... [2025-02-08 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:15:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:16:06 [end_date_ymd] => 2025-02-08 18:16:06 [RateCDR] => 1 ) [2025-02-08 18:16: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-02-08 15:16:06' and `end` < '2025-02-08 18:16: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-02-08 18:16:20] Production.INFO: count ==1786 [2025-02-08 18:16:21] Production.ERROR: pbx CDR StartTime 2025-02-08 15:16:06 - End Time 2025-02-08 18:16:06 [2025-02-08 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431486', 'tblTempUsageDetail_20' ) start [2025-02-08 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431486', 'tblTempUsageDetail_20' ) end [2025-02-08 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431486', 'tblTempVendorCDR_20' ) start [2025-02-08 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431486', 'tblTempVendorCDR_20' ) end [2025-02-08 18:16:21] Production.INFO: ProcessCDR(1,14431486,1,1,2) [2025-02-08 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431486', 'tblTempUsageDetail_20' ) start [2025-02-08 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431486', 'tblTempUsageDetail_20' ) end [2025-02-08 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:16:24] Production.INFO: ==31206== Releasing lock... [2025-02-08 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:16:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:17:05 [end_date_ymd] => 2025-02-08 18:17:05 [RateCDR] => 1 ) [2025-02-08 18:17: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` >= '2025-02-08 15:17:05' and `end` < '2025-02-08 18:17: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 ,'') [2025-02-08 18:17:18] Production.INFO: count ==1786 [2025-02-08 18:17:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:17:05 - End Time 2025-02-08 18:17:05 [2025-02-08 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431491', 'tblTempUsageDetail_20' ) start [2025-02-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431491', 'tblTempUsageDetail_20' ) end [2025-02-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431491', 'tblTempVendorCDR_20' ) start [2025-02-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431491', 'tblTempVendorCDR_20' ) end [2025-02-08 18:17:18] Production.INFO: ProcessCDR(1,14431491,1,1,2) [2025-02-08 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431491', 'tblTempUsageDetail_20' ) start [2025-02-08 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431491', 'tblTempUsageDetail_20' ) end [2025-02-08 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:17:22] Production.INFO: ==31278== Releasing lock... [2025-02-08 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:17:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:18:05 [end_date_ymd] => 2025-02-08 18:18:05 [RateCDR] => 1 ) [2025-02-08 18:18: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` >= '2025-02-08 15:18:05' and `end` < '2025-02-08 18:18: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 ,'') [2025-02-08 18:18:18] Production.INFO: count ==1777 [2025-02-08 18:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:18:05 - End Time 2025-02-08 18:18:05 [2025-02-08 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431496', 'tblTempUsageDetail_20' ) start [2025-02-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431496', 'tblTempUsageDetail_20' ) end [2025-02-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431496', 'tblTempVendorCDR_20' ) start [2025-02-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431496', 'tblTempVendorCDR_20' ) end [2025-02-08 18:18:19] Production.INFO: ProcessCDR(1,14431496,1,1,2) [2025-02-08 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431496', 'tblTempUsageDetail_20' ) start [2025-02-08 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431496', 'tblTempUsageDetail_20' ) end [2025-02-08 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:18:22] Production.INFO: ==31348== Releasing lock... [2025-02-08 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:19:04 [end_date_ymd] => 2025-02-08 18:19:04 [RateCDR] => 1 ) [2025-02-08 18:19:04] 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-02-08 15:19:04' and `end` < '2025-02-08 18:19:04' 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-02-08 18:19:17] Production.INFO: count ==1774 [2025-02-08 18:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:19:04 - End Time 2025-02-08 18:19:04 [2025-02-08 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431501', 'tblTempUsageDetail_20' ) start [2025-02-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431501', 'tblTempUsageDetail_20' ) end [2025-02-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431501', 'tblTempVendorCDR_20' ) start [2025-02-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431501', 'tblTempVendorCDR_20' ) end [2025-02-08 18:19:18] Production.INFO: ProcessCDR(1,14431501,1,1,2) [2025-02-08 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431501', 'tblTempUsageDetail_20' ) start [2025-02-08 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431501', 'tblTempUsageDetail_20' ) end [2025-02-08 18:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:19:21] Production.INFO: ==31425== Releasing lock... [2025-02-08 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:19:21] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:20:06 [end_date_ymd] => 2025-02-08 18:20:06 [RateCDR] => 1 ) [2025-02-08 18:20: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-02-08 15:20:06' and `end` < '2025-02-08 18:20: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-02-08 18:20:19] Production.INFO: count ==1762 [2025-02-08 18:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:20:06 - End Time 2025-02-08 18:20:06 [2025-02-08 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431506', 'tblTempUsageDetail_20' ) start [2025-02-08 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431506', 'tblTempUsageDetail_20' ) end [2025-02-08 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431506', 'tblTempVendorCDR_20' ) start [2025-02-08 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431506', 'tblTempVendorCDR_20' ) end [2025-02-08 18:20:20] Production.INFO: ProcessCDR(1,14431506,1,1,2) [2025-02-08 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431506', 'tblTempUsageDetail_20' ) start [2025-02-08 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431506', 'tblTempUsageDetail_20' ) end [2025-02-08 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:20:23] Production.INFO: ==31503== Releasing lock... [2025-02-08 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:20:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:21:05 [end_date_ymd] => 2025-02-08 18:21:05 [RateCDR] => 1 ) [2025-02-08 18:21: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` >= '2025-02-08 15:21:05' and `end` < '2025-02-08 18:21: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 ,'') [2025-02-08 18:21:18] Production.INFO: count ==1741 [2025-02-08 18:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:21:05 - End Time 2025-02-08 18:21:05 [2025-02-08 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431512', 'tblTempUsageDetail_20' ) start [2025-02-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431512', 'tblTempUsageDetail_20' ) end [2025-02-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431512', 'tblTempVendorCDR_20' ) start [2025-02-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431512', 'tblTempVendorCDR_20' ) end [2025-02-08 18:21:19] Production.INFO: ProcessCDR(1,14431512,1,1,2) [2025-02-08 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431512', 'tblTempUsageDetail_20' ) start [2025-02-08 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431512', 'tblTempUsageDetail_20' ) end [2025-02-08 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:21:23] Production.INFO: ==31577== Releasing lock... [2025-02-08 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:21:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:22:05 [end_date_ymd] => 2025-02-08 18:22:05 [RateCDR] => 1 ) [2025-02-08 18:22: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` >= '2025-02-08 15:22:05' and `end` < '2025-02-08 18:22: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 ,'') [2025-02-08 18:22:19] Production.INFO: count ==1741 [2025-02-08 18:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:22:05 - End Time 2025-02-08 18:22:05 [2025-02-08 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431517', 'tblTempUsageDetail_20' ) start [2025-02-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431517', 'tblTempUsageDetail_20' ) end [2025-02-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431517', 'tblTempVendorCDR_20' ) start [2025-02-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431517', 'tblTempVendorCDR_20' ) end [2025-02-08 18:22:19] Production.INFO: ProcessCDR(1,14431517,1,1,2) [2025-02-08 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431517', 'tblTempUsageDetail_20' ) start [2025-02-08 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431517', 'tblTempUsageDetail_20' ) end [2025-02-08 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:22:23] Production.INFO: ==31651== Releasing lock... [2025-02-08 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:22:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:23:04 [end_date_ymd] => 2025-02-08 18:23:04 [RateCDR] => 1 ) [2025-02-08 18:23:04] 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-02-08 15:23:04' and `end` < '2025-02-08 18:23:04' 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-02-08 18:23:19] Production.INFO: count ==1747 [2025-02-08 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:23:04 - End Time 2025-02-08 18:23:04 [2025-02-08 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431522', 'tblTempUsageDetail_20' ) start [2025-02-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431522', 'tblTempUsageDetail_20' ) end [2025-02-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431522', 'tblTempVendorCDR_20' ) start [2025-02-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431522', 'tblTempVendorCDR_20' ) end [2025-02-08 18:23:19] Production.INFO: ProcessCDR(1,14431522,1,1,2) [2025-02-08 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431522', 'tblTempUsageDetail_20' ) start [2025-02-08 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431522', 'tblTempUsageDetail_20' ) end [2025-02-08 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:23:22] Production.INFO: ==31724== Releasing lock... [2025-02-08 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:24:05 [end_date_ymd] => 2025-02-08 18:24:05 [RateCDR] => 1 ) [2025-02-08 18:24: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` >= '2025-02-08 15:24:05' and `end` < '2025-02-08 18:24: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 ,'') [2025-02-08 18:24:20] Production.INFO: count ==1749 [2025-02-08 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-08 15:24:05 - End Time 2025-02-08 18:24:05 [2025-02-08 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431527', 'tblTempUsageDetail_20' ) start [2025-02-08 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431527', 'tblTempUsageDetail_20' ) end [2025-02-08 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431527', 'tblTempVendorCDR_20' ) start [2025-02-08 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431527', 'tblTempVendorCDR_20' ) end [2025-02-08 18:24:21] Production.INFO: ProcessCDR(1,14431527,1,1,2) [2025-02-08 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431527', 'tblTempUsageDetail_20' ) start [2025-02-08 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431527', 'tblTempUsageDetail_20' ) end [2025-02-08 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:24:25] Production.INFO: ==31800== Releasing lock... [2025-02-08 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:24:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:25:05 [end_date_ymd] => 2025-02-08 18:25:05 [RateCDR] => 1 ) [2025-02-08 18:25: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` >= '2025-02-08 15:25:05' and `end` < '2025-02-08 18:25: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 ,'') [2025-02-08 18:25:18] Production.INFO: count ==1751 [2025-02-08 18:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:25:05 - End Time 2025-02-08 18:25:05 [2025-02-08 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431532', 'tblTempUsageDetail_20' ) start [2025-02-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431532', 'tblTempUsageDetail_20' ) end [2025-02-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431532', 'tblTempVendorCDR_20' ) start [2025-02-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431532', 'tblTempVendorCDR_20' ) end [2025-02-08 18:25:18] Production.INFO: ProcessCDR(1,14431532,1,1,2) [2025-02-08 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431532', 'tblTempUsageDetail_20' ) start [2025-02-08 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431532', 'tblTempUsageDetail_20' ) end [2025-02-08 18:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:25:21] Production.INFO: ==31915== Releasing lock... [2025-02-08 18:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:25:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:26:05 [end_date_ymd] => 2025-02-08 18:26:05 [RateCDR] => 1 ) [2025-02-08 18:26: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` >= '2025-02-08 15:26:05' and `end` < '2025-02-08 18:26: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 ,'') [2025-02-08 18:26:18] Production.INFO: count ==1749 [2025-02-08 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:26:05 - End Time 2025-02-08 18:26:05 [2025-02-08 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431537', 'tblTempUsageDetail_20' ) start [2025-02-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431537', 'tblTempUsageDetail_20' ) end [2025-02-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431537', 'tblTempVendorCDR_20' ) start [2025-02-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431537', 'tblTempVendorCDR_20' ) end [2025-02-08 18:26:19] Production.INFO: ProcessCDR(1,14431537,1,1,2) [2025-02-08 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431537', 'tblTempUsageDetail_20' ) start [2025-02-08 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431537', 'tblTempUsageDetail_20' ) end [2025-02-08 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:26:23] Production.INFO: ==31993== Releasing lock... [2025-02-08 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:27:05 [end_date_ymd] => 2025-02-08 18:27:05 [RateCDR] => 1 ) [2025-02-08 18:27: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` >= '2025-02-08 15:27:05' and `end` < '2025-02-08 18:27: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 ,'') [2025-02-08 18:27:18] Production.INFO: count ==1741 [2025-02-08 18:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:27:05 - End Time 2025-02-08 18:27:05 [2025-02-08 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431542', 'tblTempUsageDetail_20' ) start [2025-02-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431542', 'tblTempUsageDetail_20' ) end [2025-02-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431542', 'tblTempVendorCDR_20' ) start [2025-02-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431542', 'tblTempVendorCDR_20' ) end [2025-02-08 18:27:18] Production.INFO: ProcessCDR(1,14431542,1,1,2) [2025-02-08 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431542', 'tblTempUsageDetail_20' ) start [2025-02-08 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431542', 'tblTempUsageDetail_20' ) end [2025-02-08 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:27:22] Production.INFO: ==32067== Releasing lock... [2025-02-08 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:28:05 [end_date_ymd] => 2025-02-08 18:28:05 [RateCDR] => 1 ) [2025-02-08 18:28: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` >= '2025-02-08 15:28:05' and `end` < '2025-02-08 18:28: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 ,'') [2025-02-08 18:28:19] Production.INFO: count ==1741 [2025-02-08 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:28:05 - End Time 2025-02-08 18:28:05 [2025-02-08 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431547', 'tblTempUsageDetail_20' ) start [2025-02-08 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431547', 'tblTempUsageDetail_20' ) end [2025-02-08 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431547', 'tblTempVendorCDR_20' ) start [2025-02-08 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431547', 'tblTempVendorCDR_20' ) end [2025-02-08 18:28:19] Production.INFO: ProcessCDR(1,14431547,1,1,2) [2025-02-08 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431547', 'tblTempUsageDetail_20' ) start [2025-02-08 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431547', 'tblTempUsageDetail_20' ) end [2025-02-08 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:28:23] Production.INFO: ==32148== Releasing lock... [2025-02-08 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:29:05 [end_date_ymd] => 2025-02-08 18:29:05 [RateCDR] => 1 ) [2025-02-08 18:29: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` >= '2025-02-08 15:29:05' and `end` < '2025-02-08 18:29: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 ,'') [2025-02-08 18:29:18] Production.INFO: count ==1741 [2025-02-08 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:29:05 - End Time 2025-02-08 18:29:05 [2025-02-08 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431552', 'tblTempUsageDetail_20' ) start [2025-02-08 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431552', 'tblTempUsageDetail_20' ) end [2025-02-08 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431552', 'tblTempVendorCDR_20' ) start [2025-02-08 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431552', 'tblTempVendorCDR_20' ) end [2025-02-08 18:29:19] Production.INFO: ProcessCDR(1,14431552,1,1,2) [2025-02-08 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431552', 'tblTempUsageDetail_20' ) start [2025-02-08 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431552', 'tblTempUsageDetail_20' ) end [2025-02-08 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:29:22] Production.INFO: ==32223== Releasing lock... [2025-02-08 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:30:05 [end_date_ymd] => 2025-02-08 18:30:05 [RateCDR] => 1 ) [2025-02-08 18:30: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` >= '2025-02-08 15:30:05' and `end` < '2025-02-08 18:30: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 ,'') [2025-02-08 18:30:18] Production.INFO: count ==1740 [2025-02-08 18:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:30:05 - End Time 2025-02-08 18:30:05 [2025-02-08 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431557', 'tblTempUsageDetail_20' ) start [2025-02-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431557', 'tblTempUsageDetail_20' ) end [2025-02-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431557', 'tblTempVendorCDR_20' ) start [2025-02-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431557', 'tblTempVendorCDR_20' ) end [2025-02-08 18:30:19] Production.INFO: ProcessCDR(1,14431557,1,1,2) [2025-02-08 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431557', 'tblTempUsageDetail_20' ) start [2025-02-08 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431557', 'tblTempUsageDetail_20' ) end [2025-02-08 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:30:22] Production.INFO: ==32305== Releasing lock... [2025-02-08 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:31:05 [end_date_ymd] => 2025-02-08 18:31:05 [RateCDR] => 1 ) [2025-02-08 18:31: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` >= '2025-02-08 15:31:05' and `end` < '2025-02-08 18:31: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 ,'') [2025-02-08 18:31:19] Production.INFO: count ==1763 [2025-02-08 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:31:05 - End Time 2025-02-08 18:31:05 [2025-02-08 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431563', 'tblTempUsageDetail_20' ) start [2025-02-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431563', 'tblTempUsageDetail_20' ) end [2025-02-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431563', 'tblTempVendorCDR_20' ) start [2025-02-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431563', 'tblTempVendorCDR_20' ) end [2025-02-08 18:31:19] Production.INFO: ProcessCDR(1,14431563,1,1,2) [2025-02-08 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431563', 'tblTempUsageDetail_20' ) start [2025-02-08 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431563', 'tblTempUsageDetail_20' ) end [2025-02-08 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:31:23] Production.INFO: ==32388== Releasing lock... [2025-02-08 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:31:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:32:04 [end_date_ymd] => 2025-02-08 18:32:04 [RateCDR] => 1 ) [2025-02-08 18:32:04] 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-02-08 15:32:04' and `end` < '2025-02-08 18:32:04' 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-02-08 18:32:18] Production.INFO: count ==1761 [2025-02-08 18:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:32:04 - End Time 2025-02-08 18:32:04 [2025-02-08 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431568', 'tblTempUsageDetail_20' ) start [2025-02-08 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431568', 'tblTempUsageDetail_20' ) end [2025-02-08 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431568', 'tblTempVendorCDR_20' ) start [2025-02-08 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431568', 'tblTempVendorCDR_20' ) end [2025-02-08 18:32:18] Production.INFO: ProcessCDR(1,14431568,1,1,2) [2025-02-08 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431568', 'tblTempUsageDetail_20' ) start [2025-02-08 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431568', 'tblTempUsageDetail_20' ) end [2025-02-08 18:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:32:21] Production.INFO: ==32469== Releasing lock... [2025-02-08 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:32:21] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:33:05 [end_date_ymd] => 2025-02-08 18:33:05 [RateCDR] => 1 ) [2025-02-08 18:33: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` >= '2025-02-08 15:33:05' and `end` < '2025-02-08 18:33: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 ,'') [2025-02-08 18:33:19] Production.INFO: count ==1759 [2025-02-08 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:33:05 - End Time 2025-02-08 18:33:05 [2025-02-08 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431573', 'tblTempUsageDetail_20' ) start [2025-02-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431573', 'tblTempUsageDetail_20' ) end [2025-02-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431573', 'tblTempVendorCDR_20' ) start [2025-02-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431573', 'tblTempVendorCDR_20' ) end [2025-02-08 18:33:19] Production.INFO: ProcessCDR(1,14431573,1,1,2) [2025-02-08 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431573', 'tblTempUsageDetail_20' ) start [2025-02-08 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431573', 'tblTempUsageDetail_20' ) end [2025-02-08 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:33:22] Production.INFO: ==32548== Releasing lock... [2025-02-08 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:33:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:34:05 [end_date_ymd] => 2025-02-08 18:34:05 [RateCDR] => 1 ) [2025-02-08 18:34: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` >= '2025-02-08 15:34:05' and `end` < '2025-02-08 18:34: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 ,'') [2025-02-08 18:34:19] Production.INFO: count ==1760 [2025-02-08 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:34:05 - End Time 2025-02-08 18:34:05 [2025-02-08 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431578', 'tblTempUsageDetail_20' ) start [2025-02-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431578', 'tblTempUsageDetail_20' ) end [2025-02-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431578', 'tblTempVendorCDR_20' ) start [2025-02-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431578', 'tblTempVendorCDR_20' ) end [2025-02-08 18:34:19] Production.INFO: ProcessCDR(1,14431578,1,1,2) [2025-02-08 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431578', 'tblTempUsageDetail_20' ) start [2025-02-08 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431578', 'tblTempUsageDetail_20' ) end [2025-02-08 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:34:24] Production.INFO: ==32631== Releasing lock... [2025-02-08 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:34:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:35:05 [end_date_ymd] => 2025-02-08 18:35:05 [RateCDR] => 1 ) [2025-02-08 18:35: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` >= '2025-02-08 15:35:05' and `end` < '2025-02-08 18:35: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 ,'') [2025-02-08 18:35:23] Production.INFO: count ==1755 [2025-02-08 18:35:23] Production.ERROR: pbx CDR StartTime 2025-02-08 15:35:05 - End Time 2025-02-08 18:35:05 [2025-02-08 18:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431583', 'tblTempUsageDetail_20' ) start [2025-02-08 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431583', 'tblTempUsageDetail_20' ) end [2025-02-08 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431583', 'tblTempVendorCDR_20' ) start [2025-02-08 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431583', 'tblTempVendorCDR_20' ) end [2025-02-08 18:35:23] Production.INFO: ProcessCDR(1,14431583,1,1,2) [2025-02-08 18:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431583', 'tblTempUsageDetail_20' ) start [2025-02-08 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431583', 'tblTempUsageDetail_20' ) end [2025-02-08 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:35:26] Production.INFO: ==32713== Releasing lock... [2025-02-08 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:35:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:36:05 [end_date_ymd] => 2025-02-08 18:36:05 [RateCDR] => 1 ) [2025-02-08 18:36: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` >= '2025-02-08 15:36:05' and `end` < '2025-02-08 18:36: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 ,'') [2025-02-08 18:36:18] Production.INFO: count ==1743 [2025-02-08 18:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:36:05 - End Time 2025-02-08 18:36:05 [2025-02-08 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431588', 'tblTempUsageDetail_20' ) start [2025-02-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431588', 'tblTempUsageDetail_20' ) end [2025-02-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431588', 'tblTempVendorCDR_20' ) start [2025-02-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431588', 'tblTempVendorCDR_20' ) end [2025-02-08 18:36:18] Production.INFO: ProcessCDR(1,14431588,1,1,2) [2025-02-08 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431588', 'tblTempUsageDetail_20' ) start [2025-02-08 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431588', 'tblTempUsageDetail_20' ) end [2025-02-08 18:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:36:21] Production.INFO: ==334== Releasing lock... [2025-02-08 18:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:36:21] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:37:05 [end_date_ymd] => 2025-02-08 18:37:05 [RateCDR] => 1 ) [2025-02-08 18:37: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` >= '2025-02-08 15:37:05' and `end` < '2025-02-08 18:37: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 ,'') [2025-02-08 18:37:19] Production.INFO: count ==1736 [2025-02-08 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:37:05 - End Time 2025-02-08 18:37:05 [2025-02-08 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431593', 'tblTempUsageDetail_20' ) start [2025-02-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431593', 'tblTempUsageDetail_20' ) end [2025-02-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431593', 'tblTempVendorCDR_20' ) start [2025-02-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431593', 'tblTempVendorCDR_20' ) end [2025-02-08 18:37:19] Production.INFO: ProcessCDR(1,14431593,1,1,2) [2025-02-08 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431593', 'tblTempUsageDetail_20' ) start [2025-02-08 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431593', 'tblTempUsageDetail_20' ) end [2025-02-08 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:37:23] Production.INFO: ==428== Releasing lock... [2025-02-08 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:37:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:38:05 [end_date_ymd] => 2025-02-08 18:38:05 [RateCDR] => 1 ) [2025-02-08 18:38: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` >= '2025-02-08 15:38:05' and `end` < '2025-02-08 18:38: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 ,'') [2025-02-08 18:38:19] Production.INFO: count ==1733 [2025-02-08 18:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:38:05 - End Time 2025-02-08 18:38:05 [2025-02-08 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431598', 'tblTempUsageDetail_20' ) start [2025-02-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431598', 'tblTempUsageDetail_20' ) end [2025-02-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431598', 'tblTempVendorCDR_20' ) start [2025-02-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431598', 'tblTempVendorCDR_20' ) end [2025-02-08 18:38:19] Production.INFO: ProcessCDR(1,14431598,1,1,2) [2025-02-08 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431598', 'tblTempUsageDetail_20' ) start [2025-02-08 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431598', 'tblTempUsageDetail_20' ) end [2025-02-08 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:38:22] Production.INFO: ==518== Releasing lock... [2025-02-08 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:38:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:39:05 [end_date_ymd] => 2025-02-08 18:39:05 [RateCDR] => 1 ) [2025-02-08 18:39: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` >= '2025-02-08 15:39:05' and `end` < '2025-02-08 18:39: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 ,'') [2025-02-08 18:39:20] Production.INFO: count ==1733 [2025-02-08 18:39:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:39:05 - End Time 2025-02-08 18:39:05 [2025-02-08 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431603', 'tblTempUsageDetail_20' ) start [2025-02-08 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431603', 'tblTempUsageDetail_20' ) end [2025-02-08 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431603', 'tblTempVendorCDR_20' ) start [2025-02-08 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431603', 'tblTempVendorCDR_20' ) end [2025-02-08 18:39:21] Production.INFO: ProcessCDR(1,14431603,1,1,2) [2025-02-08 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431603', 'tblTempUsageDetail_20' ) start [2025-02-08 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431603', 'tblTempUsageDetail_20' ) end [2025-02-08 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:39:24] Production.INFO: ==611== Releasing lock... [2025-02-08 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:39:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:40:06 [end_date_ymd] => 2025-02-08 18:40:06 [RateCDR] => 1 ) [2025-02-08 18:40: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-02-08 15:40:06' and `end` < '2025-02-08 18:40: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-02-08 18:40:22] Production.INFO: count ==1734 [2025-02-08 18:40:22] Production.ERROR: pbx CDR StartTime 2025-02-08 15:40:06 - End Time 2025-02-08 18:40:06 [2025-02-08 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431609', 'tblTempUsageDetail_20' ) start [2025-02-08 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431609', 'tblTempUsageDetail_20' ) end [2025-02-08 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431609', 'tblTempVendorCDR_20' ) start [2025-02-08 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431609', 'tblTempVendorCDR_20' ) end [2025-02-08 18:40:22] Production.INFO: ProcessCDR(1,14431609,1,1,2) [2025-02-08 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431609', 'tblTempUsageDetail_20' ) start [2025-02-08 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431609', 'tblTempUsageDetail_20' ) end [2025-02-08 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:40:26] Production.INFO: ==725== Releasing lock... [2025-02-08 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:40:26] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:41:04 [end_date_ymd] => 2025-02-08 18:41:04 [RateCDR] => 1 ) [2025-02-08 18:41:04] 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-02-08 15:41:04' and `end` < '2025-02-08 18:41:04' 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-02-08 18:41:17] Production.INFO: count ==1754 [2025-02-08 18:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:41:04 - End Time 2025-02-08 18:41:04 [2025-02-08 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431614', 'tblTempUsageDetail_20' ) start [2025-02-08 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431614', 'tblTempUsageDetail_20' ) end [2025-02-08 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431614', 'tblTempVendorCDR_20' ) start [2025-02-08 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431614', 'tblTempVendorCDR_20' ) end [2025-02-08 18:41:18] Production.INFO: ProcessCDR(1,14431614,1,1,2) [2025-02-08 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431614', 'tblTempUsageDetail_20' ) start [2025-02-08 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431614', 'tblTempUsageDetail_20' ) end [2025-02-08 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:41:23] Production.INFO: ==854== Releasing lock... [2025-02-08 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:41:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:42:05 [end_date_ymd] => 2025-02-08 18:42:05 [RateCDR] => 1 ) [2025-02-08 18:42: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` >= '2025-02-08 15:42:05' and `end` < '2025-02-08 18:42: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 ,'') [2025-02-08 18:42:18] Production.INFO: count ==1754 [2025-02-08 18:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:42:05 - End Time 2025-02-08 18:42:05 [2025-02-08 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431619', 'tblTempUsageDetail_20' ) start [2025-02-08 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431619', 'tblTempUsageDetail_20' ) end [2025-02-08 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431619', 'tblTempVendorCDR_20' ) start [2025-02-08 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431619', 'tblTempVendorCDR_20' ) end [2025-02-08 18:42:19] Production.INFO: ProcessCDR(1,14431619,1,1,2) [2025-02-08 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431619', 'tblTempUsageDetail_20' ) start [2025-02-08 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431619', 'tblTempUsageDetail_20' ) end [2025-02-08 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:42:23] Production.INFO: ==935== Releasing lock... [2025-02-08 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:42:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:43:05 [end_date_ymd] => 2025-02-08 18:43:05 [RateCDR] => 1 ) [2025-02-08 18:43: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` >= '2025-02-08 15:43:05' and `end` < '2025-02-08 18:43: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 ,'') [2025-02-08 18:43:18] Production.INFO: count ==1754 [2025-02-08 18:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:43:05 - End Time 2025-02-08 18:43:05 [2025-02-08 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431624', 'tblTempUsageDetail_20' ) start [2025-02-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431624', 'tblTempUsageDetail_20' ) end [2025-02-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431624', 'tblTempVendorCDR_20' ) start [2025-02-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431624', 'tblTempVendorCDR_20' ) end [2025-02-08 18:43:18] Production.INFO: ProcessCDR(1,14431624,1,1,2) [2025-02-08 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431624', 'tblTempUsageDetail_20' ) start [2025-02-08 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431624', 'tblTempUsageDetail_20' ) end [2025-02-08 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:43:23] Production.INFO: ==1018== Releasing lock... [2025-02-08 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:43:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:44:05 [end_date_ymd] => 2025-02-08 18:44:05 [RateCDR] => 1 ) [2025-02-08 18:44: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` >= '2025-02-08 15:44:05' and `end` < '2025-02-08 18:44: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 ,'') [2025-02-08 18:44:18] Production.INFO: count ==1753 [2025-02-08 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:44:05 - End Time 2025-02-08 18:44:05 [2025-02-08 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431629', 'tblTempUsageDetail_20' ) start [2025-02-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431629', 'tblTempUsageDetail_20' ) end [2025-02-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431629', 'tblTempVendorCDR_20' ) start [2025-02-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431629', 'tblTempVendorCDR_20' ) end [2025-02-08 18:44:19] Production.INFO: ProcessCDR(1,14431629,1,1,2) [2025-02-08 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431629', 'tblTempUsageDetail_20' ) start [2025-02-08 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431629', 'tblTempUsageDetail_20' ) end [2025-02-08 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:44:24] Production.INFO: ==1104== Releasing lock... [2025-02-08 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:44:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:45:04 [end_date_ymd] => 2025-02-08 18:45:04 [RateCDR] => 1 ) [2025-02-08 18:45:04] 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-02-08 15:45:04' and `end` < '2025-02-08 18:45:04' 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-02-08 18:45:18] Production.INFO: count ==1741 [2025-02-08 18:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:45:04 - End Time 2025-02-08 18:45:04 [2025-02-08 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431634', 'tblTempUsageDetail_20' ) start [2025-02-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431634', 'tblTempUsageDetail_20' ) end [2025-02-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431634', 'tblTempVendorCDR_20' ) start [2025-02-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431634', 'tblTempVendorCDR_20' ) end [2025-02-08 18:45:18] Production.INFO: ProcessCDR(1,14431634,1,1,2) [2025-02-08 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431634', 'tblTempUsageDetail_20' ) start [2025-02-08 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431634', 'tblTempUsageDetail_20' ) end [2025-02-08 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:45:23] Production.INFO: ==1193== Releasing lock... [2025-02-08 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:46:05 [end_date_ymd] => 2025-02-08 18:46:05 [RateCDR] => 1 ) [2025-02-08 18:46: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` >= '2025-02-08 15:46:05' and `end` < '2025-02-08 18:46: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 ,'') [2025-02-08 18:46:19] Production.INFO: count ==1740 [2025-02-08 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:46:05 - End Time 2025-02-08 18:46:05 [2025-02-08 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431639', 'tblTempUsageDetail_20' ) start [2025-02-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431639', 'tblTempUsageDetail_20' ) end [2025-02-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431639', 'tblTempVendorCDR_20' ) start [2025-02-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431639', 'tblTempVendorCDR_20' ) end [2025-02-08 18:46:19] Production.INFO: ProcessCDR(1,14431639,1,1,2) [2025-02-08 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431639', 'tblTempUsageDetail_20' ) start [2025-02-08 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431639', 'tblTempUsageDetail_20' ) end [2025-02-08 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:46:23] Production.INFO: ==1290== Releasing lock... [2025-02-08 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:46:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:47:05 [end_date_ymd] => 2025-02-08 18:47:05 [RateCDR] => 1 ) [2025-02-08 18:47: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` >= '2025-02-08 15:47:05' and `end` < '2025-02-08 18:47: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 ,'') [2025-02-08 18:47:19] Production.INFO: count ==1730 [2025-02-08 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:47:05 - End Time 2025-02-08 18:47:05 [2025-02-08 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431644', 'tblTempUsageDetail_20' ) start [2025-02-08 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431644', 'tblTempUsageDetail_20' ) end [2025-02-08 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431644', 'tblTempVendorCDR_20' ) start [2025-02-08 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431644', 'tblTempVendorCDR_20' ) end [2025-02-08 18:47:20] Production.INFO: ProcessCDR(1,14431644,1,1,2) [2025-02-08 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431644', 'tblTempUsageDetail_20' ) start [2025-02-08 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431644', 'tblTempUsageDetail_20' ) end [2025-02-08 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:47:23] Production.INFO: ==1375== Releasing lock... [2025-02-08 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:48:05 [end_date_ymd] => 2025-02-08 18:48:05 [RateCDR] => 1 ) [2025-02-08 18:48: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` >= '2025-02-08 15:48:05' and `end` < '2025-02-08 18:48: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 ,'') [2025-02-08 18:48:20] Production.INFO: count ==1733 [2025-02-08 18:48:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:48:05 - End Time 2025-02-08 18:48:05 [2025-02-08 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431649', 'tblTempUsageDetail_20' ) start [2025-02-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431649', 'tblTempUsageDetail_20' ) end [2025-02-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431649', 'tblTempVendorCDR_20' ) start [2025-02-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431649', 'tblTempVendorCDR_20' ) end [2025-02-08 18:48:20] Production.INFO: ProcessCDR(1,14431649,1,1,2) [2025-02-08 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431649', 'tblTempUsageDetail_20' ) start [2025-02-08 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431649', 'tblTempUsageDetail_20' ) end [2025-02-08 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:48:23] Production.INFO: ==1455== Releasing lock... [2025-02-08 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:48:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:49:06 [end_date_ymd] => 2025-02-08 18:49:06 [RateCDR] => 1 ) [2025-02-08 18:49: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-02-08 15:49:06' and `end` < '2025-02-08 18:49: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-02-08 18:49:19] Production.INFO: count ==1732 [2025-02-08 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:49:06 - End Time 2025-02-08 18:49:06 [2025-02-08 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431654', 'tblTempUsageDetail_20' ) start [2025-02-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431654', 'tblTempUsageDetail_20' ) end [2025-02-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431654', 'tblTempVendorCDR_20' ) start [2025-02-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431654', 'tblTempVendorCDR_20' ) end [2025-02-08 18:49:19] Production.INFO: ProcessCDR(1,14431654,1,1,2) [2025-02-08 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431654', 'tblTempUsageDetail_20' ) start [2025-02-08 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431654', 'tblTempUsageDetail_20' ) end [2025-02-08 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:49:24] Production.INFO: ==1580== Releasing lock... [2025-02-08 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:49:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:50:06 [end_date_ymd] => 2025-02-08 18:50:06 [RateCDR] => 1 ) [2025-02-08 18:50: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-02-08 15:50:06' and `end` < '2025-02-08 18:50: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-02-08 18:50:19] Production.INFO: count ==1731 [2025-02-08 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:50:06 - End Time 2025-02-08 18:50:06 [2025-02-08 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431659', 'tblTempUsageDetail_20' ) start [2025-02-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431659', 'tblTempUsageDetail_20' ) end [2025-02-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431659', 'tblTempVendorCDR_20' ) start [2025-02-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431659', 'tblTempVendorCDR_20' ) end [2025-02-08 18:50:19] Production.INFO: ProcessCDR(1,14431659,1,1,2) [2025-02-08 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431659', 'tblTempUsageDetail_20' ) start [2025-02-08 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431659', 'tblTempUsageDetail_20' ) end [2025-02-08 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:50:22] Production.INFO: ==1665== Releasing lock... [2025-02-08 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:50:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:51:05 [end_date_ymd] => 2025-02-08 18:51:05 [RateCDR] => 1 ) [2025-02-08 18:51: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` >= '2025-02-08 15:51:05' and `end` < '2025-02-08 18:51: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 ,'') [2025-02-08 18:51:19] Production.INFO: count ==1767 [2025-02-08 18:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:51:05 - End Time 2025-02-08 18:51:05 [2025-02-08 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431665', 'tblTempUsageDetail_20' ) start [2025-02-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431665', 'tblTempUsageDetail_20' ) end [2025-02-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431665', 'tblTempVendorCDR_20' ) start [2025-02-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431665', 'tblTempVendorCDR_20' ) end [2025-02-08 18:51:19] Production.INFO: ProcessCDR(1,14431665,1,1,2) [2025-02-08 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431665', 'tblTempUsageDetail_20' ) start [2025-02-08 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431665', 'tblTempUsageDetail_20' ) end [2025-02-08 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:51:24] Production.INFO: ==1757== Releasing lock... [2025-02-08 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:51:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:52:05 [end_date_ymd] => 2025-02-08 18:52:05 [RateCDR] => 1 ) [2025-02-08 18:52: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` >= '2025-02-08 15:52:05' and `end` < '2025-02-08 18:52: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 ,'') [2025-02-08 18:52:19] Production.INFO: count ==1764 [2025-02-08 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:52:05 - End Time 2025-02-08 18:52:05 [2025-02-08 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431670', 'tblTempUsageDetail_20' ) start [2025-02-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431670', 'tblTempUsageDetail_20' ) end [2025-02-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431670', 'tblTempVendorCDR_20' ) start [2025-02-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431670', 'tblTempVendorCDR_20' ) end [2025-02-08 18:52:19] Production.INFO: ProcessCDR(1,14431670,1,1,2) [2025-02-08 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431670', 'tblTempUsageDetail_20' ) start [2025-02-08 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431670', 'tblTempUsageDetail_20' ) end [2025-02-08 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:52:22] Production.INFO: ==1851== Releasing lock... [2025-02-08 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:52:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:53:05 [end_date_ymd] => 2025-02-08 18:53:05 [RateCDR] => 1 ) [2025-02-08 18:53: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` >= '2025-02-08 15:53:05' and `end` < '2025-02-08 18:53: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 ,'') [2025-02-08 18:53:19] Production.INFO: count ==1762 [2025-02-08 18:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 15:53:05 - End Time 2025-02-08 18:53:05 [2025-02-08 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431675', 'tblTempUsageDetail_20' ) start [2025-02-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431675', 'tblTempUsageDetail_20' ) end [2025-02-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431675', 'tblTempVendorCDR_20' ) start [2025-02-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431675', 'tblTempVendorCDR_20' ) end [2025-02-08 18:53:19] Production.INFO: ProcessCDR(1,14431675,1,1,2) [2025-02-08 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431675', 'tblTempUsageDetail_20' ) start [2025-02-08 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431675', 'tblTempUsageDetail_20' ) end [2025-02-08 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:53:22] Production.INFO: ==1944== Releasing lock... [2025-02-08 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:53:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:54:05 [end_date_ymd] => 2025-02-08 18:54:05 [RateCDR] => 1 ) [2025-02-08 18:54: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` >= '2025-02-08 15:54:05' and `end` < '2025-02-08 18:54: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 ,'') [2025-02-08 18:54:18] Production.INFO: count ==1751 [2025-02-08 18:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:54:05 - End Time 2025-02-08 18:54:05 [2025-02-08 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431680', 'tblTempUsageDetail_20' ) start [2025-02-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431680', 'tblTempUsageDetail_20' ) end [2025-02-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431680', 'tblTempVendorCDR_20' ) start [2025-02-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431680', 'tblTempVendorCDR_20' ) end [2025-02-08 18:54:18] Production.INFO: ProcessCDR(1,14431680,1,1,2) [2025-02-08 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431680', 'tblTempUsageDetail_20' ) start [2025-02-08 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431680', 'tblTempUsageDetail_20' ) end [2025-02-08 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:54:23] Production.INFO: ==2030== Releasing lock... [2025-02-08 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:54:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:55:05 [end_date_ymd] => 2025-02-08 18:55:05 [RateCDR] => 1 ) [2025-02-08 18:55: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` >= '2025-02-08 15:55:05' and `end` < '2025-02-08 18:55: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 ,'') [2025-02-08 18:55:18] Production.INFO: count ==1754 [2025-02-08 18:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:55:05 - End Time 2025-02-08 18:55:05 [2025-02-08 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431685', 'tblTempUsageDetail_20' ) start [2025-02-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431685', 'tblTempUsageDetail_20' ) end [2025-02-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431685', 'tblTempVendorCDR_20' ) start [2025-02-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431685', 'tblTempVendorCDR_20' ) end [2025-02-08 18:55:19] Production.INFO: ProcessCDR(1,14431685,1,1,2) [2025-02-08 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431685', 'tblTempUsageDetail_20' ) start [2025-02-08 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431685', 'tblTempUsageDetail_20' ) end [2025-02-08 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:55:23] Production.INFO: ==2113== Releasing lock... [2025-02-08 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:55:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:56:05 [end_date_ymd] => 2025-02-08 18:56:05 [RateCDR] => 1 ) [2025-02-08 18:56: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` >= '2025-02-08 15:56:05' and `end` < '2025-02-08 18:56: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 ,'') [2025-02-08 18:56:18] Production.INFO: count ==1747 [2025-02-08 18:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:56:05 - End Time 2025-02-08 18:56:05 [2025-02-08 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431690', 'tblTempUsageDetail_20' ) start [2025-02-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431690', 'tblTempUsageDetail_20' ) end [2025-02-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431690', 'tblTempVendorCDR_20' ) start [2025-02-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431690', 'tblTempVendorCDR_20' ) end [2025-02-08 18:56:18] Production.INFO: ProcessCDR(1,14431690,1,1,2) [2025-02-08 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431690', 'tblTempUsageDetail_20' ) start [2025-02-08 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431690', 'tblTempUsageDetail_20' ) end [2025-02-08 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:56:23] Production.INFO: ==2240== Releasing lock... [2025-02-08 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:56:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:57:05 [end_date_ymd] => 2025-02-08 18:57:05 [RateCDR] => 1 ) [2025-02-08 18:57: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` >= '2025-02-08 15:57:05' and `end` < '2025-02-08 18:57: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 ,'') [2025-02-08 18:57:20] Production.INFO: count ==1757 [2025-02-08 18:57:20] Production.ERROR: pbx CDR StartTime 2025-02-08 15:57:05 - End Time 2025-02-08 18:57:05 [2025-02-08 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431695', 'tblTempUsageDetail_20' ) start [2025-02-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431695', 'tblTempUsageDetail_20' ) end [2025-02-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431695', 'tblTempVendorCDR_20' ) start [2025-02-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431695', 'tblTempVendorCDR_20' ) end [2025-02-08 18:57:20] Production.INFO: ProcessCDR(1,14431695,1,1,2) [2025-02-08 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431695', 'tblTempUsageDetail_20' ) start [2025-02-08 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431695', 'tblTempUsageDetail_20' ) end [2025-02-08 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:57:23] Production.INFO: ==2325== Releasing lock... [2025-02-08 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:58:04 [end_date_ymd] => 2025-02-08 18:58:04 [RateCDR] => 1 ) [2025-02-08 18:58:04] 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-02-08 15:58:04' and `end` < '2025-02-08 18:58:04' 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-02-08 18:58:17] Production.INFO: count ==1759 [2025-02-08 18:58:17] Production.ERROR: pbx CDR StartTime 2025-02-08 15:58:04 - End Time 2025-02-08 18:58:04 [2025-02-08 18:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431700', 'tblTempUsageDetail_20' ) start [2025-02-08 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431700', 'tblTempUsageDetail_20' ) end [2025-02-08 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431700', 'tblTempVendorCDR_20' ) start [2025-02-08 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431700', 'tblTempVendorCDR_20' ) end [2025-02-08 18:58:17] Production.INFO: ProcessCDR(1,14431700,1,1,2) [2025-02-08 18:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431700', 'tblTempUsageDetail_20' ) start [2025-02-08 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431700', 'tblTempUsageDetail_20' ) end [2025-02-08 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:58:22] Production.INFO: ==2409== Releasing lock... [2025-02-08 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:58:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 15:59:04 [end_date_ymd] => 2025-02-08 18:59:04 [RateCDR] => 1 ) [2025-02-08 18:59:04] 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-02-08 15:59:04' and `end` < '2025-02-08 18:59:04' 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-02-08 18:59:18] Production.INFO: count ==1765 [2025-02-08 18:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 15:59:04 - End Time 2025-02-08 18:59:04 [2025-02-08 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431705', 'tblTempUsageDetail_20' ) start [2025-02-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431705', 'tblTempUsageDetail_20' ) end [2025-02-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431705', 'tblTempVendorCDR_20' ) start [2025-02-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431705', 'tblTempVendorCDR_20' ) end [2025-02-08 18:59:18] Production.INFO: ProcessCDR(1,14431705,1,1,2) [2025-02-08 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431705', 'tblTempUsageDetail_20' ) start [2025-02-08 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431705', 'tblTempUsageDetail_20' ) end [2025-02-08 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 18:59:22] Production.INFO: ==2493== Releasing lock... [2025-02-08 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 18:59:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:00:06 [end_date_ymd] => 2025-02-08 19:00:06 [RateCDR] => 1 ) [2025-02-08 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 16:00:06' and `end` < '2025-02-08 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 19:00:20] Production.INFO: count ==1767 [2025-02-08 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:00:06 - End Time 2025-02-08 19:00:06 [2025-02-08 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431711', 'tblTempUsageDetail_20' ) start [2025-02-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431711', 'tblTempUsageDetail_20' ) end [2025-02-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431711', 'tblTempVendorCDR_20' ) start [2025-02-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431711', 'tblTempVendorCDR_20' ) end [2025-02-08 19:00:20] Production.INFO: ProcessCDR(1,14431711,1,1,2) [2025-02-08 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431711', 'tblTempUsageDetail_20' ) start [2025-02-08 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431711', 'tblTempUsageDetail_20' ) end [2025-02-08 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:00:25] Production.INFO: ==2583== Releasing lock... [2025-02-08 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:00:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:01:05 [end_date_ymd] => 2025-02-08 19:01:05 [RateCDR] => 1 ) [2025-02-08 19: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` >= '2025-02-08 16:01:05' and `end` < '2025-02-08 19: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 ,'') [2025-02-08 19:01:21] Production.INFO: count ==1827 [2025-02-08 19:01:21] Production.ERROR: pbx CDR StartTime 2025-02-08 16:01:05 - End Time 2025-02-08 19:01:05 [2025-02-08 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431716', 'tblTempUsageDetail_20' ) start [2025-02-08 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431716', 'tblTempUsageDetail_20' ) end [2025-02-08 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431716', 'tblTempVendorCDR_20' ) start [2025-02-08 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431716', 'tblTempVendorCDR_20' ) end [2025-02-08 19:01:21] Production.INFO: ProcessCDR(1,14431716,1,1,2) [2025-02-08 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431716', 'tblTempUsageDetail_20' ) start [2025-02-08 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431716', 'tblTempUsageDetail_20' ) end [2025-02-08 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:01:26] Production.INFO: ==2676== Releasing lock... [2025-02-08 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:01:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:02:05 [end_date_ymd] => 2025-02-08 19:02:05 [RateCDR] => 1 ) [2025-02-08 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 16:02:05' and `end` < '2025-02-08 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 19:02:19] Production.INFO: count ==1830 [2025-02-08 19:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:02:05 - End Time 2025-02-08 19:02:05 [2025-02-08 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431721', 'tblTempUsageDetail_20' ) start [2025-02-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431721', 'tblTempUsageDetail_20' ) end [2025-02-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431721', 'tblTempVendorCDR_20' ) start [2025-02-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431721', 'tblTempVendorCDR_20' ) end [2025-02-08 19:02:19] Production.INFO: ProcessCDR(1,14431721,1,1,2) [2025-02-08 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431721', 'tblTempUsageDetail_20' ) start [2025-02-08 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431721', 'tblTempUsageDetail_20' ) end [2025-02-08 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:02:24] Production.INFO: ==2840== Releasing lock... [2025-02-08 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:02:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:03:05 [end_date_ymd] => 2025-02-08 19:03:05 [RateCDR] => 1 ) [2025-02-08 19:03: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` >= '2025-02-08 16:03:05' and `end` < '2025-02-08 19:03: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 ,'') [2025-02-08 19:03:20] Production.INFO: count ==1819 [2025-02-08 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:03:05 - End Time 2025-02-08 19:03:05 [2025-02-08 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431726', 'tblTempUsageDetail_20' ) start [2025-02-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431726', 'tblTempUsageDetail_20' ) end [2025-02-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431726', 'tblTempVendorCDR_20' ) start [2025-02-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431726', 'tblTempVendorCDR_20' ) end [2025-02-08 19:03:20] Production.INFO: ProcessCDR(1,14431726,1,1,2) [2025-02-08 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431726', 'tblTempUsageDetail_20' ) start [2025-02-08 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431726', 'tblTempUsageDetail_20' ) end [2025-02-08 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:03:25] Production.INFO: ==2925== Releasing lock... [2025-02-08 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:03:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:04:05 [end_date_ymd] => 2025-02-08 19:04:05 [RateCDR] => 1 ) [2025-02-08 19:04: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` >= '2025-02-08 16:04:05' and `end` < '2025-02-08 19:04: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 ,'') [2025-02-08 19:04:22] Production.INFO: count ==1821 [2025-02-08 19:04:22] Production.ERROR: pbx CDR StartTime 2025-02-08 16:04:05 - End Time 2025-02-08 19:04:05 [2025-02-08 19:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431731', 'tblTempUsageDetail_20' ) start [2025-02-08 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431731', 'tblTempUsageDetail_20' ) end [2025-02-08 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431731', 'tblTempVendorCDR_20' ) start [2025-02-08 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431731', 'tblTempVendorCDR_20' ) end [2025-02-08 19:04:22] Production.INFO: ProcessCDR(1,14431731,1,1,2) [2025-02-08 19:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431731', 'tblTempUsageDetail_20' ) start [2025-02-08 19:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431731', 'tblTempUsageDetail_20' ) end [2025-02-08 19:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:04:27] Production.INFO: ==3008== Releasing lock... [2025-02-08 19:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:04:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:05:05 [end_date_ymd] => 2025-02-08 19:05:05 [RateCDR] => 1 ) [2025-02-08 19:05: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` >= '2025-02-08 16:05:05' and `end` < '2025-02-08 19:05: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 ,'') [2025-02-08 19:05:18] Production.INFO: count ==1822 [2025-02-08 19:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:05:05 - End Time 2025-02-08 19:05:05 [2025-02-08 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431736', 'tblTempUsageDetail_20' ) start [2025-02-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431736', 'tblTempUsageDetail_20' ) end [2025-02-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431736', 'tblTempVendorCDR_20' ) start [2025-02-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431736', 'tblTempVendorCDR_20' ) end [2025-02-08 19:05:18] Production.INFO: ProcessCDR(1,14431736,1,1,2) [2025-02-08 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431736', 'tblTempUsageDetail_20' ) start [2025-02-08 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431736', 'tblTempUsageDetail_20' ) end [2025-02-08 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:05:23] Production.INFO: ==3171== Releasing lock... [2025-02-08 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:05:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:06:05 [end_date_ymd] => 2025-02-08 19:06:05 [RateCDR] => 1 ) [2025-02-08 19:06: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` >= '2025-02-08 16:06:05' and `end` < '2025-02-08 19:06: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 ,'') [2025-02-08 19:06:18] Production.INFO: count ==1825 [2025-02-08 19:06:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:06:05 - End Time 2025-02-08 19:06:05 [2025-02-08 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431741', 'tblTempUsageDetail_20' ) start [2025-02-08 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431741', 'tblTempUsageDetail_20' ) end [2025-02-08 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431741', 'tblTempVendorCDR_20' ) start [2025-02-08 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431741', 'tblTempVendorCDR_20' ) end [2025-02-08 19:06:18] Production.INFO: ProcessCDR(1,14431741,1,1,2) [2025-02-08 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431741', 'tblTempUsageDetail_20' ) start [2025-02-08 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431741', 'tblTempUsageDetail_20' ) end [2025-02-08 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:06:23] Production.INFO: ==3259== Releasing lock... [2025-02-08 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:06:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:07:04 [end_date_ymd] => 2025-02-08 19:07:04 [RateCDR] => 1 ) [2025-02-08 19:07:04] 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-02-08 16:07:04' and `end` < '2025-02-08 19:07:04' 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-02-08 19:07:18] Production.INFO: count ==1824 [2025-02-08 19:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:07:04 - End Time 2025-02-08 19:07:04 [2025-02-08 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431746', 'tblTempUsageDetail_20' ) start [2025-02-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431746', 'tblTempUsageDetail_20' ) end [2025-02-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431746', 'tblTempVendorCDR_20' ) start [2025-02-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431746', 'tblTempVendorCDR_20' ) end [2025-02-08 19:07:18] Production.INFO: ProcessCDR(1,14431746,1,1,2) [2025-02-08 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431746', 'tblTempUsageDetail_20' ) start [2025-02-08 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431746', 'tblTempUsageDetail_20' ) end [2025-02-08 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:07:22] Production.INFO: ==3336== Releasing lock... [2025-02-08 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:07:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:08:05 [end_date_ymd] => 2025-02-08 19:08:05 [RateCDR] => 1 ) [2025-02-08 19:08: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` >= '2025-02-08 16:08:05' and `end` < '2025-02-08 19:08: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 ,'') [2025-02-08 19:08:18] Production.INFO: count ==1823 [2025-02-08 19:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:08:05 - End Time 2025-02-08 19:08:05 [2025-02-08 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431751', 'tblTempUsageDetail_20' ) start [2025-02-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431751', 'tblTempUsageDetail_20' ) end [2025-02-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431751', 'tblTempVendorCDR_20' ) start [2025-02-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431751', 'tblTempVendorCDR_20' ) end [2025-02-08 19:08:19] Production.INFO: ProcessCDR(1,14431751,1,1,2) [2025-02-08 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431751', 'tblTempUsageDetail_20' ) start [2025-02-08 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431751', 'tblTempUsageDetail_20' ) end [2025-02-08 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:08:24] Production.INFO: ==3493== Releasing lock... [2025-02-08 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:08:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:09:05 [end_date_ymd] => 2025-02-08 19:09:05 [RateCDR] => 1 ) [2025-02-08 19:09: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` >= '2025-02-08 16:09:05' and `end` < '2025-02-08 19:09: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 ,'') [2025-02-08 19:09:18] Production.INFO: count ==1821 [2025-02-08 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:09:05 - End Time 2025-02-08 19:09:05 [2025-02-08 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431756', 'tblTempUsageDetail_20' ) start [2025-02-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431756', 'tblTempUsageDetail_20' ) end [2025-02-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431756', 'tblTempVendorCDR_20' ) start [2025-02-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431756', 'tblTempVendorCDR_20' ) end [2025-02-08 19:09:18] Production.INFO: ProcessCDR(1,14431756,1,1,2) [2025-02-08 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431756', 'tblTempUsageDetail_20' ) start [2025-02-08 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431756', 'tblTempUsageDetail_20' ) end [2025-02-08 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:09:22] Production.INFO: ==3573== Releasing lock... [2025-02-08 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:10:06 [end_date_ymd] => 2025-02-08 19:10:06 [RateCDR] => 1 ) [2025-02-08 19:10: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-02-08 16:10:06' and `end` < '2025-02-08 19:10: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-02-08 19:10:19] Production.INFO: count ==1819 [2025-02-08 19:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:10:06 - End Time 2025-02-08 19:10:06 [2025-02-08 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431762', 'tblTempUsageDetail_20' ) start [2025-02-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431762', 'tblTempUsageDetail_20' ) end [2025-02-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431762', 'tblTempVendorCDR_20' ) start [2025-02-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431762', 'tblTempVendorCDR_20' ) end [2025-02-08 19:10:19] Production.INFO: ProcessCDR(1,14431762,1,1,2) [2025-02-08 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431762', 'tblTempUsageDetail_20' ) start [2025-02-08 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431762', 'tblTempUsageDetail_20' ) end [2025-02-08 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:10:22] Production.INFO: ==3659== Releasing lock... [2025-02-08 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:10:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:11:05 [end_date_ymd] => 2025-02-08 19:11:05 [RateCDR] => 1 ) [2025-02-08 19:11: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` >= '2025-02-08 16:11:05' and `end` < '2025-02-08 19:11: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 ,'') [2025-02-08 19:11:20] Production.INFO: count ==1815 [2025-02-08 19:11:21] Production.ERROR: pbx CDR StartTime 2025-02-08 16:11:05 - End Time 2025-02-08 19:11:05 [2025-02-08 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431767', 'tblTempUsageDetail_20' ) start [2025-02-08 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431767', 'tblTempUsageDetail_20' ) end [2025-02-08 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431767', 'tblTempVendorCDR_20' ) start [2025-02-08 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431767', 'tblTempVendorCDR_20' ) end [2025-02-08 19:11:21] Production.INFO: ProcessCDR(1,14431767,1,1,2) [2025-02-08 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431767', 'tblTempUsageDetail_20' ) start [2025-02-08 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431767', 'tblTempUsageDetail_20' ) end [2025-02-08 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:11:25] Production.INFO: ==3735== Releasing lock... [2025-02-08 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:11:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:12:05 [end_date_ymd] => 2025-02-08 19:12:05 [RateCDR] => 1 ) [2025-02-08 19:12: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` >= '2025-02-08 16:12:05' and `end` < '2025-02-08 19:12: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 ,'') [2025-02-08 19:12:18] Production.INFO: count ==1814 [2025-02-08 19:12:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:12:05 - End Time 2025-02-08 19:12:05 [2025-02-08 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431772', 'tblTempUsageDetail_20' ) start [2025-02-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431772', 'tblTempUsageDetail_20' ) end [2025-02-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431772', 'tblTempVendorCDR_20' ) start [2025-02-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431772', 'tblTempVendorCDR_20' ) end [2025-02-08 19:12:18] Production.INFO: ProcessCDR(1,14431772,1,1,2) [2025-02-08 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431772', 'tblTempUsageDetail_20' ) start [2025-02-08 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431772', 'tblTempUsageDetail_20' ) end [2025-02-08 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:12:23] Production.INFO: ==3926== Releasing lock... [2025-02-08 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:12:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:13:05 [end_date_ymd] => 2025-02-08 19:13:05 [RateCDR] => 1 ) [2025-02-08 19:13: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` >= '2025-02-08 16:13:05' and `end` < '2025-02-08 19:13: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 ,'') [2025-02-08 19:13:19] Production.INFO: count ==1808 [2025-02-08 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:13:05 - End Time 2025-02-08 19:13:05 [2025-02-08 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431777', 'tblTempUsageDetail_20' ) start [2025-02-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431777', 'tblTempUsageDetail_20' ) end [2025-02-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431777', 'tblTempVendorCDR_20' ) start [2025-02-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431777', 'tblTempVendorCDR_20' ) end [2025-02-08 19:13:19] Production.INFO: ProcessCDR(1,14431777,1,1,2) [2025-02-08 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431777', 'tblTempUsageDetail_20' ) start [2025-02-08 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431777', 'tblTempUsageDetail_20' ) end [2025-02-08 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:13:22] Production.INFO: ==4002== Releasing lock... [2025-02-08 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:13:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:14:05 [end_date_ymd] => 2025-02-08 19:14:05 [RateCDR] => 1 ) [2025-02-08 19:14: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` >= '2025-02-08 16:14:05' and `end` < '2025-02-08 19:14: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 ,'') [2025-02-08 19:14:18] Production.INFO: count ==1808 [2025-02-08 19:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:14:05 - End Time 2025-02-08 19:14:05 [2025-02-08 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431782', 'tblTempUsageDetail_20' ) start [2025-02-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431782', 'tblTempUsageDetail_20' ) end [2025-02-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431782', 'tblTempVendorCDR_20' ) start [2025-02-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431782', 'tblTempVendorCDR_20' ) end [2025-02-08 19:14:18] Production.INFO: ProcessCDR(1,14431782,1,1,2) [2025-02-08 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431782', 'tblTempUsageDetail_20' ) start [2025-02-08 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431782', 'tblTempUsageDetail_20' ) end [2025-02-08 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:14:23] Production.INFO: ==4076== Releasing lock... [2025-02-08 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:14:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:15:05 [end_date_ymd] => 2025-02-08 19:15:05 [RateCDR] => 1 ) [2025-02-08 19:15: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` >= '2025-02-08 16:15:05' and `end` < '2025-02-08 19:15: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 ,'') [2025-02-08 19:15:18] Production.INFO: count ==1797 [2025-02-08 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:15:05 - End Time 2025-02-08 19:15:05 [2025-02-08 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431787', 'tblTempUsageDetail_20' ) start [2025-02-08 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431787', 'tblTempUsageDetail_20' ) end [2025-02-08 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431787', 'tblTempVendorCDR_20' ) start [2025-02-08 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431787', 'tblTempVendorCDR_20' ) end [2025-02-08 19:15:18] Production.INFO: ProcessCDR(1,14431787,1,1,2) [2025-02-08 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431787', 'tblTempUsageDetail_20' ) start [2025-02-08 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431787', 'tblTempUsageDetail_20' ) end [2025-02-08 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:15:23] Production.INFO: ==4229== Releasing lock... [2025-02-08 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:15:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:16:06 [end_date_ymd] => 2025-02-08 19:16:06 [RateCDR] => 1 ) [2025-02-08 19:16: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-02-08 16:16:06' and `end` < '2025-02-08 19:16: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-02-08 19:16:20] Production.INFO: count ==1789 [2025-02-08 19:16:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:16:06 - End Time 2025-02-08 19:16:06 [2025-02-08 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431792', 'tblTempUsageDetail_20' ) start [2025-02-08 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431792', 'tblTempUsageDetail_20' ) end [2025-02-08 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431792', 'tblTempVendorCDR_20' ) start [2025-02-08 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431792', 'tblTempVendorCDR_20' ) end [2025-02-08 19:16:20] Production.INFO: ProcessCDR(1,14431792,1,1,2) [2025-02-08 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431792', 'tblTempUsageDetail_20' ) start [2025-02-08 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431792', 'tblTempUsageDetail_20' ) end [2025-02-08 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:16:24] Production.INFO: ==4307== Releasing lock... [2025-02-08 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:16:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:17:05 [end_date_ymd] => 2025-02-08 19:17:05 [RateCDR] => 1 ) [2025-02-08 19:17: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` >= '2025-02-08 16:17:05' and `end` < '2025-02-08 19:17: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 ,'') [2025-02-08 19:17:19] Production.INFO: count ==1777 [2025-02-08 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:17:05 - End Time 2025-02-08 19:17:05 [2025-02-08 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431797', 'tblTempUsageDetail_20' ) start [2025-02-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431797', 'tblTempUsageDetail_20' ) end [2025-02-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431797', 'tblTempVendorCDR_20' ) start [2025-02-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431797', 'tblTempVendorCDR_20' ) end [2025-02-08 19:17:19] Production.INFO: ProcessCDR(1,14431797,1,1,2) [2025-02-08 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431797', 'tblTempUsageDetail_20' ) start [2025-02-08 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431797', 'tblTempUsageDetail_20' ) end [2025-02-08 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:17:22] Production.INFO: ==4404== Releasing lock... [2025-02-08 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:17:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:18:06 [end_date_ymd] => 2025-02-08 19:18:06 [RateCDR] => 1 ) [2025-02-08 19:18: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-02-08 16:18:06' and `end` < '2025-02-08 19:18: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-02-08 19:18:20] Production.INFO: count ==1775 [2025-02-08 19:18:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:18:06 - End Time 2025-02-08 19:18:06 [2025-02-08 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431802', 'tblTempUsageDetail_20' ) start [2025-02-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431802', 'tblTempUsageDetail_20' ) end [2025-02-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431802', 'tblTempVendorCDR_20' ) start [2025-02-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431802', 'tblTempVendorCDR_20' ) end [2025-02-08 19:18:20] Production.INFO: ProcessCDR(1,14431802,1,1,2) [2025-02-08 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431802', 'tblTempUsageDetail_20' ) start [2025-02-08 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431802', 'tblTempUsageDetail_20' ) end [2025-02-08 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:18:23] Production.INFO: ==4479== Releasing lock... [2025-02-08 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:18:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:19:05 [end_date_ymd] => 2025-02-08 19:19:05 [RateCDR] => 1 ) [2025-02-08 19:19: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` >= '2025-02-08 16:19:05' and `end` < '2025-02-08 19:19: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 ,'') [2025-02-08 19:19:18] Production.INFO: count ==1777 [2025-02-08 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:19:05 - End Time 2025-02-08 19:19:05 [2025-02-08 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431807', 'tblTempUsageDetail_20' ) start [2025-02-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431807', 'tblTempUsageDetail_20' ) end [2025-02-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431807', 'tblTempVendorCDR_20' ) start [2025-02-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431807', 'tblTempVendorCDR_20' ) end [2025-02-08 19:19:19] Production.INFO: ProcessCDR(1,14431807,1,1,2) [2025-02-08 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431807', 'tblTempUsageDetail_20' ) start [2025-02-08 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431807', 'tblTempUsageDetail_20' ) end [2025-02-08 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:19:24] Production.INFO: ==4554== Releasing lock... [2025-02-08 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:19:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:20:06 [end_date_ymd] => 2025-02-08 19:20:06 [RateCDR] => 1 ) [2025-02-08 19:20: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-02-08 16:20:06' and `end` < '2025-02-08 19:20: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-02-08 19:20:20] Production.INFO: count ==1772 [2025-02-08 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:20:06 - End Time 2025-02-08 19:20:06 [2025-02-08 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431812', 'tblTempUsageDetail_20' ) start [2025-02-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431812', 'tblTempUsageDetail_20' ) end [2025-02-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431812', 'tblTempVendorCDR_20' ) start [2025-02-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431812', 'tblTempVendorCDR_20' ) end [2025-02-08 19:20:20] Production.INFO: ProcessCDR(1,14431812,1,1,2) [2025-02-08 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431812', 'tblTempUsageDetail_20' ) start [2025-02-08 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431812', 'tblTempUsageDetail_20' ) end [2025-02-08 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:20:23] Production.INFO: ==4638== Releasing lock... [2025-02-08 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:21:05 [end_date_ymd] => 2025-02-08 19:21:05 [RateCDR] => 1 ) [2025-02-08 19:21: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` >= '2025-02-08 16:21:05' and `end` < '2025-02-08 19:21: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 ,'') [2025-02-08 19:21:18] Production.INFO: count ==1785 [2025-02-08 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:21:05 - End Time 2025-02-08 19:21:05 [2025-02-08 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431818', 'tblTempUsageDetail_20' ) start [2025-02-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431818', 'tblTempUsageDetail_20' ) end [2025-02-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431818', 'tblTempVendorCDR_20' ) start [2025-02-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431818', 'tblTempVendorCDR_20' ) end [2025-02-08 19:21:19] Production.INFO: ProcessCDR(1,14431818,1,1,2) [2025-02-08 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431818', 'tblTempUsageDetail_20' ) start [2025-02-08 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431818', 'tblTempUsageDetail_20' ) end [2025-02-08 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:21:22] Production.INFO: ==4712== Releasing lock... [2025-02-08 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:21:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:22:05 [end_date_ymd] => 2025-02-08 19:22:05 [RateCDR] => 1 ) [2025-02-08 19:22: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` >= '2025-02-08 16:22:05' and `end` < '2025-02-08 19:22: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 ,'') [2025-02-08 19:22:18] Production.INFO: count ==1778 [2025-02-08 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:22:05 - End Time 2025-02-08 19:22:05 [2025-02-08 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431823', 'tblTempUsageDetail_20' ) start [2025-02-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431823', 'tblTempUsageDetail_20' ) end [2025-02-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431823', 'tblTempVendorCDR_20' ) start [2025-02-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431823', 'tblTempVendorCDR_20' ) end [2025-02-08 19:22:19] Production.INFO: ProcessCDR(1,14431823,1,1,2) [2025-02-08 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431823', 'tblTempUsageDetail_20' ) start [2025-02-08 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431823', 'tblTempUsageDetail_20' ) end [2025-02-08 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:22:22] Production.INFO: ==4788== Releasing lock... [2025-02-08 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:22:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:23:05 [end_date_ymd] => 2025-02-08 19:23:05 [RateCDR] => 1 ) [2025-02-08 19:23: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` >= '2025-02-08 16:23:05' and `end` < '2025-02-08 19:23: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 ,'') [2025-02-08 19:23:19] Production.INFO: count ==1776 [2025-02-08 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:23:05 - End Time 2025-02-08 19:23:05 [2025-02-08 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431828', 'tblTempUsageDetail_20' ) start [2025-02-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431828', 'tblTempUsageDetail_20' ) end [2025-02-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431828', 'tblTempVendorCDR_20' ) start [2025-02-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431828', 'tblTempVendorCDR_20' ) end [2025-02-08 19:23:19] Production.INFO: ProcessCDR(1,14431828,1,1,2) [2025-02-08 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431828', 'tblTempUsageDetail_20' ) start [2025-02-08 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431828', 'tblTempUsageDetail_20' ) end [2025-02-08 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:23:22] Production.INFO: ==4862== Releasing lock... [2025-02-08 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:23:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:24:06 [end_date_ymd] => 2025-02-08 19:24:06 [RateCDR] => 1 ) [2025-02-08 19:24: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-02-08 16:24:06' and `end` < '2025-02-08 19:24: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-02-08 19:24:19] Production.INFO: count ==1772 [2025-02-08 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:24:06 - End Time 2025-02-08 19:24:06 [2025-02-08 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431833', 'tblTempUsageDetail_20' ) start [2025-02-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431833', 'tblTempUsageDetail_20' ) end [2025-02-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431833', 'tblTempVendorCDR_20' ) start [2025-02-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431833', 'tblTempVendorCDR_20' ) end [2025-02-08 19:24:19] Production.INFO: ProcessCDR(1,14431833,1,1,2) [2025-02-08 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431833', 'tblTempUsageDetail_20' ) start [2025-02-08 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431833', 'tblTempUsageDetail_20' ) end [2025-02-08 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:24:24] Production.INFO: ==4938== Releasing lock... [2025-02-08 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:24:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:25:05 [end_date_ymd] => 2025-02-08 19:25:05 [RateCDR] => 1 ) [2025-02-08 19:25: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` >= '2025-02-08 16:25:05' and `end` < '2025-02-08 19:25: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 ,'') [2025-02-08 19:25:18] Production.INFO: count ==1770 [2025-02-08 19:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:25:05 - End Time 2025-02-08 19:25:05 [2025-02-08 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431838', 'tblTempUsageDetail_20' ) start [2025-02-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431838', 'tblTempUsageDetail_20' ) end [2025-02-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431838', 'tblTempVendorCDR_20' ) start [2025-02-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431838', 'tblTempVendorCDR_20' ) end [2025-02-08 19:25:18] Production.INFO: ProcessCDR(1,14431838,1,1,2) [2025-02-08 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431838', 'tblTempUsageDetail_20' ) start [2025-02-08 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431838', 'tblTempUsageDetail_20' ) end [2025-02-08 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:25:24] Production.INFO: ==5010== Releasing lock... [2025-02-08 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:25:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:26:05 [end_date_ymd] => 2025-02-08 19:26:05 [RateCDR] => 1 ) [2025-02-08 19:26: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` >= '2025-02-08 16:26:05' and `end` < '2025-02-08 19:26: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 ,'') [2025-02-08 19:26:18] Production.INFO: count ==1774 [2025-02-08 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:26:05 - End Time 2025-02-08 19:26:05 [2025-02-08 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431843', 'tblTempUsageDetail_20' ) start [2025-02-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431843', 'tblTempUsageDetail_20' ) end [2025-02-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431843', 'tblTempVendorCDR_20' ) start [2025-02-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431843', 'tblTempVendorCDR_20' ) end [2025-02-08 19:26:19] Production.INFO: ProcessCDR(1,14431843,1,1,2) [2025-02-08 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431843', 'tblTempUsageDetail_20' ) start [2025-02-08 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431843', 'tblTempUsageDetail_20' ) end [2025-02-08 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:26:22] Production.INFO: ==5084== Releasing lock... [2025-02-08 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:26:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:27:05 [end_date_ymd] => 2025-02-08 19:27:05 [RateCDR] => 1 ) [2025-02-08 19:27: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` >= '2025-02-08 16:27:05' and `end` < '2025-02-08 19:27: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 ,'') [2025-02-08 19:27:18] Production.INFO: count ==1766 [2025-02-08 19:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:27:05 - End Time 2025-02-08 19:27:05 [2025-02-08 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431848', 'tblTempUsageDetail_20' ) start [2025-02-08 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431848', 'tblTempUsageDetail_20' ) end [2025-02-08 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431848', 'tblTempVendorCDR_20' ) start [2025-02-08 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431848', 'tblTempVendorCDR_20' ) end [2025-02-08 19:27:18] Production.INFO: ProcessCDR(1,14431848,1,1,2) [2025-02-08 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431848', 'tblTempUsageDetail_20' ) start [2025-02-08 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431848', 'tblTempUsageDetail_20' ) end [2025-02-08 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:27:22] Production.INFO: ==5197== Releasing lock... [2025-02-08 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:27:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:28:06 [end_date_ymd] => 2025-02-08 19:28:06 [RateCDR] => 1 ) [2025-02-08 19:28: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-02-08 16:28:06' and `end` < '2025-02-08 19:28: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-02-08 19:28:19] Production.INFO: count ==1758 [2025-02-08 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:28:06 - End Time 2025-02-08 19:28:06 [2025-02-08 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431853', 'tblTempUsageDetail_20' ) start [2025-02-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431853', 'tblTempUsageDetail_20' ) end [2025-02-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431853', 'tblTempVendorCDR_20' ) start [2025-02-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431853', 'tblTempVendorCDR_20' ) end [2025-02-08 19:28:19] Production.INFO: ProcessCDR(1,14431853,1,1,2) [2025-02-08 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431853', 'tblTempUsageDetail_20' ) start [2025-02-08 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431853', 'tblTempUsageDetail_20' ) end [2025-02-08 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:28:23] Production.INFO: ==5272== Releasing lock... [2025-02-08 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:29:05 [end_date_ymd] => 2025-02-08 19:29:05 [RateCDR] => 1 ) [2025-02-08 19:29: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` >= '2025-02-08 16:29:05' and `end` < '2025-02-08 19:29: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 ,'') [2025-02-08 19:29:19] Production.INFO: count ==1755 [2025-02-08 19:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:29:05 - End Time 2025-02-08 19:29:05 [2025-02-08 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431858', 'tblTempUsageDetail_20' ) start [2025-02-08 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431858', 'tblTempUsageDetail_20' ) end [2025-02-08 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431858', 'tblTempVendorCDR_20' ) start [2025-02-08 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431858', 'tblTempVendorCDR_20' ) end [2025-02-08 19:29:20] Production.INFO: ProcessCDR(1,14431858,1,1,2) [2025-02-08 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431858', 'tblTempUsageDetail_20' ) start [2025-02-08 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431858', 'tblTempUsageDetail_20' ) end [2025-02-08 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:29:23] Production.INFO: ==5344== Releasing lock... [2025-02-08 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:29:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:30:06 [end_date_ymd] => 2025-02-08 19:30:06 [RateCDR] => 1 ) [2025-02-08 19:30: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-02-08 16:30:06' and `end` < '2025-02-08 19:30: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-02-08 19:30:19] Production.INFO: count ==1748 [2025-02-08 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:30:06 - End Time 2025-02-08 19:30:06 [2025-02-08 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431863', 'tblTempUsageDetail_20' ) start [2025-02-08 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431863', 'tblTempUsageDetail_20' ) end [2025-02-08 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431863', 'tblTempVendorCDR_20' ) start [2025-02-08 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431863', 'tblTempVendorCDR_20' ) end [2025-02-08 19:30:19] Production.INFO: ProcessCDR(1,14431863,1,1,2) [2025-02-08 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431863', 'tblTempUsageDetail_20' ) start [2025-02-08 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431863', 'tblTempUsageDetail_20' ) end [2025-02-08 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:30:23] Production.INFO: ==5425== Releasing lock... [2025-02-08 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:30:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:31:05 [end_date_ymd] => 2025-02-08 19:31:05 [RateCDR] => 1 ) [2025-02-08 19:31: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` >= '2025-02-08 16:31:05' and `end` < '2025-02-08 19:31: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 ,'') [2025-02-08 19:31:18] Production.INFO: count ==1759 [2025-02-08 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:31:05 - End Time 2025-02-08 19:31:05 [2025-02-08 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431869', 'tblTempUsageDetail_20' ) start [2025-02-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431869', 'tblTempUsageDetail_20' ) end [2025-02-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431869', 'tblTempVendorCDR_20' ) start [2025-02-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431869', 'tblTempVendorCDR_20' ) end [2025-02-08 19:31:19] Production.INFO: ProcessCDR(1,14431869,1,1,2) [2025-02-08 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431869', 'tblTempUsageDetail_20' ) start [2025-02-08 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431869', 'tblTempUsageDetail_20' ) end [2025-02-08 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:31:22] Production.INFO: ==5497== Releasing lock... [2025-02-08 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:31:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:32:05 [end_date_ymd] => 2025-02-08 19:32:05 [RateCDR] => 1 ) [2025-02-08 19:32: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` >= '2025-02-08 16:32:05' and `end` < '2025-02-08 19:32: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 ,'') [2025-02-08 19:32:19] Production.INFO: count ==1755 [2025-02-08 19:32:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:32:05 - End Time 2025-02-08 19:32:05 [2025-02-08 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431874', 'tblTempUsageDetail_20' ) start [2025-02-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431874', 'tblTempUsageDetail_20' ) end [2025-02-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431874', 'tblTempVendorCDR_20' ) start [2025-02-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431874', 'tblTempVendorCDR_20' ) end [2025-02-08 19:32:20] Production.INFO: ProcessCDR(1,14431874,1,1,2) [2025-02-08 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431874', 'tblTempUsageDetail_20' ) start [2025-02-08 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431874', 'tblTempUsageDetail_20' ) end [2025-02-08 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:32:23] Production.INFO: ==5571== Releasing lock... [2025-02-08 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:33:05 [end_date_ymd] => 2025-02-08 19:33:05 [RateCDR] => 1 ) [2025-02-08 19:33: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` >= '2025-02-08 16:33:05' and `end` < '2025-02-08 19:33: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 ,'') [2025-02-08 19:33:19] Production.INFO: count ==1757 [2025-02-08 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:33:05 - End Time 2025-02-08 19:33:05 [2025-02-08 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431879', 'tblTempUsageDetail_20' ) start [2025-02-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431879', 'tblTempUsageDetail_20' ) end [2025-02-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431879', 'tblTempVendorCDR_20' ) start [2025-02-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431879', 'tblTempVendorCDR_20' ) end [2025-02-08 19:33:19] Production.INFO: ProcessCDR(1,14431879,1,1,2) [2025-02-08 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431879', 'tblTempUsageDetail_20' ) start [2025-02-08 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431879', 'tblTempUsageDetail_20' ) end [2025-02-08 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:33:23] Production.INFO: ==5650== Releasing lock... [2025-02-08 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:33:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:34:06 [end_date_ymd] => 2025-02-08 19:34:06 [RateCDR] => 1 ) [2025-02-08 19:34: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-02-08 16:34:06' and `end` < '2025-02-08 19:34: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-02-08 19:34:19] Production.INFO: count ==1763 [2025-02-08 19:34:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:34:06 - End Time 2025-02-08 19:34:06 [2025-02-08 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431884', 'tblTempUsageDetail_20' ) start [2025-02-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431884', 'tblTempUsageDetail_20' ) end [2025-02-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431884', 'tblTempVendorCDR_20' ) start [2025-02-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431884', 'tblTempVendorCDR_20' ) end [2025-02-08 19:34:20] Production.INFO: ProcessCDR(1,14431884,1,1,2) [2025-02-08 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431884', 'tblTempUsageDetail_20' ) start [2025-02-08 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431884', 'tblTempUsageDetail_20' ) end [2025-02-08 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:34:23] Production.INFO: ==5724== Releasing lock... [2025-02-08 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:34:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:35:05 [end_date_ymd] => 2025-02-08 19:35:05 [RateCDR] => 1 ) [2025-02-08 19:35: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` >= '2025-02-08 16:35:05' and `end` < '2025-02-08 19:35: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 ,'') [2025-02-08 19:35:18] Production.INFO: count ==1761 [2025-02-08 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:35:05 - End Time 2025-02-08 19:35:05 [2025-02-08 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431889', 'tblTempUsageDetail_20' ) start [2025-02-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431889', 'tblTempUsageDetail_20' ) end [2025-02-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431889', 'tblTempVendorCDR_20' ) start [2025-02-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431889', 'tblTempVendorCDR_20' ) end [2025-02-08 19:35:19] Production.INFO: ProcessCDR(1,14431889,1,1,2) [2025-02-08 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431889', 'tblTempUsageDetail_20' ) start [2025-02-08 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431889', 'tblTempUsageDetail_20' ) end [2025-02-08 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:35:22] Production.INFO: ==5796== Releasing lock... [2025-02-08 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:35:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:36:05 [end_date_ymd] => 2025-02-08 19:36:05 [RateCDR] => 1 ) [2025-02-08 19:36: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` >= '2025-02-08 16:36:05' and `end` < '2025-02-08 19:36: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 ,'') [2025-02-08 19:36:19] Production.INFO: count ==1764 [2025-02-08 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:36:05 - End Time 2025-02-08 19:36:05 [2025-02-08 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431894', 'tblTempUsageDetail_20' ) start [2025-02-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431894', 'tblTempUsageDetail_20' ) end [2025-02-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431894', 'tblTempVendorCDR_20' ) start [2025-02-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431894', 'tblTempVendorCDR_20' ) end [2025-02-08 19:36:19] Production.INFO: ProcessCDR(1,14431894,1,1,2) [2025-02-08 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431894', 'tblTempUsageDetail_20' ) start [2025-02-08 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431894', 'tblTempUsageDetail_20' ) end [2025-02-08 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:36:24] Production.INFO: ==5869== Releasing lock... [2025-02-08 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:36:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:37:05 [end_date_ymd] => 2025-02-08 19:37:05 [RateCDR] => 1 ) [2025-02-08 19:37: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` >= '2025-02-08 16:37:05' and `end` < '2025-02-08 19:37: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 ,'') [2025-02-08 19:37:18] Production.INFO: count ==1770 [2025-02-08 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:37:05 - End Time 2025-02-08 19:37:05 [2025-02-08 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431899', 'tblTempUsageDetail_20' ) start [2025-02-08 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431899', 'tblTempUsageDetail_20' ) end [2025-02-08 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431899', 'tblTempVendorCDR_20' ) start [2025-02-08 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431899', 'tblTempVendorCDR_20' ) end [2025-02-08 19:37:18] Production.INFO: ProcessCDR(1,14431899,1,1,2) [2025-02-08 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431899', 'tblTempUsageDetail_20' ) start [2025-02-08 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431899', 'tblTempUsageDetail_20' ) end [2025-02-08 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:37:22] Production.INFO: ==5942== Releasing lock... [2025-02-08 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:37:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:38:06 [end_date_ymd] => 2025-02-08 19:38:06 [RateCDR] => 1 ) [2025-02-08 19:38: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-02-08 16:38:06' and `end` < '2025-02-08 19:38: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-02-08 19:38:20] Production.INFO: count ==1769 [2025-02-08 19:38:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:38:06 - End Time 2025-02-08 19:38:06 [2025-02-08 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431904', 'tblTempUsageDetail_20' ) start [2025-02-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431904', 'tblTempUsageDetail_20' ) end [2025-02-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431904', 'tblTempVendorCDR_20' ) start [2025-02-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431904', 'tblTempVendorCDR_20' ) end [2025-02-08 19:38:20] Production.INFO: ProcessCDR(1,14431904,1,1,2) [2025-02-08 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431904', 'tblTempUsageDetail_20' ) start [2025-02-08 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431904', 'tblTempUsageDetail_20' ) end [2025-02-08 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:38:23] Production.INFO: ==6015== Releasing lock... [2025-02-08 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:38:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:39:05 [end_date_ymd] => 2025-02-08 19:39:05 [RateCDR] => 1 ) [2025-02-08 19:39: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` >= '2025-02-08 16:39:05' and `end` < '2025-02-08 19:39: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 ,'') [2025-02-08 19:39:18] Production.INFO: count ==1768 [2025-02-08 19:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:39:05 - End Time 2025-02-08 19:39:05 [2025-02-08 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431909', 'tblTempUsageDetail_20' ) start [2025-02-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431909', 'tblTempUsageDetail_20' ) end [2025-02-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431909', 'tblTempVendorCDR_20' ) start [2025-02-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431909', 'tblTempVendorCDR_20' ) end [2025-02-08 19:39:18] Production.INFO: ProcessCDR(1,14431909,1,1,2) [2025-02-08 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431909', 'tblTempUsageDetail_20' ) start [2025-02-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431909', 'tblTempUsageDetail_20' ) end [2025-02-08 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:39:22] Production.INFO: ==6090== Releasing lock... [2025-02-08 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:39:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:40:06 [end_date_ymd] => 2025-02-08 19:40:06 [RateCDR] => 1 ) [2025-02-08 19:40: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-02-08 16:40:06' and `end` < '2025-02-08 19:40: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-02-08 19:40:19] Production.INFO: count ==1768 [2025-02-08 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:40:06 - End Time 2025-02-08 19:40:06 [2025-02-08 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431915', 'tblTempUsageDetail_20' ) start [2025-02-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431915', 'tblTempUsageDetail_20' ) end [2025-02-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431915', 'tblTempVendorCDR_20' ) start [2025-02-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431915', 'tblTempVendorCDR_20' ) end [2025-02-08 19:40:20] Production.INFO: ProcessCDR(1,14431915,1,1,2) [2025-02-08 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431915', 'tblTempUsageDetail_20' ) start [2025-02-08 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431915', 'tblTempUsageDetail_20' ) end [2025-02-08 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:40:23] Production.INFO: ==6163== Releasing lock... [2025-02-08 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:41:04 [end_date_ymd] => 2025-02-08 19:41:04 [RateCDR] => 1 ) [2025-02-08 19:41: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` >= '2025-02-08 16:41:04' and `end` < '2025-02-08 19:41:04' 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-02-08 19:41:18] Production.INFO: count ==1776 [2025-02-08 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:41:04 - End Time 2025-02-08 19:41:04 [2025-02-08 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431920', 'tblTempUsageDetail_20' ) start [2025-02-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431920', 'tblTempUsageDetail_20' ) end [2025-02-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431920', 'tblTempVendorCDR_20' ) start [2025-02-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431920', 'tblTempVendorCDR_20' ) end [2025-02-08 19:41:18] Production.INFO: ProcessCDR(1,14431920,1,1,2) [2025-02-08 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431920', 'tblTempUsageDetail_20' ) start [2025-02-08 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431920', 'tblTempUsageDetail_20' ) end [2025-02-08 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:41:22] Production.INFO: ==6238== Releasing lock... [2025-02-08 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:41:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:42:05 [end_date_ymd] => 2025-02-08 19:42:05 [RateCDR] => 1 ) [2025-02-08 19:42: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` >= '2025-02-08 16:42:05' and `end` < '2025-02-08 19:42: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 ,'') [2025-02-08 19:42:20] Production.INFO: count ==1775 [2025-02-08 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:42:05 - End Time 2025-02-08 19:42:05 [2025-02-08 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431925', 'tblTempUsageDetail_20' ) start [2025-02-08 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431925', 'tblTempUsageDetail_20' ) end [2025-02-08 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431925', 'tblTempVendorCDR_20' ) start [2025-02-08 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431925', 'tblTempVendorCDR_20' ) end [2025-02-08 19:42:20] Production.INFO: ProcessCDR(1,14431925,1,1,2) [2025-02-08 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431925', 'tblTempUsageDetail_20' ) start [2025-02-08 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431925', 'tblTempUsageDetail_20' ) end [2025-02-08 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:42:23] Production.INFO: ==6351== Releasing lock... [2025-02-08 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:42:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:43:06 [end_date_ymd] => 2025-02-08 19:43:06 [RateCDR] => 1 ) [2025-02-08 19:43: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-02-08 16:43:06' and `end` < '2025-02-08 19:43: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-02-08 19:43:19] Production.INFO: count ==1770 [2025-02-08 19:43:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:43:06 - End Time 2025-02-08 19:43:06 [2025-02-08 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431930', 'tblTempUsageDetail_20' ) start [2025-02-08 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431930', 'tblTempUsageDetail_20' ) end [2025-02-08 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431930', 'tblTempVendorCDR_20' ) start [2025-02-08 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431930', 'tblTempVendorCDR_20' ) end [2025-02-08 19:43:20] Production.INFO: ProcessCDR(1,14431930,1,1,2) [2025-02-08 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431930', 'tblTempUsageDetail_20' ) start [2025-02-08 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431930', 'tblTempUsageDetail_20' ) end [2025-02-08 19:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:43:25] Production.INFO: ==6423== Releasing lock... [2025-02-08 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:43:25] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:44:05 [end_date_ymd] => 2025-02-08 19:44:05 [RateCDR] => 1 ) [2025-02-08 19:44: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` >= '2025-02-08 16:44:05' and `end` < '2025-02-08 19:44: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 ,'') [2025-02-08 19:44:19] Production.INFO: count ==1770 [2025-02-08 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:44:05 - End Time 2025-02-08 19:44:05 [2025-02-08 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431935', 'tblTempUsageDetail_20' ) start [2025-02-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431935', 'tblTempUsageDetail_20' ) end [2025-02-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431935', 'tblTempVendorCDR_20' ) start [2025-02-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431935', 'tblTempVendorCDR_20' ) end [2025-02-08 19:44:19] Production.INFO: ProcessCDR(1,14431935,1,1,2) [2025-02-08 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431935', 'tblTempUsageDetail_20' ) start [2025-02-08 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431935', 'tblTempUsageDetail_20' ) end [2025-02-08 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:44:24] Production.INFO: ==6493== Releasing lock... [2025-02-08 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:44:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:45:05 [end_date_ymd] => 2025-02-08 19:45:05 [RateCDR] => 1 ) [2025-02-08 19:45: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` >= '2025-02-08 16:45:05' and `end` < '2025-02-08 19:45: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 ,'') [2025-02-08 19:45:19] Production.INFO: count ==1772 [2025-02-08 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:45:05 - End Time 2025-02-08 19:45:05 [2025-02-08 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431940', 'tblTempUsageDetail_20' ) start [2025-02-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431940', 'tblTempUsageDetail_20' ) end [2025-02-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431940', 'tblTempVendorCDR_20' ) start [2025-02-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431940', 'tblTempVendorCDR_20' ) end [2025-02-08 19:45:19] Production.INFO: ProcessCDR(1,14431940,1,1,2) [2025-02-08 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431940', 'tblTempUsageDetail_20' ) start [2025-02-08 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431940', 'tblTempUsageDetail_20' ) end [2025-02-08 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:45:24] Production.INFO: ==6567== Releasing lock... [2025-02-08 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:45:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:46:06 [end_date_ymd] => 2025-02-08 19:46:06 [RateCDR] => 1 ) [2025-02-08 19:46: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-02-08 16:46:06' and `end` < '2025-02-08 19:46: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-02-08 19:46:19] Production.INFO: count ==1777 [2025-02-08 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:46:06 - End Time 2025-02-08 19:46:06 [2025-02-08 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431945', 'tblTempUsageDetail_20' ) start [2025-02-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431945', 'tblTempUsageDetail_20' ) end [2025-02-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431945', 'tblTempVendorCDR_20' ) start [2025-02-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431945', 'tblTempVendorCDR_20' ) end [2025-02-08 19:46:19] Production.INFO: ProcessCDR(1,14431945,1,1,2) [2025-02-08 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431945', 'tblTempUsageDetail_20' ) start [2025-02-08 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431945', 'tblTempUsageDetail_20' ) end [2025-02-08 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:46:24] Production.INFO: ==6640== Releasing lock... [2025-02-08 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:46:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:47:05 [end_date_ymd] => 2025-02-08 19:47:05 [RateCDR] => 1 ) [2025-02-08 19:47: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` >= '2025-02-08 16:47:05' and `end` < '2025-02-08 19:47: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 ,'') [2025-02-08 19:47:19] Production.INFO: count ==1781 [2025-02-08 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:47:05 - End Time 2025-02-08 19:47:05 [2025-02-08 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431950', 'tblTempUsageDetail_20' ) start [2025-02-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431950', 'tblTempUsageDetail_20' ) end [2025-02-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431950', 'tblTempVendorCDR_20' ) start [2025-02-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431950', 'tblTempVendorCDR_20' ) end [2025-02-08 19:47:19] Production.INFO: ProcessCDR(1,14431950,1,1,2) [2025-02-08 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431950', 'tblTempUsageDetail_20' ) start [2025-02-08 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431950', 'tblTempUsageDetail_20' ) end [2025-02-08 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:47:24] Production.INFO: ==6715== Releasing lock... [2025-02-08 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:47:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:48:05 [end_date_ymd] => 2025-02-08 19:48:05 [RateCDR] => 1 ) [2025-02-08 19:48: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` >= '2025-02-08 16:48:05' and `end` < '2025-02-08 19:48: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 ,'') [2025-02-08 19:48:19] Production.INFO: count ==1780 [2025-02-08 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:48:05 - End Time 2025-02-08 19:48:05 [2025-02-08 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431955', 'tblTempUsageDetail_20' ) start [2025-02-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431955', 'tblTempUsageDetail_20' ) end [2025-02-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431955', 'tblTempVendorCDR_20' ) start [2025-02-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431955', 'tblTempVendorCDR_20' ) end [2025-02-08 19:48:19] Production.INFO: ProcessCDR(1,14431955,1,1,2) [2025-02-08 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431955', 'tblTempUsageDetail_20' ) start [2025-02-08 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431955', 'tblTempUsageDetail_20' ) end [2025-02-08 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:48:22] Production.INFO: ==6788== Releasing lock... [2025-02-08 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:48:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:49:05 [end_date_ymd] => 2025-02-08 19:49:05 [RateCDR] => 1 ) [2025-02-08 19:49: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` >= '2025-02-08 16:49:05' and `end` < '2025-02-08 19:49: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 ,'') [2025-02-08 19:49:18] Production.INFO: count ==1781 [2025-02-08 19:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:49:05 - End Time 2025-02-08 19:49:05 [2025-02-08 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431960', 'tblTempUsageDetail_20' ) start [2025-02-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431960', 'tblTempUsageDetail_20' ) end [2025-02-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431960', 'tblTempVendorCDR_20' ) start [2025-02-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431960', 'tblTempVendorCDR_20' ) end [2025-02-08 19:49:19] Production.INFO: ProcessCDR(1,14431960,1,1,2) [2025-02-08 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431960', 'tblTempUsageDetail_20' ) start [2025-02-08 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431960', 'tblTempUsageDetail_20' ) end [2025-02-08 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:49:24] Production.INFO: ==6867== Releasing lock... [2025-02-08 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:49:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:50:05 [end_date_ymd] => 2025-02-08 19:50:05 [RateCDR] => 1 ) [2025-02-08 19:50: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` >= '2025-02-08 16:50:05' and `end` < '2025-02-08 19:50: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 ,'') [2025-02-08 19:50:19] Production.INFO: count ==1783 [2025-02-08 19:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:50:05 - End Time 2025-02-08 19:50:05 [2025-02-08 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431965', 'tblTempUsageDetail_20' ) start [2025-02-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431965', 'tblTempUsageDetail_20' ) end [2025-02-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431965', 'tblTempVendorCDR_20' ) start [2025-02-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431965', 'tblTempVendorCDR_20' ) end [2025-02-08 19:50:19] Production.INFO: ProcessCDR(1,14431965,1,1,2) [2025-02-08 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431965', 'tblTempUsageDetail_20' ) start [2025-02-08 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431965', 'tblTempUsageDetail_20' ) end [2025-02-08 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:50:24] Production.INFO: ==6940== Releasing lock... [2025-02-08 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:50:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:51:06 [end_date_ymd] => 2025-02-08 19:51:06 [RateCDR] => 1 ) [2025-02-08 19:51: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-02-08 16:51:06' and `end` < '2025-02-08 19:51: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-02-08 19:51:19] Production.INFO: count ==1768 [2025-02-08 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:51:06 - End Time 2025-02-08 19:51:06 [2025-02-08 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431971', 'tblTempUsageDetail_20' ) start [2025-02-08 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431971', 'tblTempUsageDetail_20' ) end [2025-02-08 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431971', 'tblTempVendorCDR_20' ) start [2025-02-08 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431971', 'tblTempVendorCDR_20' ) end [2025-02-08 19:51:19] Production.INFO: ProcessCDR(1,14431971,1,1,2) [2025-02-08 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431971', 'tblTempUsageDetail_20' ) start [2025-02-08 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431971', 'tblTempUsageDetail_20' ) end [2025-02-08 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:51:22] Production.INFO: ==7019== Releasing lock... [2025-02-08 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:51:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:52:05 [end_date_ymd] => 2025-02-08 19:52:05 [RateCDR] => 1 ) [2025-02-08 19:52: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` >= '2025-02-08 16:52:05' and `end` < '2025-02-08 19:52: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 ,'') [2025-02-08 19:52:20] Production.INFO: count ==1773 [2025-02-08 19:52:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:52:05 - End Time 2025-02-08 19:52:05 [2025-02-08 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431976', 'tblTempUsageDetail_20' ) start [2025-02-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431976', 'tblTempUsageDetail_20' ) end [2025-02-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431976', 'tblTempVendorCDR_20' ) start [2025-02-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431976', 'tblTempVendorCDR_20' ) end [2025-02-08 19:52:21] Production.INFO: ProcessCDR(1,14431976,1,1,2) [2025-02-08 19:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431976', 'tblTempUsageDetail_20' ) start [2025-02-08 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431976', 'tblTempUsageDetail_20' ) end [2025-02-08 19:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:52:26] Production.INFO: ==7090== Releasing lock... [2025-02-08 19:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:52:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:53:06 [end_date_ymd] => 2025-02-08 19:53:06 [RateCDR] => 1 ) [2025-02-08 19:53: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-02-08 16:53:06' and `end` < '2025-02-08 19:53: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-02-08 19:53:19] Production.INFO: count ==1772 [2025-02-08 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:53:06 - End Time 2025-02-08 19:53:06 [2025-02-08 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431981', 'tblTempUsageDetail_20' ) start [2025-02-08 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431981', 'tblTempUsageDetail_20' ) end [2025-02-08 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431981', 'tblTempVendorCDR_20' ) start [2025-02-08 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431981', 'tblTempVendorCDR_20' ) end [2025-02-08 19:53:20] Production.INFO: ProcessCDR(1,14431981,1,1,2) [2025-02-08 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431981', 'tblTempUsageDetail_20' ) start [2025-02-08 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431981', 'tblTempUsageDetail_20' ) end [2025-02-08 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:53:25] Production.INFO: ==7165== Releasing lock... [2025-02-08 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:53:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:54:05 [end_date_ymd] => 2025-02-08 19:54:05 [RateCDR] => 1 ) [2025-02-08 19:54: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` >= '2025-02-08 16:54:05' and `end` < '2025-02-08 19:54: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 ,'') [2025-02-08 19:54:18] Production.INFO: count ==1767 [2025-02-08 19:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 16:54:05 - End Time 2025-02-08 19:54:05 [2025-02-08 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431986', 'tblTempUsageDetail_20' ) start [2025-02-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431986', 'tblTempUsageDetail_20' ) end [2025-02-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431986', 'tblTempVendorCDR_20' ) start [2025-02-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431986', 'tblTempVendorCDR_20' ) end [2025-02-08 19:54:18] Production.INFO: ProcessCDR(1,14431986,1,1,2) [2025-02-08 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431986', 'tblTempUsageDetail_20' ) start [2025-02-08 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431986', 'tblTempUsageDetail_20' ) end [2025-02-08 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:54:22] Production.INFO: ==7237== Releasing lock... [2025-02-08 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:55:06 [end_date_ymd] => 2025-02-08 19:55:06 [RateCDR] => 1 ) [2025-02-08 19:55: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-02-08 16:55:06' and `end` < '2025-02-08 19:55: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-02-08 19:55:21] Production.INFO: count ==1769 [2025-02-08 19:55:21] Production.ERROR: pbx CDR StartTime 2025-02-08 16:55:06 - End Time 2025-02-08 19:55:06 [2025-02-08 19:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431991', 'tblTempUsageDetail_20' ) start [2025-02-08 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431991', 'tblTempUsageDetail_20' ) end [2025-02-08 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431991', 'tblTempVendorCDR_20' ) start [2025-02-08 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431991', 'tblTempVendorCDR_20' ) end [2025-02-08 19:55:21] Production.INFO: ProcessCDR(1,14431991,1,1,2) [2025-02-08 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431991', 'tblTempUsageDetail_20' ) start [2025-02-08 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431991', 'tblTempUsageDetail_20' ) end [2025-02-08 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:55:24] Production.INFO: ==7308== Releasing lock... [2025-02-08 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:55:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:56:05 [end_date_ymd] => 2025-02-08 19:56:05 [RateCDR] => 1 ) [2025-02-08 19:56: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` >= '2025-02-08 16:56:05' and `end` < '2025-02-08 19:56: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 ,'') [2025-02-08 19:56:18] Production.INFO: count ==1765 [2025-02-08 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:56:05 - End Time 2025-02-08 19:56:05 [2025-02-08 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431996', 'tblTempUsageDetail_20' ) start [2025-02-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14431996', 'tblTempUsageDetail_20' ) end [2025-02-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431996', 'tblTempVendorCDR_20' ) start [2025-02-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14431996', 'tblTempVendorCDR_20' ) end [2025-02-08 19:56:19] Production.INFO: ProcessCDR(1,14431996,1,1,2) [2025-02-08 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14431996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14431996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14431996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14431996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431996', 'tblTempUsageDetail_20' ) start [2025-02-08 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14431996', 'tblTempUsageDetail_20' ) end [2025-02-08 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:56:22] Production.INFO: ==7382== Releasing lock... [2025-02-08 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:56:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:57:06 [end_date_ymd] => 2025-02-08 19:57:06 [RateCDR] => 1 ) [2025-02-08 19:57: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-02-08 16:57:06' and `end` < '2025-02-08 19:57: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-02-08 19:57:22] Production.INFO: count ==1765 [2025-02-08 19:57:22] Production.ERROR: pbx CDR StartTime 2025-02-08 16:57:06 - End Time 2025-02-08 19:57:06 [2025-02-08 19:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432001', 'tblTempUsageDetail_20' ) start [2025-02-08 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432001', 'tblTempUsageDetail_20' ) end [2025-02-08 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432001', 'tblTempVendorCDR_20' ) start [2025-02-08 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432001', 'tblTempVendorCDR_20' ) end [2025-02-08 19:57:22] Production.INFO: ProcessCDR(1,14432001,1,1,2) [2025-02-08 19:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432001', 'tblTempUsageDetail_20' ) start [2025-02-08 19:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432001', 'tblTempUsageDetail_20' ) end [2025-02-08 19:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:57:26] Production.INFO: ==7454== Releasing lock... [2025-02-08 19:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:57:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:58:05 [end_date_ymd] => 2025-02-08 19:58:05 [RateCDR] => 1 ) [2025-02-08 19:58: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` >= '2025-02-08 16:58:05' and `end` < '2025-02-08 19:58: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 ,'') [2025-02-08 19:58:19] Production.INFO: count ==1757 [2025-02-08 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 16:58:05 - End Time 2025-02-08 19:58:05 [2025-02-08 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432006', 'tblTempUsageDetail_20' ) start [2025-02-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432006', 'tblTempUsageDetail_20' ) end [2025-02-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432006', 'tblTempVendorCDR_20' ) start [2025-02-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432006', 'tblTempVendorCDR_20' ) end [2025-02-08 19:58:19] Production.INFO: ProcessCDR(1,14432006,1,1,2) [2025-02-08 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432006', 'tblTempUsageDetail_20' ) start [2025-02-08 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432006', 'tblTempUsageDetail_20' ) end [2025-02-08 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:58:24] Production.INFO: ==7567== Releasing lock... [2025-02-08 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:58:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 16:59:05 [end_date_ymd] => 2025-02-08 19:59:05 [RateCDR] => 1 ) [2025-02-08 19:59: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` >= '2025-02-08 16:59:05' and `end` < '2025-02-08 19:59: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 ,'') [2025-02-08 19:59:20] Production.INFO: count ==1766 [2025-02-08 19:59:20] Production.ERROR: pbx CDR StartTime 2025-02-08 16:59:05 - End Time 2025-02-08 19:59:05 [2025-02-08 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432011', 'tblTempUsageDetail_20' ) start [2025-02-08 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432011', 'tblTempUsageDetail_20' ) end [2025-02-08 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432011', 'tblTempVendorCDR_20' ) start [2025-02-08 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432011', 'tblTempVendorCDR_20' ) end [2025-02-08 19:59:20] Production.INFO: ProcessCDR(1,14432011,1,1,2) [2025-02-08 19:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432011', 'tblTempUsageDetail_20' ) start [2025-02-08 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432011', 'tblTempUsageDetail_20' ) end [2025-02-08 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 19:59:24] Production.INFO: ==7645== Releasing lock... [2025-02-08 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 19:59:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:00:06 [end_date_ymd] => 2025-02-08 20:00:06 [RateCDR] => 1 ) [2025-02-08 20: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-02-08 17:00:06' and `end` < '2025-02-08 20: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-02-08 20:00:19] Production.INFO: count ==1776 [2025-02-08 20:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:00:06 - End Time 2025-02-08 20:00:06 [2025-02-08 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432017', 'tblTempUsageDetail_20' ) start [2025-02-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432017', 'tblTempUsageDetail_20' ) end [2025-02-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432017', 'tblTempVendorCDR_20' ) start [2025-02-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432017', 'tblTempVendorCDR_20' ) end [2025-02-08 20:00:19] Production.INFO: ProcessCDR(1,14432017,1,1,2) [2025-02-08 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432017', 'tblTempUsageDetail_20' ) start [2025-02-08 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432017', 'tblTempUsageDetail_20' ) end [2025-02-08 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:00:23] Production.INFO: ==7721== Releasing lock... [2025-02-08 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:00:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:01:06 [end_date_ymd] => 2025-02-08 20:01:06 [RateCDR] => 1 ) [2025-02-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` >= '2025-02-08 17:01:06' and `end` < '2025-02-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 ,'') [2025-02-08 20:01:20] Production.INFO: count ==1767 [2025-02-08 20:01:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:01:06 - End Time 2025-02-08 20:01:06 [2025-02-08 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432022', 'tblTempUsageDetail_20' ) start [2025-02-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432022', 'tblTempUsageDetail_20' ) end [2025-02-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432022', 'tblTempVendorCDR_20' ) start [2025-02-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432022', 'tblTempVendorCDR_20' ) end [2025-02-08 20:01:20] Production.INFO: ProcessCDR(1,14432022,1,1,2) [2025-02-08 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432022', 'tblTempUsageDetail_20' ) start [2025-02-08 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432022', 'tblTempUsageDetail_20' ) end [2025-02-08 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:01:25] Production.INFO: ==7845== Releasing lock... [2025-02-08 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:01:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:02:05 [end_date_ymd] => 2025-02-08 20:02:05 [RateCDR] => 1 ) [2025-02-08 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 17:02:05' and `end` < '2025-02-08 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 20:02:19] Production.INFO: count ==1767 [2025-02-08 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:02:05 - End Time 2025-02-08 20:02:05 [2025-02-08 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432027', 'tblTempUsageDetail_20' ) start [2025-02-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432027', 'tblTempUsageDetail_20' ) end [2025-02-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432027', 'tblTempVendorCDR_20' ) start [2025-02-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432027', 'tblTempVendorCDR_20' ) end [2025-02-08 20:02:19] Production.INFO: ProcessCDR(1,14432027,1,1,2) [2025-02-08 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432027', 'tblTempUsageDetail_20' ) start [2025-02-08 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432027', 'tblTempUsageDetail_20' ) end [2025-02-08 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:02:22] Production.INFO: ==7917== Releasing lock... [2025-02-08 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:02:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:03:05 [end_date_ymd] => 2025-02-08 20:03:05 [RateCDR] => 1 ) [2025-02-08 20:03: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` >= '2025-02-08 17:03:05' and `end` < '2025-02-08 20:03: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 ,'') [2025-02-08 20:03:19] Production.INFO: count ==1769 [2025-02-08 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:03:05 - End Time 2025-02-08 20:03:05 [2025-02-08 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432032', 'tblTempUsageDetail_20' ) start [2025-02-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432032', 'tblTempUsageDetail_20' ) end [2025-02-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432032', 'tblTempVendorCDR_20' ) start [2025-02-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432032', 'tblTempVendorCDR_20' ) end [2025-02-08 20:03:19] Production.INFO: ProcessCDR(1,14432032,1,1,2) [2025-02-08 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432032', 'tblTempUsageDetail_20' ) start [2025-02-08 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432032', 'tblTempUsageDetail_20' ) end [2025-02-08 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:03:23] Production.INFO: ==7988== Releasing lock... [2025-02-08 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:04:05 [end_date_ymd] => 2025-02-08 20:04:05 [RateCDR] => 1 ) [2025-02-08 20:04: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` >= '2025-02-08 17:04:05' and `end` < '2025-02-08 20:04: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 ,'') [2025-02-08 20:04:18] Production.INFO: count ==1769 [2025-02-08 20:04:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:04:05 - End Time 2025-02-08 20:04:05 [2025-02-08 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432037', 'tblTempUsageDetail_20' ) start [2025-02-08 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432037', 'tblTempUsageDetail_20' ) end [2025-02-08 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432037', 'tblTempVendorCDR_20' ) start [2025-02-08 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432037', 'tblTempVendorCDR_20' ) end [2025-02-08 20:04:18] Production.INFO: ProcessCDR(1,14432037,1,1,2) [2025-02-08 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432037', 'tblTempUsageDetail_20' ) start [2025-02-08 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432037', 'tblTempUsageDetail_20' ) end [2025-02-08 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:04:23] Production.INFO: ==8060== Releasing lock... [2025-02-08 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:04:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:05:05 [end_date_ymd] => 2025-02-08 20:05:05 [RateCDR] => 1 ) [2025-02-08 20:05: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` >= '2025-02-08 17:05:05' and `end` < '2025-02-08 20:05: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 ,'') [2025-02-08 20:05:19] Production.INFO: count ==1763 [2025-02-08 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:05:05 - End Time 2025-02-08 20:05:05 [2025-02-08 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432042', 'tblTempUsageDetail_20' ) start [2025-02-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432042', 'tblTempUsageDetail_20' ) end [2025-02-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432042', 'tblTempVendorCDR_20' ) start [2025-02-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432042', 'tblTempVendorCDR_20' ) end [2025-02-08 20:05:19] Production.INFO: ProcessCDR(1,14432042,1,1,2) [2025-02-08 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432042', 'tblTempUsageDetail_20' ) start [2025-02-08 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432042', 'tblTempUsageDetail_20' ) end [2025-02-08 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:05:22] Production.INFO: ==8133== Releasing lock... [2025-02-08 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:06:06 [end_date_ymd] => 2025-02-08 20:06:06 [RateCDR] => 1 ) [2025-02-08 20:06: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-02-08 17:06:06' and `end` < '2025-02-08 20:06: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-02-08 20:06:20] Production.INFO: count ==1761 [2025-02-08 20:06:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:06:06 - End Time 2025-02-08 20:06:06 [2025-02-08 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432047', 'tblTempUsageDetail_20' ) start [2025-02-08 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432047', 'tblTempUsageDetail_20' ) end [2025-02-08 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432047', 'tblTempVendorCDR_20' ) start [2025-02-08 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432047', 'tblTempVendorCDR_20' ) end [2025-02-08 20:06:20] Production.INFO: ProcessCDR(1,14432047,1,1,2) [2025-02-08 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432047', 'tblTempUsageDetail_20' ) start [2025-02-08 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432047', 'tblTempUsageDetail_20' ) end [2025-02-08 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:06:24] Production.INFO: ==8208== Releasing lock... [2025-02-08 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:06:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:07:06 [end_date_ymd] => 2025-02-08 20:07:06 [RateCDR] => 1 ) [2025-02-08 20:07: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-02-08 17:07:06' and `end` < '2025-02-08 20:07: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-02-08 20:07:19] Production.INFO: count ==1763 [2025-02-08 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:07:06 - End Time 2025-02-08 20:07:06 [2025-02-08 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432052', 'tblTempUsageDetail_20' ) start [2025-02-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432052', 'tblTempUsageDetail_20' ) end [2025-02-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432052', 'tblTempVendorCDR_20' ) start [2025-02-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432052', 'tblTempVendorCDR_20' ) end [2025-02-08 20:07:19] Production.INFO: ProcessCDR(1,14432052,1,1,2) [2025-02-08 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432052', 'tblTempUsageDetail_20' ) start [2025-02-08 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432052', 'tblTempUsageDetail_20' ) end [2025-02-08 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:07:23] Production.INFO: ==8281== Releasing lock... [2025-02-08 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:07:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:08:05 [end_date_ymd] => 2025-02-08 20:08:05 [RateCDR] => 1 ) [2025-02-08 20:08: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` >= '2025-02-08 17:08:05' and `end` < '2025-02-08 20:08: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 ,'') [2025-02-08 20:08:18] Production.INFO: count ==1756 [2025-02-08 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:08:05 - End Time 2025-02-08 20:08:05 [2025-02-08 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432056', 'tblTempUsageDetail_20' ) start [2025-02-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432056', 'tblTempUsageDetail_20' ) end [2025-02-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432056', 'tblTempVendorCDR_20' ) start [2025-02-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432056', 'tblTempVendorCDR_20' ) end [2025-02-08 20:08:19] Production.INFO: ProcessCDR(1,14432056,1,1,2) [2025-02-08 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432056', 'tblTempUsageDetail_20' ) start [2025-02-08 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432056', 'tblTempUsageDetail_20' ) end [2025-02-08 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:08:22] Production.INFO: ==8359== Releasing lock... [2025-02-08 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:08:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:09:06 [end_date_ymd] => 2025-02-08 20:09:06 [RateCDR] => 1 ) [2025-02-08 20:09: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-02-08 17:09:06' and `end` < '2025-02-08 20:09: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-02-08 20:09:20] Production.INFO: count ==1759 [2025-02-08 20:09:21] Production.ERROR: pbx CDR StartTime 2025-02-08 17:09:06 - End Time 2025-02-08 20:09:06 [2025-02-08 20:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432062', 'tblTempUsageDetail_20' ) start [2025-02-08 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432062', 'tblTempUsageDetail_20' ) end [2025-02-08 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432062', 'tblTempVendorCDR_20' ) start [2025-02-08 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432062', 'tblTempVendorCDR_20' ) end [2025-02-08 20:09:21] Production.INFO: ProcessCDR(1,14432062,1,1,2) [2025-02-08 20:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432062', 'tblTempUsageDetail_20' ) start [2025-02-08 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432062', 'tblTempUsageDetail_20' ) end [2025-02-08 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:09:24] Production.INFO: ==8431== Releasing lock... [2025-02-08 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:09:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:10:06 [end_date_ymd] => 2025-02-08 20:10:06 [RateCDR] => 1 ) [2025-02-08 20:10: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-02-08 17:10:06' and `end` < '2025-02-08 20:10: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-02-08 20:10:19] Production.INFO: count ==1758 [2025-02-08 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:10:06 - End Time 2025-02-08 20:10:06 [2025-02-08 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432068', 'tblTempUsageDetail_20' ) start [2025-02-08 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432068', 'tblTempUsageDetail_20' ) end [2025-02-08 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432068', 'tblTempVendorCDR_20' ) start [2025-02-08 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432068', 'tblTempVendorCDR_20' ) end [2025-02-08 20:10:20] Production.INFO: ProcessCDR(1,14432068,1,1,2) [2025-02-08 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432068', 'tblTempUsageDetail_20' ) start [2025-02-08 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432068', 'tblTempUsageDetail_20' ) end [2025-02-08 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:10:23] Production.INFO: ==8504== Releasing lock... [2025-02-08 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:10:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:11:05 [end_date_ymd] => 2025-02-08 20:11:05 [RateCDR] => 1 ) [2025-02-08 20:11: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` >= '2025-02-08 17:11:05' and `end` < '2025-02-08 20:11: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 ,'') [2025-02-08 20:11:19] Production.INFO: count ==1770 [2025-02-08 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:11:05 - End Time 2025-02-08 20:11:05 [2025-02-08 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432073', 'tblTempUsageDetail_20' ) start [2025-02-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432073', 'tblTempUsageDetail_20' ) end [2025-02-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432073', 'tblTempVendorCDR_20' ) start [2025-02-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432073', 'tblTempVendorCDR_20' ) end [2025-02-08 20:11:19] Production.INFO: ProcessCDR(1,14432073,1,1,2) [2025-02-08 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432073', 'tblTempUsageDetail_20' ) start [2025-02-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432073', 'tblTempUsageDetail_20' ) end [2025-02-08 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:11:22] Production.INFO: ==8579== Releasing lock... [2025-02-08 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:11:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:12:05 [end_date_ymd] => 2025-02-08 20:12:05 [RateCDR] => 1 ) [2025-02-08 20:12: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` >= '2025-02-08 17:12:05' and `end` < '2025-02-08 20:12: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 ,'') [2025-02-08 20:12:20] Production.INFO: count ==1766 [2025-02-08 20:12:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:12:05 - End Time 2025-02-08 20:12:05 [2025-02-08 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432078', 'tblTempUsageDetail_20' ) start [2025-02-08 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432078', 'tblTempUsageDetail_20' ) end [2025-02-08 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432078', 'tblTempVendorCDR_20' ) start [2025-02-08 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432078', 'tblTempVendorCDR_20' ) end [2025-02-08 20:12:20] Production.INFO: ProcessCDR(1,14432078,1,1,2) [2025-02-08 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432078', 'tblTempUsageDetail_20' ) start [2025-02-08 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432078', 'tblTempUsageDetail_20' ) end [2025-02-08 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:12:23] Production.INFO: ==8653== Releasing lock... [2025-02-08 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:13:05 [end_date_ymd] => 2025-02-08 20:13:05 [RateCDR] => 1 ) [2025-02-08 20:13: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` >= '2025-02-08 17:13:05' and `end` < '2025-02-08 20:13: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 ,'') [2025-02-08 20:13:18] Production.INFO: count ==1766 [2025-02-08 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:13:05 - End Time 2025-02-08 20:13:05 [2025-02-08 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432083', 'tblTempUsageDetail_20' ) start [2025-02-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432083', 'tblTempUsageDetail_20' ) end [2025-02-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432083', 'tblTempVendorCDR_20' ) start [2025-02-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432083', 'tblTempVendorCDR_20' ) end [2025-02-08 20:13:18] Production.INFO: ProcessCDR(1,14432083,1,1,2) [2025-02-08 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432083', 'tblTempUsageDetail_20' ) start [2025-02-08 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432083', 'tblTempUsageDetail_20' ) end [2025-02-08 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:13:23] Production.INFO: ==8763== Releasing lock... [2025-02-08 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:14:05 [end_date_ymd] => 2025-02-08 20:14:05 [RateCDR] => 1 ) [2025-02-08 20:14: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` >= '2025-02-08 17:14:05' and `end` < '2025-02-08 20:14: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 ,'') [2025-02-08 20:14:19] Production.INFO: count ==1775 [2025-02-08 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:14:05 - End Time 2025-02-08 20:14:05 [2025-02-08 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432088', 'tblTempUsageDetail_20' ) start [2025-02-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432088', 'tblTempUsageDetail_20' ) end [2025-02-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432088', 'tblTempVendorCDR_20' ) start [2025-02-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432088', 'tblTempVendorCDR_20' ) end [2025-02-08 20:14:19] Production.INFO: ProcessCDR(1,14432088,1,1,2) [2025-02-08 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432088', 'tblTempUsageDetail_20' ) start [2025-02-08 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432088', 'tblTempUsageDetail_20' ) end [2025-02-08 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:14:24] Production.INFO: ==8835== Releasing lock... [2025-02-08 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:14:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:15:05 [end_date_ymd] => 2025-02-08 20:15:05 [RateCDR] => 1 ) [2025-02-08 20:15: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` >= '2025-02-08 17:15:05' and `end` < '2025-02-08 20:15: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 ,'') [2025-02-08 20:15:18] Production.INFO: count ==1774 [2025-02-08 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:15:05 - End Time 2025-02-08 20:15:05 [2025-02-08 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432093', 'tblTempUsageDetail_20' ) start [2025-02-08 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432093', 'tblTempUsageDetail_20' ) end [2025-02-08 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432093', 'tblTempVendorCDR_20' ) start [2025-02-08 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432093', 'tblTempVendorCDR_20' ) end [2025-02-08 20:15:19] Production.INFO: ProcessCDR(1,14432093,1,1,2) [2025-02-08 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432093', 'tblTempUsageDetail_20' ) start [2025-02-08 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432093', 'tblTempUsageDetail_20' ) end [2025-02-08 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:15:22] Production.INFO: ==8905== Releasing lock... [2025-02-08 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:15:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:16:05 [end_date_ymd] => 2025-02-08 20:16:05 [RateCDR] => 1 ) [2025-02-08 20:16: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` >= '2025-02-08 17:16:05' and `end` < '2025-02-08 20:16: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 ,'') [2025-02-08 20:16:19] Production.INFO: count ==1783 [2025-02-08 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:16:05 - End Time 2025-02-08 20:16:05 [2025-02-08 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432098', 'tblTempUsageDetail_20' ) start [2025-02-08 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432098', 'tblTempUsageDetail_20' ) end [2025-02-08 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432098', 'tblTempVendorCDR_20' ) start [2025-02-08 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432098', 'tblTempVendorCDR_20' ) end [2025-02-08 20:16:20] Production.INFO: ProcessCDR(1,14432098,1,1,2) [2025-02-08 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432098', 'tblTempUsageDetail_20' ) start [2025-02-08 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432098', 'tblTempUsageDetail_20' ) end [2025-02-08 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:16:23] Production.INFO: ==8980== Releasing lock... [2025-02-08 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:16:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:17:05 [end_date_ymd] => 2025-02-08 20:17:05 [RateCDR] => 1 ) [2025-02-08 20:17: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` >= '2025-02-08 17:17:05' and `end` < '2025-02-08 20:17: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 ,'') [2025-02-08 20:17:20] Production.INFO: count ==1786 [2025-02-08 20:17:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:17:05 - End Time 2025-02-08 20:17:05 [2025-02-08 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432103', 'tblTempUsageDetail_20' ) start [2025-02-08 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432103', 'tblTempUsageDetail_20' ) end [2025-02-08 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432103', 'tblTempVendorCDR_20' ) start [2025-02-08 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432103', 'tblTempVendorCDR_20' ) end [2025-02-08 20:17:20] Production.INFO: ProcessCDR(1,14432103,1,1,2) [2025-02-08 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432103', 'tblTempUsageDetail_20' ) start [2025-02-08 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432103', 'tblTempUsageDetail_20' ) end [2025-02-08 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:17:24] Production.INFO: ==9052== Releasing lock... [2025-02-08 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:17:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:18:05 [end_date_ymd] => 2025-02-08 20:18:05 [RateCDR] => 1 ) [2025-02-08 20:18: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` >= '2025-02-08 17:18:05' and `end` < '2025-02-08 20:18: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 ,'') [2025-02-08 20:18:19] Production.INFO: count ==1792 [2025-02-08 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:18:05 - End Time 2025-02-08 20:18:05 [2025-02-08 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432108', 'tblTempUsageDetail_20' ) start [2025-02-08 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432108', 'tblTempUsageDetail_20' ) end [2025-02-08 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432108', 'tblTempVendorCDR_20' ) start [2025-02-08 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432108', 'tblTempVendorCDR_20' ) end [2025-02-08 20:18:19] Production.INFO: ProcessCDR(1,14432108,1,1,2) [2025-02-08 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432108', 'tblTempUsageDetail_20' ) start [2025-02-08 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432108', 'tblTempUsageDetail_20' ) end [2025-02-08 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:18:24] Production.INFO: ==9134== Releasing lock... [2025-02-08 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:18:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:19:06 [end_date_ymd] => 2025-02-08 20:19:06 [RateCDR] => 1 ) [2025-02-08 20:19: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-02-08 17:19:06' and `end` < '2025-02-08 20:19: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-02-08 20:19:19] Production.INFO: count ==1789 [2025-02-08 20:19:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:19:06 - End Time 2025-02-08 20:19:06 [2025-02-08 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432113', 'tblTempUsageDetail_20' ) start [2025-02-08 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432113', 'tblTempUsageDetail_20' ) end [2025-02-08 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432113', 'tblTempVendorCDR_20' ) start [2025-02-08 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432113', 'tblTempVendorCDR_20' ) end [2025-02-08 20:19:20] Production.INFO: ProcessCDR(1,14432113,1,1,2) [2025-02-08 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432113', 'tblTempUsageDetail_20' ) start [2025-02-08 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432113', 'tblTempUsageDetail_20' ) end [2025-02-08 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:19:23] Production.INFO: ==9210== Releasing lock... [2025-02-08 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:19:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:20:06 [end_date_ymd] => 2025-02-08 20:20:06 [RateCDR] => 1 ) [2025-02-08 20:20: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-02-08 17:20:06' and `end` < '2025-02-08 20:20: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-02-08 20:20:19] Production.INFO: count ==1793 [2025-02-08 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:20:06 - End Time 2025-02-08 20:20:06 [2025-02-08 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432119', 'tblTempUsageDetail_20' ) start [2025-02-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432119', 'tblTempUsageDetail_20' ) end [2025-02-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432119', 'tblTempVendorCDR_20' ) start [2025-02-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432119', 'tblTempVendorCDR_20' ) end [2025-02-08 20:20:19] Production.INFO: ProcessCDR(1,14432119,1,1,2) [2025-02-08 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432119', 'tblTempUsageDetail_20' ) start [2025-02-08 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432119', 'tblTempUsageDetail_20' ) end [2025-02-08 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:20:23] Production.INFO: ==9285== Releasing lock... [2025-02-08 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:20:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:21:05 [end_date_ymd] => 2025-02-08 20:21:05 [RateCDR] => 1 ) [2025-02-08 20:21: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-02-08 17:21:05' and `end` < '2025-02-08 20:21: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 ,'') [2025-02-08 20:21:19] Production.INFO: count ==1758 [2025-02-08 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:21:05 - End Time 2025-02-08 20:21:05 [2025-02-08 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432124', 'tblTempUsageDetail_20' ) start [2025-02-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432124', 'tblTempUsageDetail_20' ) end [2025-02-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432124', 'tblTempVendorCDR_20' ) start [2025-02-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432124', 'tblTempVendorCDR_20' ) end [2025-02-08 20:21:19] Production.INFO: ProcessCDR(1,14432124,1,1,2) [2025-02-08 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432124', 'tblTempUsageDetail_20' ) start [2025-02-08 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432124', 'tblTempUsageDetail_20' ) end [2025-02-08 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:21:23] Production.INFO: ==9358== Releasing lock... [2025-02-08 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:21:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:22:05 [end_date_ymd] => 2025-02-08 20:22:05 [RateCDR] => 1 ) [2025-02-08 20:22: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` >= '2025-02-08 17:22:05' and `end` < '2025-02-08 20:22: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 ,'') [2025-02-08 20:22:19] Production.INFO: count ==1758 [2025-02-08 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:22:05 - End Time 2025-02-08 20:22:05 [2025-02-08 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432129', 'tblTempUsageDetail_20' ) start [2025-02-08 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432129', 'tblTempUsageDetail_20' ) end [2025-02-08 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432129', 'tblTempVendorCDR_20' ) start [2025-02-08 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432129', 'tblTempVendorCDR_20' ) end [2025-02-08 20:22:19] Production.INFO: ProcessCDR(1,14432129,1,1,2) [2025-02-08 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432129', 'tblTempUsageDetail_20' ) start [2025-02-08 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432129', 'tblTempUsageDetail_20' ) end [2025-02-08 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:22:25] Production.INFO: ==9431== Releasing lock... [2025-02-08 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:22:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:23:05 [end_date_ymd] => 2025-02-08 20:23:05 [RateCDR] => 1 ) [2025-02-08 20:23: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` >= '2025-02-08 17:23:05' and `end` < '2025-02-08 20:23: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 ,'') [2025-02-08 20:23:19] Production.INFO: count ==1758 [2025-02-08 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:23:05 - End Time 2025-02-08 20:23:05 [2025-02-08 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432134', 'tblTempUsageDetail_20' ) start [2025-02-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432134', 'tblTempUsageDetail_20' ) end [2025-02-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432134', 'tblTempVendorCDR_20' ) start [2025-02-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432134', 'tblTempVendorCDR_20' ) end [2025-02-08 20:23:19] Production.INFO: ProcessCDR(1,14432134,1,1,2) [2025-02-08 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432134', 'tblTempUsageDetail_20' ) start [2025-02-08 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432134', 'tblTempUsageDetail_20' ) end [2025-02-08 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:23:24] Production.INFO: ==9504== Releasing lock... [2025-02-08 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:23:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:24:05 [end_date_ymd] => 2025-02-08 20:24:05 [RateCDR] => 1 ) [2025-02-08 20:24: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` >= '2025-02-08 17:24:05' and `end` < '2025-02-08 20:24: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 ,'') [2025-02-08 20:24:18] Production.INFO: count ==1759 [2025-02-08 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:24:05 - End Time 2025-02-08 20:24:05 [2025-02-08 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432139', 'tblTempUsageDetail_20' ) start [2025-02-08 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432139', 'tblTempUsageDetail_20' ) end [2025-02-08 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432139', 'tblTempVendorCDR_20' ) start [2025-02-08 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432139', 'tblTempVendorCDR_20' ) end [2025-02-08 20:24:19] Production.INFO: ProcessCDR(1,14432139,1,1,2) [2025-02-08 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432139', 'tblTempUsageDetail_20' ) start [2025-02-08 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432139', 'tblTempUsageDetail_20' ) end [2025-02-08 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:24:24] Production.INFO: ==9574== Releasing lock... [2025-02-08 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:24:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:25:05 [end_date_ymd] => 2025-02-08 20:25:05 [RateCDR] => 1 ) [2025-02-08 20:25: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` >= '2025-02-08 17:25:05' and `end` < '2025-02-08 20:25: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 ,'') [2025-02-08 20:25:21] Production.INFO: count ==1715 [2025-02-08 20:25:21] Production.ERROR: pbx CDR StartTime 2025-02-08 17:25:05 - End Time 2025-02-08 20:25:05 [2025-02-08 20:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432144', 'tblTempUsageDetail_20' ) start [2025-02-08 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432144', 'tblTempUsageDetail_20' ) end [2025-02-08 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432144', 'tblTempVendorCDR_20' ) start [2025-02-08 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432144', 'tblTempVendorCDR_20' ) end [2025-02-08 20:25:21] Production.INFO: ProcessCDR(1,14432144,1,1,2) [2025-02-08 20:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432144', 'tblTempUsageDetail_20' ) start [2025-02-08 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432144', 'tblTempUsageDetail_20' ) end [2025-02-08 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:25:25] Production.INFO: ==9648== Releasing lock... [2025-02-08 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:25:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:26:05 [end_date_ymd] => 2025-02-08 20:26:05 [RateCDR] => 1 ) [2025-02-08 20:26: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` >= '2025-02-08 17:26:05' and `end` < '2025-02-08 20:26: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 ,'') [2025-02-08 20:26:19] Production.INFO: count ==1658 [2025-02-08 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:26:05 - End Time 2025-02-08 20:26:05 [2025-02-08 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432149', 'tblTempUsageDetail_20' ) start [2025-02-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432149', 'tblTempUsageDetail_20' ) end [2025-02-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432149', 'tblTempVendorCDR_20' ) start [2025-02-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432149', 'tblTempVendorCDR_20' ) end [2025-02-08 20:26:19] Production.INFO: ProcessCDR(1,14432149,1,1,2) [2025-02-08 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432149', 'tblTempUsageDetail_20' ) start [2025-02-08 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432149', 'tblTempUsageDetail_20' ) end [2025-02-08 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:26:24] Production.INFO: ==9723== Releasing lock... [2025-02-08 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:26:24] Production.INFO: 40 MB #Memory Used# [2025-02-08 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:27:05 [end_date_ymd] => 2025-02-08 20:27:05 [RateCDR] => 1 ) [2025-02-08 20:27: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` >= '2025-02-08 17:27:05' and `end` < '2025-02-08 20:27: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 ,'') [2025-02-08 20:27:18] Production.INFO: count ==1660 [2025-02-08 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:27:05 - End Time 2025-02-08 20:27:05 [2025-02-08 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432154', 'tblTempUsageDetail_20' ) start [2025-02-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432154', 'tblTempUsageDetail_20' ) end [2025-02-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432154', 'tblTempVendorCDR_20' ) start [2025-02-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432154', 'tblTempVendorCDR_20' ) end [2025-02-08 20:27:18] Production.INFO: ProcessCDR(1,14432154,1,1,2) [2025-02-08 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432154', 'tblTempUsageDetail_20' ) start [2025-02-08 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432154', 'tblTempUsageDetail_20' ) end [2025-02-08 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:27:22] Production.INFO: ==9793== Releasing lock... [2025-02-08 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:27:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:28:05 [end_date_ymd] => 2025-02-08 20:28:05 [RateCDR] => 1 ) [2025-02-08 20:28: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` >= '2025-02-08 17:28:05' and `end` < '2025-02-08 20:28: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 ,'') [2025-02-08 20:28:18] Production.INFO: count ==1663 [2025-02-08 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:28:05 - End Time 2025-02-08 20:28:05 [2025-02-08 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432159', 'tblTempUsageDetail_20' ) start [2025-02-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432159', 'tblTempUsageDetail_20' ) end [2025-02-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432159', 'tblTempVendorCDR_20' ) start [2025-02-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432159', 'tblTempVendorCDR_20' ) end [2025-02-08 20:28:18] Production.INFO: ProcessCDR(1,14432159,1,1,2) [2025-02-08 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432159', 'tblTempUsageDetail_20' ) start [2025-02-08 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432159', 'tblTempUsageDetail_20' ) end [2025-02-08 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:28:22] Production.INFO: ==9872== Releasing lock... [2025-02-08 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:28:22] Production.INFO: 40 MB #Memory Used# [2025-02-08 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:29:06 [end_date_ymd] => 2025-02-08 20:29:06 [RateCDR] => 1 ) [2025-02-08 20:29: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-02-08 17:29:06' and `end` < '2025-02-08 20:29: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-02-08 20:29:19] Production.INFO: count ==1647 [2025-02-08 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:29:06 - End Time 2025-02-08 20:29:06 [2025-02-08 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432164', 'tblTempUsageDetail_20' ) start [2025-02-08 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432164', 'tblTempUsageDetail_20' ) end [2025-02-08 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432164', 'tblTempVendorCDR_20' ) start [2025-02-08 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432164', 'tblTempVendorCDR_20' ) end [2025-02-08 20:29:19] Production.INFO: ProcessCDR(1,14432164,1,1,2) [2025-02-08 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432164', 'tblTempUsageDetail_20' ) start [2025-02-08 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432164', 'tblTempUsageDetail_20' ) end [2025-02-08 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:29:23] Production.INFO: ==9983== Releasing lock... [2025-02-08 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:29:23] Production.INFO: 40 MB #Memory Used# [2025-02-08 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:30:06 [end_date_ymd] => 2025-02-08 20:30:06 [RateCDR] => 1 ) [2025-02-08 20:30: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-02-08 17:30:06' and `end` < '2025-02-08 20:30: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-02-08 20:30:19] Production.INFO: count ==1650 [2025-02-08 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:30:06 - End Time 2025-02-08 20:30:06 [2025-02-08 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432170', 'tblTempUsageDetail_20' ) start [2025-02-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432170', 'tblTempUsageDetail_20' ) end [2025-02-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432170', 'tblTempVendorCDR_20' ) start [2025-02-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432170', 'tblTempVendorCDR_20' ) end [2025-02-08 20:30:19] Production.INFO: ProcessCDR(1,14432170,1,1,2) [2025-02-08 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432170', 'tblTempUsageDetail_20' ) start [2025-02-08 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432170', 'tblTempUsageDetail_20' ) end [2025-02-08 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:30:24] Production.INFO: ==10059== Releasing lock... [2025-02-08 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:30:24] Production.INFO: 40 MB #Memory Used# [2025-02-08 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:31:06 [end_date_ymd] => 2025-02-08 20:31:06 [RateCDR] => 1 ) [2025-02-08 20:31: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-02-08 17:31:06' and `end` < '2025-02-08 20:31: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-02-08 20:31:19] Production.INFO: count ==1623 [2025-02-08 20:31:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:31:06 - End Time 2025-02-08 20:31:06 [2025-02-08 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432175', 'tblTempUsageDetail_20' ) start [2025-02-08 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432175', 'tblTempUsageDetail_20' ) end [2025-02-08 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432175', 'tblTempVendorCDR_20' ) start [2025-02-08 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432175', 'tblTempVendorCDR_20' ) end [2025-02-08 20:31:20] Production.INFO: ProcessCDR(1,14432175,1,1,2) [2025-02-08 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432175', 'tblTempUsageDetail_20' ) start [2025-02-08 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432175', 'tblTempUsageDetail_20' ) end [2025-02-08 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:31:25] Production.INFO: ==10134== Releasing lock... [2025-02-08 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:31:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:32:05 [end_date_ymd] => 2025-02-08 20:32:05 [RateCDR] => 1 ) [2025-02-08 20:32: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` >= '2025-02-08 17:32:05' and `end` < '2025-02-08 20:32: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 ,'') [2025-02-08 20:32:18] Production.INFO: count ==1622 [2025-02-08 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:32:05 - End Time 2025-02-08 20:32:05 [2025-02-08 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432180', 'tblTempUsageDetail_20' ) start [2025-02-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432180', 'tblTempUsageDetail_20' ) end [2025-02-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432180', 'tblTempVendorCDR_20' ) start [2025-02-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432180', 'tblTempVendorCDR_20' ) end [2025-02-08 20:32:18] Production.INFO: ProcessCDR(1,14432180,1,1,2) [2025-02-08 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432180', 'tblTempUsageDetail_20' ) start [2025-02-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432180', 'tblTempUsageDetail_20' ) end [2025-02-08 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:32:22] Production.INFO: ==10205== Releasing lock... [2025-02-08 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:32:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:33:06 [end_date_ymd] => 2025-02-08 20:33:06 [RateCDR] => 1 ) [2025-02-08 20:33: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-02-08 17:33:06' and `end` < '2025-02-08 20:33: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-02-08 20:33:20] Production.INFO: count ==1622 [2025-02-08 20:33:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:33:06 - End Time 2025-02-08 20:33:06 [2025-02-08 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432185', 'tblTempUsageDetail_20' ) start [2025-02-08 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432185', 'tblTempUsageDetail_20' ) end [2025-02-08 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432185', 'tblTempVendorCDR_20' ) start [2025-02-08 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432185', 'tblTempVendorCDR_20' ) end [2025-02-08 20:33:20] Production.INFO: ProcessCDR(1,14432185,1,1,2) [2025-02-08 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432185', 'tblTempUsageDetail_20' ) start [2025-02-08 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432185', 'tblTempUsageDetail_20' ) end [2025-02-08 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:33:23] Production.INFO: ==10276== Releasing lock... [2025-02-08 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:33:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:34:05 [end_date_ymd] => 2025-02-08 20:34:05 [RateCDR] => 1 ) [2025-02-08 20:34: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` >= '2025-02-08 17:34:05' and `end` < '2025-02-08 20:34: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 ,'') [2025-02-08 20:34:18] Production.INFO: count ==1619 [2025-02-08 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:34:05 - End Time 2025-02-08 20:34:05 [2025-02-08 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432190', 'tblTempUsageDetail_20' ) start [2025-02-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432190', 'tblTempUsageDetail_20' ) end [2025-02-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432190', 'tblTempVendorCDR_20' ) start [2025-02-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432190', 'tblTempVendorCDR_20' ) end [2025-02-08 20:34:18] Production.INFO: ProcessCDR(1,14432190,1,1,2) [2025-02-08 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432190', 'tblTempUsageDetail_20' ) start [2025-02-08 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432190', 'tblTempUsageDetail_20' ) end [2025-02-08 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:34:21] Production.INFO: ==10349== Releasing lock... [2025-02-08 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:34:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:35:06 [end_date_ymd] => 2025-02-08 20:35:06 [RateCDR] => 1 ) [2025-02-08 20:35: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-02-08 17:35:06' and `end` < '2025-02-08 20:35: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-02-08 20:35:19] Production.INFO: count ==1623 [2025-02-08 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:35:06 - End Time 2025-02-08 20:35:06 [2025-02-08 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432195', 'tblTempUsageDetail_20' ) start [2025-02-08 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432195', 'tblTempUsageDetail_20' ) end [2025-02-08 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432195', 'tblTempVendorCDR_20' ) start [2025-02-08 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432195', 'tblTempVendorCDR_20' ) end [2025-02-08 20:35:19] Production.INFO: ProcessCDR(1,14432195,1,1,2) [2025-02-08 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432195', 'tblTempUsageDetail_20' ) start [2025-02-08 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432195', 'tblTempUsageDetail_20' ) end [2025-02-08 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:35:23] Production.INFO: ==10422== Releasing lock... [2025-02-08 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:35:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:36:05 [end_date_ymd] => 2025-02-08 20:36:05 [RateCDR] => 1 ) [2025-02-08 20:36: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` >= '2025-02-08 17:36:05' and `end` < '2025-02-08 20:36: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 ,'') [2025-02-08 20:36:20] Production.INFO: count ==1623 [2025-02-08 20:36:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:36:05 - End Time 2025-02-08 20:36:05 [2025-02-08 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432200', 'tblTempUsageDetail_20' ) start [2025-02-08 20:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432200', 'tblTempUsageDetail_20' ) end [2025-02-08 20:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432200', 'tblTempVendorCDR_20' ) start [2025-02-08 20:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432200', 'tblTempVendorCDR_20' ) end [2025-02-08 20:36:21] Production.INFO: ProcessCDR(1,14432200,1,1,2) [2025-02-08 20:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432200', 'tblTempUsageDetail_20' ) start [2025-02-08 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432200', 'tblTempUsageDetail_20' ) end [2025-02-08 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:36:24] Production.INFO: ==10492== Releasing lock... [2025-02-08 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:37:05 [end_date_ymd] => 2025-02-08 20:37:05 [RateCDR] => 1 ) [2025-02-08 20:37: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` >= '2025-02-08 17:37:05' and `end` < '2025-02-08 20:37: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 ,'') [2025-02-08 20:37:18] Production.INFO: count ==1622 [2025-02-08 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:37:05 - End Time 2025-02-08 20:37:05 [2025-02-08 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432205', 'tblTempUsageDetail_20' ) start [2025-02-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432205', 'tblTempUsageDetail_20' ) end [2025-02-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432205', 'tblTempVendorCDR_20' ) start [2025-02-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432205', 'tblTempVendorCDR_20' ) end [2025-02-08 20:37:18] Production.INFO: ProcessCDR(1,14432205,1,1,2) [2025-02-08 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432205', 'tblTempUsageDetail_20' ) start [2025-02-08 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432205', 'tblTempUsageDetail_20' ) end [2025-02-08 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:37:22] Production.INFO: ==10565== Releasing lock... [2025-02-08 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:38:06 [end_date_ymd] => 2025-02-08 20:38:06 [RateCDR] => 1 ) [2025-02-08 20:38: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-02-08 17:38:06' and `end` < '2025-02-08 20:38: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-02-08 20:38:19] Production.INFO: count ==1622 [2025-02-08 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:38:06 - End Time 2025-02-08 20:38:06 [2025-02-08 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432210', 'tblTempUsageDetail_20' ) start [2025-02-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432210', 'tblTempUsageDetail_20' ) end [2025-02-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432210', 'tblTempVendorCDR_20' ) start [2025-02-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432210', 'tblTempVendorCDR_20' ) end [2025-02-08 20:38:19] Production.INFO: ProcessCDR(1,14432210,1,1,2) [2025-02-08 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432210', 'tblTempUsageDetail_20' ) start [2025-02-08 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432210', 'tblTempUsageDetail_20' ) end [2025-02-08 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:38:22] Production.INFO: ==10639== Releasing lock... [2025-02-08 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:39:05 [end_date_ymd] => 2025-02-08 20:39:05 [RateCDR] => 1 ) [2025-02-08 20:39: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` >= '2025-02-08 17:39:05' and `end` < '2025-02-08 20:39: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 ,'') [2025-02-08 20:39:18] Production.INFO: count ==1617 [2025-02-08 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:39:05 - End Time 2025-02-08 20:39:05 [2025-02-08 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432215', 'tblTempUsageDetail_20' ) start [2025-02-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432215', 'tblTempUsageDetail_20' ) end [2025-02-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432215', 'tblTempVendorCDR_20' ) start [2025-02-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432215', 'tblTempVendorCDR_20' ) end [2025-02-08 20:39:18] Production.INFO: ProcessCDR(1,14432215,1,1,2) [2025-02-08 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432215', 'tblTempUsageDetail_20' ) start [2025-02-08 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432215', 'tblTempUsageDetail_20' ) end [2025-02-08 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:39:22] Production.INFO: ==10709== Releasing lock... [2025-02-08 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:39:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:40:06 [end_date_ymd] => 2025-02-08 20:40:06 [RateCDR] => 1 ) [2025-02-08 20:40: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-02-08 17:40:06' and `end` < '2025-02-08 20:40: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-02-08 20:40:20] Production.INFO: count ==1615 [2025-02-08 20:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:40:06 - End Time 2025-02-08 20:40:06 [2025-02-08 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432221', 'tblTempUsageDetail_20' ) start [2025-02-08 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432221', 'tblTempUsageDetail_20' ) end [2025-02-08 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432221', 'tblTempVendorCDR_20' ) start [2025-02-08 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432221', 'tblTempVendorCDR_20' ) end [2025-02-08 20:40:20] Production.INFO: ProcessCDR(1,14432221,1,1,2) [2025-02-08 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432221', 'tblTempUsageDetail_20' ) start [2025-02-08 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432221', 'tblTempUsageDetail_20' ) end [2025-02-08 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:40:24] Production.INFO: ==10794== Releasing lock... [2025-02-08 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:40:24] Production.INFO: 40 MB #Memory Used# [2025-02-08 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:41:05 [end_date_ymd] => 2025-02-08 20:41:05 [RateCDR] => 1 ) [2025-02-08 20:41: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` >= '2025-02-08 17:41:05' and `end` < '2025-02-08 20:41: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 ,'') [2025-02-08 20:41:19] Production.INFO: count ==1586 [2025-02-08 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:41:05 - End Time 2025-02-08 20:41:05 [2025-02-08 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432226', 'tblTempUsageDetail_20' ) start [2025-02-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432226', 'tblTempUsageDetail_20' ) end [2025-02-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432226', 'tblTempVendorCDR_20' ) start [2025-02-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432226', 'tblTempVendorCDR_20' ) end [2025-02-08 20:41:19] Production.INFO: ProcessCDR(1,14432226,1,1,2) [2025-02-08 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432226', 'tblTempUsageDetail_20' ) start [2025-02-08 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432226', 'tblTempUsageDetail_20' ) end [2025-02-08 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:41:24] Production.INFO: ==10869== Releasing lock... [2025-02-08 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:41:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:42:05 [end_date_ymd] => 2025-02-08 20:42:05 [RateCDR] => 1 ) [2025-02-08 20:42: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` >= '2025-02-08 17:42:05' and `end` < '2025-02-08 20:42: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 ,'') [2025-02-08 20:42:20] Production.INFO: count ==1582 [2025-02-08 20:42:21] Production.ERROR: pbx CDR StartTime 2025-02-08 17:42:05 - End Time 2025-02-08 20:42:05 [2025-02-08 20:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432231', 'tblTempUsageDetail_20' ) start [2025-02-08 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432231', 'tblTempUsageDetail_20' ) end [2025-02-08 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432231', 'tblTempVendorCDR_20' ) start [2025-02-08 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432231', 'tblTempVendorCDR_20' ) end [2025-02-08 20:42:21] Production.INFO: ProcessCDR(1,14432231,1,1,2) [2025-02-08 20:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432231', 'tblTempUsageDetail_20' ) start [2025-02-08 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432231', 'tblTempUsageDetail_20' ) end [2025-02-08 20:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:42:26] Production.INFO: ==10945== Releasing lock... [2025-02-08 20:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:42:26] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:43:05 [end_date_ymd] => 2025-02-08 20:43:05 [RateCDR] => 1 ) [2025-02-08 20:43: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` >= '2025-02-08 17:43:05' and `end` < '2025-02-08 20:43: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 ,'') [2025-02-08 20:43:19] Production.INFO: count ==1583 [2025-02-08 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:43:05 - End Time 2025-02-08 20:43:05 [2025-02-08 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432236', 'tblTempUsageDetail_20' ) start [2025-02-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432236', 'tblTempUsageDetail_20' ) end [2025-02-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432236', 'tblTempVendorCDR_20' ) start [2025-02-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432236', 'tblTempVendorCDR_20' ) end [2025-02-08 20:43:19] Production.INFO: ProcessCDR(1,14432236,1,1,2) [2025-02-08 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432236', 'tblTempUsageDetail_20' ) start [2025-02-08 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432236', 'tblTempUsageDetail_20' ) end [2025-02-08 20:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:43:25] Production.INFO: ==11020== Releasing lock... [2025-02-08 20:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:43:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:44:05 [end_date_ymd] => 2025-02-08 20:44:05 [RateCDR] => 1 ) [2025-02-08 20:44: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` >= '2025-02-08 17:44:05' and `end` < '2025-02-08 20:44: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 ,'') [2025-02-08 20:44:18] Production.INFO: count ==1584 [2025-02-08 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:44:05 - End Time 2025-02-08 20:44:05 [2025-02-08 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432241', 'tblTempUsageDetail_20' ) start [2025-02-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432241', 'tblTempUsageDetail_20' ) end [2025-02-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432241', 'tblTempVendorCDR_20' ) start [2025-02-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432241', 'tblTempVendorCDR_20' ) end [2025-02-08 20:44:19] Production.INFO: ProcessCDR(1,14432241,1,1,2) [2025-02-08 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432241', 'tblTempUsageDetail_20' ) start [2025-02-08 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432241', 'tblTempUsageDetail_20' ) end [2025-02-08 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:44:24] Production.INFO: ==11132== Releasing lock... [2025-02-08 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:44:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:45:05 [end_date_ymd] => 2025-02-08 20:45:05 [RateCDR] => 1 ) [2025-02-08 20:45: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` >= '2025-02-08 17:45:05' and `end` < '2025-02-08 20:45: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 ,'') [2025-02-08 20:45:18] Production.INFO: count ==1584 [2025-02-08 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:45:05 - End Time 2025-02-08 20:45:05 [2025-02-08 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432246', 'tblTempUsageDetail_20' ) start [2025-02-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432246', 'tblTempUsageDetail_20' ) end [2025-02-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432246', 'tblTempVendorCDR_20' ) start [2025-02-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432246', 'tblTempVendorCDR_20' ) end [2025-02-08 20:45:18] Production.INFO: ProcessCDR(1,14432246,1,1,2) [2025-02-08 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432246', 'tblTempUsageDetail_20' ) start [2025-02-08 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432246', 'tblTempUsageDetail_20' ) end [2025-02-08 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:45:22] Production.INFO: ==11208== Releasing lock... [2025-02-08 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:45:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:46:05 [end_date_ymd] => 2025-02-08 20:46:05 [RateCDR] => 1 ) [2025-02-08 20:46: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` >= '2025-02-08 17:46:05' and `end` < '2025-02-08 20:46: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 ,'') [2025-02-08 20:46:18] Production.INFO: count ==1585 [2025-02-08 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:46:05 - End Time 2025-02-08 20:46:05 [2025-02-08 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432251', 'tblTempUsageDetail_20' ) start [2025-02-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432251', 'tblTempUsageDetail_20' ) end [2025-02-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432251', 'tblTempVendorCDR_20' ) start [2025-02-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432251', 'tblTempVendorCDR_20' ) end [2025-02-08 20:46:19] Production.INFO: ProcessCDR(1,14432251,1,1,2) [2025-02-08 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432251', 'tblTempUsageDetail_20' ) start [2025-02-08 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432251', 'tblTempUsageDetail_20' ) end [2025-02-08 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:46:22] Production.INFO: ==11285== Releasing lock... [2025-02-08 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:46:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:47:06 [end_date_ymd] => 2025-02-08 20:47:06 [RateCDR] => 1 ) [2025-02-08 20:47: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-02-08 17:47:06' and `end` < '2025-02-08 20:47: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-02-08 20:47:19] Production.INFO: count ==1581 [2025-02-08 20:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:47:06 - End Time 2025-02-08 20:47:06 [2025-02-08 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432256', 'tblTempUsageDetail_20' ) start [2025-02-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432256', 'tblTempUsageDetail_20' ) end [2025-02-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432256', 'tblTempVendorCDR_20' ) start [2025-02-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432256', 'tblTempVendorCDR_20' ) end [2025-02-08 20:47:19] Production.INFO: ProcessCDR(1,14432256,1,1,2) [2025-02-08 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432256', 'tblTempUsageDetail_20' ) start [2025-02-08 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432256', 'tblTempUsageDetail_20' ) end [2025-02-08 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:47:24] Production.INFO: ==11362== Releasing lock... [2025-02-08 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:47:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:48:05 [end_date_ymd] => 2025-02-08 20:48:05 [RateCDR] => 1 ) [2025-02-08 20:48: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` >= '2025-02-08 17:48:05' and `end` < '2025-02-08 20:48: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 ,'') [2025-02-08 20:48:18] Production.INFO: count ==1582 [2025-02-08 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:48:05 - End Time 2025-02-08 20:48:05 [2025-02-08 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432261', 'tblTempUsageDetail_20' ) start [2025-02-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432261', 'tblTempUsageDetail_20' ) end [2025-02-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432261', 'tblTempVendorCDR_20' ) start [2025-02-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432261', 'tblTempVendorCDR_20' ) end [2025-02-08 20:48:19] Production.INFO: ProcessCDR(1,14432261,1,1,2) [2025-02-08 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432261', 'tblTempUsageDetail_20' ) start [2025-02-08 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432261', 'tblTempUsageDetail_20' ) end [2025-02-08 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:48:24] Production.INFO: ==11435== Releasing lock... [2025-02-08 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:48:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:49:06 [end_date_ymd] => 2025-02-08 20:49:06 [RateCDR] => 1 ) [2025-02-08 20:49: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-02-08 17:49:06' and `end` < '2025-02-08 20:49: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-02-08 20:49:19] Production.INFO: count ==1578 [2025-02-08 20:49:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:49:06 - End Time 2025-02-08 20:49:06 [2025-02-08 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432266', 'tblTempUsageDetail_20' ) start [2025-02-08 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432266', 'tblTempUsageDetail_20' ) end [2025-02-08 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432266', 'tblTempVendorCDR_20' ) start [2025-02-08 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432266', 'tblTempVendorCDR_20' ) end [2025-02-08 20:49:20] Production.INFO: ProcessCDR(1,14432266,1,1,2) [2025-02-08 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432266', 'tblTempUsageDetail_20' ) start [2025-02-08 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432266', 'tblTempUsageDetail_20' ) end [2025-02-08 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:49:23] Production.INFO: ==11510== Releasing lock... [2025-02-08 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:49:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:50:06 [end_date_ymd] => 2025-02-08 20:50:06 [RateCDR] => 1 ) [2025-02-08 20:50: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-02-08 17:50:06' and `end` < '2025-02-08 20:50: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-02-08 20:50:21] Production.INFO: count ==1577 [2025-02-08 20:50:21] Production.ERROR: pbx CDR StartTime 2025-02-08 17:50:06 - End Time 2025-02-08 20:50:06 [2025-02-08 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432272', 'tblTempUsageDetail_20' ) start [2025-02-08 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432272', 'tblTempUsageDetail_20' ) end [2025-02-08 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432272', 'tblTempVendorCDR_20' ) start [2025-02-08 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432272', 'tblTempVendorCDR_20' ) end [2025-02-08 20:50:21] Production.INFO: ProcessCDR(1,14432272,1,1,2) [2025-02-08 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432272', 'tblTempUsageDetail_20' ) start [2025-02-08 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432272', 'tblTempUsageDetail_20' ) end [2025-02-08 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:50:24] Production.INFO: ==11584== Releasing lock... [2025-02-08 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:50:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:51:05 [end_date_ymd] => 2025-02-08 20:51:05 [RateCDR] => 1 ) [2025-02-08 20:51: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` >= '2025-02-08 17:51:05' and `end` < '2025-02-08 20:51: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 ,'') [2025-02-08 20:51:18] Production.INFO: count ==1539 [2025-02-08 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:51:05 - End Time 2025-02-08 20:51:05 [2025-02-08 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432277', 'tblTempUsageDetail_20' ) start [2025-02-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432277', 'tblTempUsageDetail_20' ) end [2025-02-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432277', 'tblTempVendorCDR_20' ) start [2025-02-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432277', 'tblTempVendorCDR_20' ) end [2025-02-08 20:51:19] Production.INFO: ProcessCDR(1,14432277,1,1,2) [2025-02-08 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432277', 'tblTempUsageDetail_20' ) start [2025-02-08 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432277', 'tblTempUsageDetail_20' ) end [2025-02-08 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:51:22] Production.INFO: ==11661== Releasing lock... [2025-02-08 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:52:05 [end_date_ymd] => 2025-02-08 20:52:05 [RateCDR] => 1 ) [2025-02-08 20:52: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` >= '2025-02-08 17:52:05' and `end` < '2025-02-08 20:52: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 ,'') [2025-02-08 20:52:18] Production.INFO: count ==1534 [2025-02-08 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:52:05 - End Time 2025-02-08 20:52:05 [2025-02-08 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432282', 'tblTempUsageDetail_20' ) start [2025-02-08 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432282', 'tblTempUsageDetail_20' ) end [2025-02-08 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432282', 'tblTempVendorCDR_20' ) start [2025-02-08 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432282', 'tblTempVendorCDR_20' ) end [2025-02-08 20:52:18] Production.INFO: ProcessCDR(1,14432282,1,1,2) [2025-02-08 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432282', 'tblTempUsageDetail_20' ) start [2025-02-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432282', 'tblTempUsageDetail_20' ) end [2025-02-08 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:52:22] Production.INFO: ==11736== Releasing lock... [2025-02-08 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:52:22] Production.INFO: 39 MB #Memory Used# [2025-02-08 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:53:05 [end_date_ymd] => 2025-02-08 20:53:05 [RateCDR] => 1 ) [2025-02-08 20:53: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` >= '2025-02-08 17:53:05' and `end` < '2025-02-08 20:53: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 ,'') [2025-02-08 20:53:18] Production.INFO: count ==1534 [2025-02-08 20:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:53:05 - End Time 2025-02-08 20:53:05 [2025-02-08 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432283', 'tblTempUsageDetail_20' ) start [2025-02-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432283', 'tblTempUsageDetail_20' ) end [2025-02-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432283', 'tblTempVendorCDR_20' ) start [2025-02-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432283', 'tblTempVendorCDR_20' ) end [2025-02-08 20:53:18] Production.INFO: ProcessCDR(1,14432283,1,1,2) [2025-02-08 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432283', 'tblTempUsageDetail_20' ) start [2025-02-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432283', 'tblTempUsageDetail_20' ) end [2025-02-08 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:53:22] Production.INFO: ==11816== Releasing lock... [2025-02-08 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:53:22] Production.INFO: 39 MB #Memory Used# [2025-02-08 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:54:05 [end_date_ymd] => 2025-02-08 20:54:05 [RateCDR] => 1 ) [2025-02-08 20:54: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` >= '2025-02-08 17:54:05' and `end` < '2025-02-08 20:54: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 ,'') [2025-02-08 20:54:18] Production.INFO: count ==1516 [2025-02-08 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:54:05 - End Time 2025-02-08 20:54:05 [2025-02-08 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432292', 'tblTempUsageDetail_20' ) start [2025-02-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432292', 'tblTempUsageDetail_20' ) end [2025-02-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432292', 'tblTempVendorCDR_20' ) start [2025-02-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432292', 'tblTempVendorCDR_20' ) end [2025-02-08 20:54:19] Production.INFO: ProcessCDR(1,14432292,1,1,2) [2025-02-08 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432292', 'tblTempUsageDetail_20' ) start [2025-02-08 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432292', 'tblTempUsageDetail_20' ) end [2025-02-08 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:54:22] Production.INFO: ==11889== Releasing lock... [2025-02-08 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:54:22] Production.INFO: 39 MB #Memory Used# [2025-02-08 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:55:06 [end_date_ymd] => 2025-02-08 20:55:06 [RateCDR] => 1 ) [2025-02-08 20:55: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-02-08 17:55:06' and `end` < '2025-02-08 20:55: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-02-08 20:55:19] Production.INFO: count ==1515 [2025-02-08 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:55:06 - End Time 2025-02-08 20:55:06 [2025-02-08 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432297', 'tblTempUsageDetail_20' ) start [2025-02-08 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432297', 'tblTempUsageDetail_20' ) end [2025-02-08 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432297', 'tblTempVendorCDR_20' ) start [2025-02-08 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432297', 'tblTempVendorCDR_20' ) end [2025-02-08 20:55:19] Production.INFO: ProcessCDR(1,14432297,1,1,2) [2025-02-08 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432297', 'tblTempUsageDetail_20' ) start [2025-02-08 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432297', 'tblTempUsageDetail_20' ) end [2025-02-08 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:55:23] Production.INFO: ==11963== Releasing lock... [2025-02-08 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:55:23] Production.INFO: 39 MB #Memory Used# [2025-02-08 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:56:05 [end_date_ymd] => 2025-02-08 20:56:05 [RateCDR] => 1 ) [2025-02-08 20:56: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` >= '2025-02-08 17:56:05' and `end` < '2025-02-08 20:56: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 ,'') [2025-02-08 20:56:18] Production.INFO: count ==1518 [2025-02-08 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:56:05 - End Time 2025-02-08 20:56:05 [2025-02-08 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432302', 'tblTempUsageDetail_20' ) start [2025-02-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432302', 'tblTempUsageDetail_20' ) end [2025-02-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432302', 'tblTempVendorCDR_20' ) start [2025-02-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432302', 'tblTempVendorCDR_20' ) end [2025-02-08 20:56:18] Production.INFO: ProcessCDR(1,14432302,1,1,2) [2025-02-08 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432302', 'tblTempUsageDetail_20' ) start [2025-02-08 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432302', 'tblTempUsageDetail_20' ) end [2025-02-08 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:56:22] Production.INFO: ==12037== Releasing lock... [2025-02-08 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:56:22] Production.INFO: 39 MB #Memory Used# [2025-02-08 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:57:05 [end_date_ymd] => 2025-02-08 20:57:05 [RateCDR] => 1 ) [2025-02-08 20:57: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` >= '2025-02-08 17:57:05' and `end` < '2025-02-08 20:57: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 ,'') [2025-02-08 20:57:18] Production.INFO: count ==1517 [2025-02-08 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 17:57:05 - End Time 2025-02-08 20:57:05 [2025-02-08 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432307', 'tblTempUsageDetail_20' ) start [2025-02-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432307', 'tblTempUsageDetail_20' ) end [2025-02-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432307', 'tblTempVendorCDR_20' ) start [2025-02-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432307', 'tblTempVendorCDR_20' ) end [2025-02-08 20:57:19] Production.INFO: ProcessCDR(1,14432307,1,1,2) [2025-02-08 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432307', 'tblTempUsageDetail_20' ) start [2025-02-08 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432307', 'tblTempUsageDetail_20' ) end [2025-02-08 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:57:22] Production.INFO: ==12114== Releasing lock... [2025-02-08 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:57:22] Production.INFO: 39 MB #Memory Used# [2025-02-08 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:58:05 [end_date_ymd] => 2025-02-08 20:58:05 [RateCDR] => 1 ) [2025-02-08 20:58: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` >= '2025-02-08 17:58:05' and `end` < '2025-02-08 20:58: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 ,'') [2025-02-08 20:58:18] Production.INFO: count ==1542 [2025-02-08 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 17:58:05 - End Time 2025-02-08 20:58:05 [2025-02-08 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432312', 'tblTempUsageDetail_20' ) start [2025-02-08 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432312', 'tblTempUsageDetail_20' ) end [2025-02-08 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432312', 'tblTempVendorCDR_20' ) start [2025-02-08 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432312', 'tblTempVendorCDR_20' ) end [2025-02-08 20:58:18] Production.INFO: ProcessCDR(1,14432312,1,1,2) [2025-02-08 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432312', 'tblTempUsageDetail_20' ) start [2025-02-08 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432312', 'tblTempUsageDetail_20' ) end [2025-02-08 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:58:22] Production.INFO: ==12189== Releasing lock... [2025-02-08 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:58:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-08 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 17:59:05 [end_date_ymd] => 2025-02-08 20:59:05 [RateCDR] => 1 ) [2025-02-08 20:59: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` >= '2025-02-08 17:59:05' and `end` < '2025-02-08 20:59: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 ,'') [2025-02-08 20:59:19] Production.INFO: count ==1581 [2025-02-08 20:59:20] Production.ERROR: pbx CDR StartTime 2025-02-08 17:59:05 - End Time 2025-02-08 20:59:05 [2025-02-08 20:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432317', 'tblTempUsageDetail_20' ) start [2025-02-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432317', 'tblTempUsageDetail_20' ) end [2025-02-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432317', 'tblTempVendorCDR_20' ) start [2025-02-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432317', 'tblTempVendorCDR_20' ) end [2025-02-08 20:59:20] Production.INFO: ProcessCDR(1,14432317,1,1,2) [2025-02-08 20:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432317', 'tblTempUsageDetail_20' ) start [2025-02-08 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432317', 'tblTempUsageDetail_20' ) end [2025-02-08 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 20:59:23] Production.INFO: ==12263== Releasing lock... [2025-02-08 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 20:59:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:00:06 [end_date_ymd] => 2025-02-08 21:00:06 [RateCDR] => 1 ) [2025-02-08 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 18:00:06' and `end` < '2025-02-08 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 21:00:20] Production.INFO: count ==1629 [2025-02-08 21:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:00:06 - End Time 2025-02-08 21:00:06 [2025-02-08 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432323', 'tblTempUsageDetail_20' ) start [2025-02-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432323', 'tblTempUsageDetail_20' ) end [2025-02-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432323', 'tblTempVendorCDR_20' ) start [2025-02-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432323', 'tblTempVendorCDR_20' ) end [2025-02-08 21:00:20] Production.INFO: ProcessCDR(1,14432323,1,1,2) [2025-02-08 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432323', 'tblTempUsageDetail_20' ) start [2025-02-08 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432323', 'tblTempUsageDetail_20' ) end [2025-02-08 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:00:25] Production.INFO: ==12377== Releasing lock... [2025-02-08 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:00:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:01:06 [end_date_ymd] => 2025-02-08 21:01:06 [RateCDR] => 1 ) [2025-02-08 21: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` >= '2025-02-08 18:01:06' and `end` < '2025-02-08 21: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 ,'') [2025-02-08 21:01:19] Production.INFO: count ==1704 [2025-02-08 21:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:01:06 - End Time 2025-02-08 21:01:06 [2025-02-08 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432328', 'tblTempUsageDetail_20' ) start [2025-02-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432328', 'tblTempUsageDetail_20' ) end [2025-02-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432328', 'tblTempVendorCDR_20' ) start [2025-02-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432328', 'tblTempVendorCDR_20' ) end [2025-02-08 21:01:19] Production.INFO: ProcessCDR(1,14432328,1,1,2) [2025-02-08 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432328', 'tblTempUsageDetail_20' ) start [2025-02-08 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432328', 'tblTempUsageDetail_20' ) end [2025-02-08 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:01:23] Production.INFO: ==12468== Releasing lock... [2025-02-08 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:01:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:02:05 [end_date_ymd] => 2025-02-08 21:02:05 [RateCDR] => 1 ) [2025-02-08 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 18:02:05' and `end` < '2025-02-08 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 21:02:20] Production.INFO: count ==1710 [2025-02-08 21:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:02:05 - End Time 2025-02-08 21:02:05 [2025-02-08 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432333', 'tblTempUsageDetail_20' ) start [2025-02-08 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432333', 'tblTempUsageDetail_20' ) end [2025-02-08 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432333', 'tblTempVendorCDR_20' ) start [2025-02-08 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432333', 'tblTempVendorCDR_20' ) end [2025-02-08 21:02:20] Production.INFO: ProcessCDR(1,14432333,1,1,2) [2025-02-08 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432333', 'tblTempUsageDetail_20' ) start [2025-02-08 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432333', 'tblTempUsageDetail_20' ) end [2025-02-08 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:02:24] Production.INFO: ==12541== Releasing lock... [2025-02-08 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:02:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:03:05 [end_date_ymd] => 2025-02-08 21:03:05 [RateCDR] => 1 ) [2025-02-08 21:03: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` >= '2025-02-08 18:03:05' and `end` < '2025-02-08 21:03: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 ,'') [2025-02-08 21:03:18] Production.INFO: count ==1712 [2025-02-08 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:03:05 - End Time 2025-02-08 21:03:05 [2025-02-08 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432338', 'tblTempUsageDetail_20' ) start [2025-02-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432338', 'tblTempUsageDetail_20' ) end [2025-02-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432338', 'tblTempVendorCDR_20' ) start [2025-02-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432338', 'tblTempVendorCDR_20' ) end [2025-02-08 21:03:18] Production.INFO: ProcessCDR(1,14432338,1,1,2) [2025-02-08 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432338', 'tblTempUsageDetail_20' ) start [2025-02-08 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432338', 'tblTempUsageDetail_20' ) end [2025-02-08 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:03:23] Production.INFO: ==12623== Releasing lock... [2025-02-08 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:04:05 [end_date_ymd] => 2025-02-08 21:04:05 [RateCDR] => 1 ) [2025-02-08 21:04: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` >= '2025-02-08 18:04:05' and `end` < '2025-02-08 21:04: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 ,'') [2025-02-08 21:04:18] Production.INFO: count ==1719 [2025-02-08 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:04:05 - End Time 2025-02-08 21:04:05 [2025-02-08 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432343', 'tblTempUsageDetail_20' ) start [2025-02-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432343', 'tblTempUsageDetail_20' ) end [2025-02-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432343', 'tblTempVendorCDR_20' ) start [2025-02-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432343', 'tblTempVendorCDR_20' ) end [2025-02-08 21:04:18] Production.INFO: ProcessCDR(1,14432343,1,1,2) [2025-02-08 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432343', 'tblTempUsageDetail_20' ) start [2025-02-08 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432343', 'tblTempUsageDetail_20' ) end [2025-02-08 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:04:22] Production.INFO: ==12701== Releasing lock... [2025-02-08 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:04:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:05:05 [end_date_ymd] => 2025-02-08 21:05:05 [RateCDR] => 1 ) [2025-02-08 21:05: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` >= '2025-02-08 18:05:05' and `end` < '2025-02-08 21:05: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 ,'') [2025-02-08 21:05:18] Production.INFO: count ==1740 [2025-02-08 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:05:05 - End Time 2025-02-08 21:05:05 [2025-02-08 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432348', 'tblTempUsageDetail_20' ) start [2025-02-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432348', 'tblTempUsageDetail_20' ) end [2025-02-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432348', 'tblTempVendorCDR_20' ) start [2025-02-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432348', 'tblTempVendorCDR_20' ) end [2025-02-08 21:05:19] Production.INFO: ProcessCDR(1,14432348,1,1,2) [2025-02-08 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432348', 'tblTempUsageDetail_20' ) start [2025-02-08 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432348', 'tblTempUsageDetail_20' ) end [2025-02-08 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:05:23] Production.INFO: ==12778== Releasing lock... [2025-02-08 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:05:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:06:06 [end_date_ymd] => 2025-02-08 21:06:06 [RateCDR] => 1 ) [2025-02-08 21:06: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-02-08 18:06:06' and `end` < '2025-02-08 21:06: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-02-08 21:06:19] Production.INFO: count ==1742 [2025-02-08 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:06:06 - End Time 2025-02-08 21:06:06 [2025-02-08 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432353', 'tblTempUsageDetail_20' ) start [2025-02-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432353', 'tblTempUsageDetail_20' ) end [2025-02-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432353', 'tblTempVendorCDR_20' ) start [2025-02-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432353', 'tblTempVendorCDR_20' ) end [2025-02-08 21:06:19] Production.INFO: ProcessCDR(1,14432353,1,1,2) [2025-02-08 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432353', 'tblTempUsageDetail_20' ) start [2025-02-08 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432353', 'tblTempUsageDetail_20' ) end [2025-02-08 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:06:23] Production.INFO: ==12860== Releasing lock... [2025-02-08 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:06:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:07:05 [end_date_ymd] => 2025-02-08 21:07:05 [RateCDR] => 1 ) [2025-02-08 21:07: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` >= '2025-02-08 18:07:05' and `end` < '2025-02-08 21:07: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 ,'') [2025-02-08 21:07:18] Production.INFO: count ==1737 [2025-02-08 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:07:05 - End Time 2025-02-08 21:07:05 [2025-02-08 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432358', 'tblTempUsageDetail_20' ) start [2025-02-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432358', 'tblTempUsageDetail_20' ) end [2025-02-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432358', 'tblTempVendorCDR_20' ) start [2025-02-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432358', 'tblTempVendorCDR_20' ) end [2025-02-08 21:07:19] Production.INFO: ProcessCDR(1,14432358,1,1,2) [2025-02-08 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432358', 'tblTempUsageDetail_20' ) start [2025-02-08 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432358', 'tblTempUsageDetail_20' ) end [2025-02-08 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:07:22] Production.INFO: ==12939== Releasing lock... [2025-02-08 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:07:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:08:06 [end_date_ymd] => 2025-02-08 21:08:06 [RateCDR] => 1 ) [2025-02-08 21:08: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-02-08 18:08:06' and `end` < '2025-02-08 21:08: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-02-08 21:08:19] Production.INFO: count ==1755 [2025-02-08 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:08:06 - End Time 2025-02-08 21:08:06 [2025-02-08 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432362', 'tblTempUsageDetail_20' ) start [2025-02-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432362', 'tblTempUsageDetail_20' ) end [2025-02-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432362', 'tblTempVendorCDR_20' ) start [2025-02-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432362', 'tblTempVendorCDR_20' ) end [2025-02-08 21:08:19] Production.INFO: ProcessCDR(1,14432362,1,1,2) [2025-02-08 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432362', 'tblTempUsageDetail_20' ) start [2025-02-08 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432362', 'tblTempUsageDetail_20' ) end [2025-02-08 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:08:23] Production.INFO: ==13017== Releasing lock... [2025-02-08 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:08:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:09:05 [end_date_ymd] => 2025-02-08 21:09:05 [RateCDR] => 1 ) [2025-02-08 21:09: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` >= '2025-02-08 18:09:05' and `end` < '2025-02-08 21:09: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 ,'') [2025-02-08 21:09:18] Production.INFO: count ==1759 [2025-02-08 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:09:05 - End Time 2025-02-08 21:09:05 [2025-02-08 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432368', 'tblTempUsageDetail_20' ) start [2025-02-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432368', 'tblTempUsageDetail_20' ) end [2025-02-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432368', 'tblTempVendorCDR_20' ) start [2025-02-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432368', 'tblTempVendorCDR_20' ) end [2025-02-08 21:09:19] Production.INFO: ProcessCDR(1,14432368,1,1,2) [2025-02-08 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432368', 'tblTempUsageDetail_20' ) start [2025-02-08 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432368', 'tblTempUsageDetail_20' ) end [2025-02-08 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:09:23] Production.INFO: ==13094== Releasing lock... [2025-02-08 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:09:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:10:06 [end_date_ymd] => 2025-02-08 21:10:06 [RateCDR] => 1 ) [2025-02-08 21:10: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-02-08 18:10:06' and `end` < '2025-02-08 21:10: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-02-08 21:10:20] Production.INFO: count ==1763 [2025-02-08 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:10:06 - End Time 2025-02-08 21:10:06 [2025-02-08 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432374', 'tblTempUsageDetail_20' ) start [2025-02-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432374', 'tblTempUsageDetail_20' ) end [2025-02-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432374', 'tblTempVendorCDR_20' ) start [2025-02-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432374', 'tblTempVendorCDR_20' ) end [2025-02-08 21:10:20] Production.INFO: ProcessCDR(1,14432374,1,1,2) [2025-02-08 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432374', 'tblTempUsageDetail_20' ) start [2025-02-08 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432374', 'tblTempUsageDetail_20' ) end [2025-02-08 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:10:23] Production.INFO: ==13176== Releasing lock... [2025-02-08 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:10:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:11:05 [end_date_ymd] => 2025-02-08 21:11:05 [RateCDR] => 1 ) [2025-02-08 21:11: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` >= '2025-02-08 18:11:05' and `end` < '2025-02-08 21:11: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 ,'') [2025-02-08 21:11:18] Production.INFO: count ==1772 [2025-02-08 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:11:05 - End Time 2025-02-08 21:11:05 [2025-02-08 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432379', 'tblTempUsageDetail_20' ) start [2025-02-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432379', 'tblTempUsageDetail_20' ) end [2025-02-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432379', 'tblTempVendorCDR_20' ) start [2025-02-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432379', 'tblTempVendorCDR_20' ) end [2025-02-08 21:11:19] Production.INFO: ProcessCDR(1,14432379,1,1,2) [2025-02-08 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432379', 'tblTempUsageDetail_20' ) start [2025-02-08 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432379', 'tblTempUsageDetail_20' ) end [2025-02-08 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:11:24] Production.INFO: ==13254== Releasing lock... [2025-02-08 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:11:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:12:05 [end_date_ymd] => 2025-02-08 21:12:05 [RateCDR] => 1 ) [2025-02-08 21:12: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` >= '2025-02-08 18:12:05' and `end` < '2025-02-08 21:12: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 ,'') [2025-02-08 21:12:18] Production.INFO: count ==1772 [2025-02-08 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:12:05 - End Time 2025-02-08 21:12:05 [2025-02-08 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432384', 'tblTempUsageDetail_20' ) start [2025-02-08 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432384', 'tblTempUsageDetail_20' ) end [2025-02-08 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432384', 'tblTempVendorCDR_20' ) start [2025-02-08 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432384', 'tblTempVendorCDR_20' ) end [2025-02-08 21:12:19] Production.INFO: ProcessCDR(1,14432384,1,1,2) [2025-02-08 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432384', 'tblTempUsageDetail_20' ) start [2025-02-08 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432384', 'tblTempUsageDetail_20' ) end [2025-02-08 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:12:22] Production.INFO: ==13330== Releasing lock... [2025-02-08 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:12:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:13:05 [end_date_ymd] => 2025-02-08 21:13:05 [RateCDR] => 1 ) [2025-02-08 21:13: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` >= '2025-02-08 18:13:05' and `end` < '2025-02-08 21:13: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 ,'') [2025-02-08 21:13:18] Production.INFO: count ==1803 [2025-02-08 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:13:05 - End Time 2025-02-08 21:13:05 [2025-02-08 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432389', 'tblTempUsageDetail_20' ) start [2025-02-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432389', 'tblTempUsageDetail_20' ) end [2025-02-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432389', 'tblTempVendorCDR_20' ) start [2025-02-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432389', 'tblTempVendorCDR_20' ) end [2025-02-08 21:13:18] Production.INFO: ProcessCDR(1,14432389,1,1,2) [2025-02-08 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432389', 'tblTempUsageDetail_20' ) start [2025-02-08 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432389', 'tblTempUsageDetail_20' ) end [2025-02-08 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:13:22] Production.INFO: ==13406== Releasing lock... [2025-02-08 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:14:06 [end_date_ymd] => 2025-02-08 21:14:06 [RateCDR] => 1 ) [2025-02-08 21:14: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-02-08 18:14:06' and `end` < '2025-02-08 21:14: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-02-08 21:14:20] Production.INFO: count ==1803 [2025-02-08 21:14:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:14:06 - End Time 2025-02-08 21:14:06 [2025-02-08 21:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432394', 'tblTempUsageDetail_20' ) start [2025-02-08 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432394', 'tblTempUsageDetail_20' ) end [2025-02-08 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432394', 'tblTempVendorCDR_20' ) start [2025-02-08 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432394', 'tblTempVendorCDR_20' ) end [2025-02-08 21:14:20] Production.INFO: ProcessCDR(1,14432394,1,1,2) [2025-02-08 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432394', 'tblTempUsageDetail_20' ) start [2025-02-08 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432394', 'tblTempUsageDetail_20' ) end [2025-02-08 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:14:24] Production.INFO: ==13483== Releasing lock... [2025-02-08 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:14:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:15:05 [end_date_ymd] => 2025-02-08 21:15:05 [RateCDR] => 1 ) [2025-02-08 21:15: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` >= '2025-02-08 18:15:05' and `end` < '2025-02-08 21:15: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 ,'') [2025-02-08 21:15:18] Production.INFO: count ==1807 [2025-02-08 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:15:05 - End Time 2025-02-08 21:15:05 [2025-02-08 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432399', 'tblTempUsageDetail_20' ) start [2025-02-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432399', 'tblTempUsageDetail_20' ) end [2025-02-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432399', 'tblTempVendorCDR_20' ) start [2025-02-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432399', 'tblTempVendorCDR_20' ) end [2025-02-08 21:15:19] Production.INFO: ProcessCDR(1,14432399,1,1,2) [2025-02-08 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432399', 'tblTempUsageDetail_20' ) start [2025-02-08 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432399', 'tblTempUsageDetail_20' ) end [2025-02-08 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:15:23] Production.INFO: ==13603== Releasing lock... [2025-02-08 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:15:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:16:06 [end_date_ymd] => 2025-02-08 21:16:06 [RateCDR] => 1 ) [2025-02-08 21:16: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-02-08 18:16:06' and `end` < '2025-02-08 21:16: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-02-08 21:16:19] Production.INFO: count ==1805 [2025-02-08 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:16:06 - End Time 2025-02-08 21:16:06 [2025-02-08 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432404', 'tblTempUsageDetail_20' ) start [2025-02-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432404', 'tblTempUsageDetail_20' ) end [2025-02-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432404', 'tblTempVendorCDR_20' ) start [2025-02-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432404', 'tblTempVendorCDR_20' ) end [2025-02-08 21:16:19] Production.INFO: ProcessCDR(1,14432404,1,1,2) [2025-02-08 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432404', 'tblTempUsageDetail_20' ) start [2025-02-08 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432404', 'tblTempUsageDetail_20' ) end [2025-02-08 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:16:23] Production.INFO: ==13677== Releasing lock... [2025-02-08 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:16:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:17:05 [end_date_ymd] => 2025-02-08 21:17:05 [RateCDR] => 1 ) [2025-02-08 21:17: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` >= '2025-02-08 18:17:05' and `end` < '2025-02-08 21:17: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 ,'') [2025-02-08 21:17:18] Production.INFO: count ==1801 [2025-02-08 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:17:05 - End Time 2025-02-08 21:17:05 [2025-02-08 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432408', 'tblTempUsageDetail_20' ) start [2025-02-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432408', 'tblTempUsageDetail_20' ) end [2025-02-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432408', 'tblTempVendorCDR_20' ) start [2025-02-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432408', 'tblTempVendorCDR_20' ) end [2025-02-08 21:17:18] Production.INFO: ProcessCDR(1,14432408,1,1,2) [2025-02-08 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432408', 'tblTempUsageDetail_20' ) start [2025-02-08 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432408', 'tblTempUsageDetail_20' ) end [2025-02-08 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:17:22] Production.INFO: ==13756== Releasing lock... [2025-02-08 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:17:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:18:06 [end_date_ymd] => 2025-02-08 21:18:06 [RateCDR] => 1 ) [2025-02-08 21:18: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-02-08 18:18:06' and `end` < '2025-02-08 21:18: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-02-08 21:18:19] Production.INFO: count ==1817 [2025-02-08 21:18:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:18:06 - End Time 2025-02-08 21:18:06 [2025-02-08 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432414', 'tblTempUsageDetail_20' ) start [2025-02-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432414', 'tblTempUsageDetail_20' ) end [2025-02-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432414', 'tblTempVendorCDR_20' ) start [2025-02-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432414', 'tblTempVendorCDR_20' ) end [2025-02-08 21:18:20] Production.INFO: ProcessCDR(1,14432414,1,1,2) [2025-02-08 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432414', 'tblTempUsageDetail_20' ) start [2025-02-08 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432414', 'tblTempUsageDetail_20' ) end [2025-02-08 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:18:23] Production.INFO: ==13830== Releasing lock... [2025-02-08 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:18:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:19:05 [end_date_ymd] => 2025-02-08 21:19:05 [RateCDR] => 1 ) [2025-02-08 21:19: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` >= '2025-02-08 18:19:05' and `end` < '2025-02-08 21:19: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 ,'') [2025-02-08 21:19:18] Production.INFO: count ==1816 [2025-02-08 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:19:05 - End Time 2025-02-08 21:19:05 [2025-02-08 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432419', 'tblTempUsageDetail_20' ) start [2025-02-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432419', 'tblTempUsageDetail_20' ) end [2025-02-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432419', 'tblTempVendorCDR_20' ) start [2025-02-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432419', 'tblTempVendorCDR_20' ) end [2025-02-08 21:19:19] Production.INFO: ProcessCDR(1,14432419,1,1,2) [2025-02-08 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432419', 'tblTempUsageDetail_20' ) start [2025-02-08 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432419', 'tblTempUsageDetail_20' ) end [2025-02-08 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:19:22] Production.INFO: ==13909== Releasing lock... [2025-02-08 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:19:22] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:20:06 [end_date_ymd] => 2025-02-08 21:20:06 [RateCDR] => 1 ) [2025-02-08 21:20: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-02-08 18:20:06' and `end` < '2025-02-08 21:20: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-02-08 21:20:19] Production.INFO: count ==1825 [2025-02-08 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:20:06 - End Time 2025-02-08 21:20:06 [2025-02-08 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432424', 'tblTempUsageDetail_20' ) start [2025-02-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432424', 'tblTempUsageDetail_20' ) end [2025-02-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432424', 'tblTempVendorCDR_20' ) start [2025-02-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432424', 'tblTempVendorCDR_20' ) end [2025-02-08 21:20:20] Production.INFO: ProcessCDR(1,14432424,1,1,2) [2025-02-08 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432424', 'tblTempUsageDetail_20' ) start [2025-02-08 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432424', 'tblTempUsageDetail_20' ) end [2025-02-08 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:20:24] Production.INFO: ==13988== Releasing lock... [2025-02-08 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:20:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:21:05 [end_date_ymd] => 2025-02-08 21:21:05 [RateCDR] => 1 ) [2025-02-08 21:21: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` >= '2025-02-08 18:21:05' and `end` < '2025-02-08 21:21: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 ,'') [2025-02-08 21:21:18] Production.INFO: count ==1814 [2025-02-08 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:21:05 - End Time 2025-02-08 21:21:05 [2025-02-08 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432430', 'tblTempUsageDetail_20' ) start [2025-02-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432430', 'tblTempUsageDetail_20' ) end [2025-02-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432430', 'tblTempVendorCDR_20' ) start [2025-02-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432430', 'tblTempVendorCDR_20' ) end [2025-02-08 21:21:18] Production.INFO: ProcessCDR(1,14432430,1,1,2) [2025-02-08 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432430', 'tblTempUsageDetail_20' ) start [2025-02-08 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432430', 'tblTempUsageDetail_20' ) end [2025-02-08 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:21:24] Production.INFO: ==14076== Releasing lock... [2025-02-08 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:22:05 [end_date_ymd] => 2025-02-08 21:22:05 [RateCDR] => 1 ) [2025-02-08 21:22: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` >= '2025-02-08 18:22:05' and `end` < '2025-02-08 21:22: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 ,'') [2025-02-08 21:22:18] Production.INFO: count ==1808 [2025-02-08 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:22:05 - End Time 2025-02-08 21:22:05 [2025-02-08 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432435', 'tblTempUsageDetail_20' ) start [2025-02-08 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432435', 'tblTempUsageDetail_20' ) end [2025-02-08 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432435', 'tblTempVendorCDR_20' ) start [2025-02-08 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432435', 'tblTempVendorCDR_20' ) end [2025-02-08 21:22:19] Production.INFO: ProcessCDR(1,14432435,1,1,2) [2025-02-08 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432435', 'tblTempUsageDetail_20' ) start [2025-02-08 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432435', 'tblTempUsageDetail_20' ) end [2025-02-08 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:22:24] Production.INFO: ==14154== Releasing lock... [2025-02-08 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:23:05 [end_date_ymd] => 2025-02-08 21:23:05 [RateCDR] => 1 ) [2025-02-08 21:23: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` >= '2025-02-08 18:23:05' and `end` < '2025-02-08 21:23: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 ,'') [2025-02-08 21:23:18] Production.INFO: count ==1805 [2025-02-08 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:23:05 - End Time 2025-02-08 21:23:05 [2025-02-08 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432440', 'tblTempUsageDetail_20' ) start [2025-02-08 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432440', 'tblTempUsageDetail_20' ) end [2025-02-08 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432440', 'tblTempVendorCDR_20' ) start [2025-02-08 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432440', 'tblTempVendorCDR_20' ) end [2025-02-08 21:23:19] Production.INFO: ProcessCDR(1,14432440,1,1,2) [2025-02-08 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432440', 'tblTempUsageDetail_20' ) start [2025-02-08 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432440', 'tblTempUsageDetail_20' ) end [2025-02-08 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:23:22] Production.INFO: ==14232== Releasing lock... [2025-02-08 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:24:06 [end_date_ymd] => 2025-02-08 21:24:06 [RateCDR] => 1 ) [2025-02-08 21:24: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-02-08 18:24:06' and `end` < '2025-02-08 21:24: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-02-08 21:24:21] Production.INFO: count ==1817 [2025-02-08 21:24:21] Production.ERROR: pbx CDR StartTime 2025-02-08 18:24:06 - End Time 2025-02-08 21:24:06 [2025-02-08 21:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432445', 'tblTempUsageDetail_20' ) start [2025-02-08 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432445', 'tblTempUsageDetail_20' ) end [2025-02-08 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432445', 'tblTempVendorCDR_20' ) start [2025-02-08 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432445', 'tblTempVendorCDR_20' ) end [2025-02-08 21:24:21] Production.INFO: ProcessCDR(1,14432445,1,1,2) [2025-02-08 21:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432445', 'tblTempUsageDetail_20' ) start [2025-02-08 21:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432445', 'tblTempUsageDetail_20' ) end [2025-02-08 21:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:24:26] Production.INFO: ==14309== Releasing lock... [2025-02-08 21:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:24:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:25:05 [end_date_ymd] => 2025-02-08 21:25:05 [RateCDR] => 1 ) [2025-02-08 21:25: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` >= '2025-02-08 18:25:05' and `end` < '2025-02-08 21:25: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 ,'') [2025-02-08 21:25:18] Production.INFO: count ==1816 [2025-02-08 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:25:05 - End Time 2025-02-08 21:25:05 [2025-02-08 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432450', 'tblTempUsageDetail_20' ) start [2025-02-08 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432450', 'tblTempUsageDetail_20' ) end [2025-02-08 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432450', 'tblTempVendorCDR_20' ) start [2025-02-08 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432450', 'tblTempVendorCDR_20' ) end [2025-02-08 21:25:19] Production.INFO: ProcessCDR(1,14432450,1,1,2) [2025-02-08 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432450', 'tblTempUsageDetail_20' ) start [2025-02-08 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432450', 'tblTempUsageDetail_20' ) end [2025-02-08 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:25:24] Production.INFO: ==14391== Releasing lock... [2025-02-08 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:25:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:26:06 [end_date_ymd] => 2025-02-08 21:26:06 [RateCDR] => 1 ) [2025-02-08 21:26: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-02-08 18:26:06' and `end` < '2025-02-08 21:26: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-02-08 21:26:19] Production.INFO: count ==1820 [2025-02-08 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:26:06 - End Time 2025-02-08 21:26:06 [2025-02-08 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432455', 'tblTempUsageDetail_20' ) start [2025-02-08 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432455', 'tblTempUsageDetail_20' ) end [2025-02-08 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432455', 'tblTempVendorCDR_20' ) start [2025-02-08 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432455', 'tblTempVendorCDR_20' ) end [2025-02-08 21:26:20] Production.INFO: ProcessCDR(1,14432455,1,1,2) [2025-02-08 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432455', 'tblTempUsageDetail_20' ) start [2025-02-08 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432455', 'tblTempUsageDetail_20' ) end [2025-02-08 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:26:23] Production.INFO: ==14481== Releasing lock... [2025-02-08 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:26:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:27:04 [end_date_ymd] => 2025-02-08 21:27:04 [RateCDR] => 1 ) [2025-02-08 21:27:04] 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-02-08 18:27:04' and `end` < '2025-02-08 21:27:04' 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-02-08 21:27:17] Production.INFO: count ==1830 [2025-02-08 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:27:04 - End Time 2025-02-08 21:27:04 [2025-02-08 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432460', 'tblTempUsageDetail_20' ) start [2025-02-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432460', 'tblTempUsageDetail_20' ) end [2025-02-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432460', 'tblTempVendorCDR_20' ) start [2025-02-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432460', 'tblTempVendorCDR_20' ) end [2025-02-08 21:27:18] Production.INFO: ProcessCDR(1,14432460,1,1,2) [2025-02-08 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432460', 'tblTempUsageDetail_20' ) start [2025-02-08 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432460', 'tblTempUsageDetail_20' ) end [2025-02-08 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:27:21] Production.INFO: ==14560== Releasing lock... [2025-02-08 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:27:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:28:05 [end_date_ymd] => 2025-02-08 21:28:05 [RateCDR] => 1 ) [2025-02-08 21:28: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` >= '2025-02-08 18:28:05' and `end` < '2025-02-08 21:28: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 ,'') [2025-02-08 21:28:20] Production.INFO: count ==1834 [2025-02-08 21:28:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:28:05 - End Time 2025-02-08 21:28:05 [2025-02-08 21:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432465', 'tblTempUsageDetail_20' ) start [2025-02-08 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432465', 'tblTempUsageDetail_20' ) end [2025-02-08 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432465', 'tblTempVendorCDR_20' ) start [2025-02-08 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432465', 'tblTempVendorCDR_20' ) end [2025-02-08 21:28:20] Production.INFO: ProcessCDR(1,14432465,1,1,2) [2025-02-08 21:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432465', 'tblTempUsageDetail_20' ) start [2025-02-08 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432465', 'tblTempUsageDetail_20' ) end [2025-02-08 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:28:24] Production.INFO: ==14644== Releasing lock... [2025-02-08 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:28:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:29:06 [end_date_ymd] => 2025-02-08 21:29:06 [RateCDR] => 1 ) [2025-02-08 21:29: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-02-08 18:29:06' and `end` < '2025-02-08 21:29: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-02-08 21:29:19] Production.INFO: count ==1838 [2025-02-08 21:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:29:06 - End Time 2025-02-08 21:29:06 [2025-02-08 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432470', 'tblTempUsageDetail_20' ) start [2025-02-08 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432470', 'tblTempUsageDetail_20' ) end [2025-02-08 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432470', 'tblTempVendorCDR_20' ) start [2025-02-08 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432470', 'tblTempVendorCDR_20' ) end [2025-02-08 21:29:20] Production.INFO: ProcessCDR(1,14432470,1,1,2) [2025-02-08 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432470', 'tblTempUsageDetail_20' ) start [2025-02-08 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432470', 'tblTempUsageDetail_20' ) end [2025-02-08 21:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:29:25] Production.INFO: ==14727== Releasing lock... [2025-02-08 21:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:29:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:30:07 [end_date_ymd] => 2025-02-08 21:30:07 [RateCDR] => 1 ) [2025-02-08 21:30: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-02-08 18:30:07' and `end` < '2025-02-08 21:30: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-02-08 21:30:20] Production.INFO: count ==1838 [2025-02-08 21:30:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:30:07 - End Time 2025-02-08 21:30:07 [2025-02-08 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432476', 'tblTempUsageDetail_20' ) start [2025-02-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432476', 'tblTempUsageDetail_20' ) end [2025-02-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432476', 'tblTempVendorCDR_20' ) start [2025-02-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432476', 'tblTempVendorCDR_20' ) end [2025-02-08 21:30:20] Production.INFO: ProcessCDR(1,14432476,1,1,2) [2025-02-08 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432476', 'tblTempUsageDetail_20' ) start [2025-02-08 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432476', 'tblTempUsageDetail_20' ) end [2025-02-08 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:30:24] Production.INFO: ==14813== Releasing lock... [2025-02-08 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:30:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:31:06 [end_date_ymd] => 2025-02-08 21:31:06 [RateCDR] => 1 ) [2025-02-08 21:31: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-02-08 18:31:06' and `end` < '2025-02-08 21:31: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-02-08 21:31:19] Production.INFO: count ==1812 [2025-02-08 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:31:06 - End Time 2025-02-08 21:31:06 [2025-02-08 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432481', 'tblTempUsageDetail_20' ) start [2025-02-08 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432481', 'tblTempUsageDetail_20' ) end [2025-02-08 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432481', 'tblTempVendorCDR_20' ) start [2025-02-08 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432481', 'tblTempVendorCDR_20' ) end [2025-02-08 21:31:19] Production.INFO: ProcessCDR(1,14432481,1,1,2) [2025-02-08 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432481', 'tblTempUsageDetail_20' ) start [2025-02-08 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432481', 'tblTempUsageDetail_20' ) end [2025-02-08 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:31:23] Production.INFO: ==14938== Releasing lock... [2025-02-08 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:31:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:32:05 [end_date_ymd] => 2025-02-08 21:32:05 [RateCDR] => 1 ) [2025-02-08 21:32: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` >= '2025-02-08 18:32:05' and `end` < '2025-02-08 21:32: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 ,'') [2025-02-08 21:32:19] Production.INFO: count ==1812 [2025-02-08 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:32:05 - End Time 2025-02-08 21:32:05 [2025-02-08 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432486', 'tblTempUsageDetail_20' ) start [2025-02-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432486', 'tblTempUsageDetail_20' ) end [2025-02-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432486', 'tblTempVendorCDR_20' ) start [2025-02-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432486', 'tblTempVendorCDR_20' ) end [2025-02-08 21:32:19] Production.INFO: ProcessCDR(1,14432486,1,1,2) [2025-02-08 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432486', 'tblTempUsageDetail_20' ) start [2025-02-08 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432486', 'tblTempUsageDetail_20' ) end [2025-02-08 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:32:23] Production.INFO: ==15017== Releasing lock... [2025-02-08 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:33:06 [end_date_ymd] => 2025-02-08 21:33:06 [RateCDR] => 1 ) [2025-02-08 21:33: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-02-08 18:33:06' and `end` < '2025-02-08 21:33: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-02-08 21:33:19] Production.INFO: count ==1812 [2025-02-08 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:33:06 - End Time 2025-02-08 21:33:06 [2025-02-08 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432491', 'tblTempUsageDetail_20' ) start [2025-02-08 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432491', 'tblTempUsageDetail_20' ) end [2025-02-08 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432491', 'tblTempVendorCDR_20' ) start [2025-02-08 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432491', 'tblTempVendorCDR_20' ) end [2025-02-08 21:33:19] Production.INFO: ProcessCDR(1,14432491,1,1,2) [2025-02-08 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432491', 'tblTempUsageDetail_20' ) start [2025-02-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432491', 'tblTempUsageDetail_20' ) end [2025-02-08 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:33:23] Production.INFO: ==15100== Releasing lock... [2025-02-08 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:33:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:34:05 [end_date_ymd] => 2025-02-08 21:34:05 [RateCDR] => 1 ) [2025-02-08 21:34: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` >= '2025-02-08 18:34:05' and `end` < '2025-02-08 21:34: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 ,'') [2025-02-08 21:34:19] Production.INFO: count ==1811 [2025-02-08 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:34:05 - End Time 2025-02-08 21:34:05 [2025-02-08 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432496', 'tblTempUsageDetail_20' ) start [2025-02-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432496', 'tblTempUsageDetail_20' ) end [2025-02-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432496', 'tblTempVendorCDR_20' ) start [2025-02-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432496', 'tblTempVendorCDR_20' ) end [2025-02-08 21:34:19] Production.INFO: ProcessCDR(1,14432496,1,1,2) [2025-02-08 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432496', 'tblTempUsageDetail_20' ) start [2025-02-08 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432496', 'tblTempUsageDetail_20' ) end [2025-02-08 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:34:23] Production.INFO: ==15183== Releasing lock... [2025-02-08 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:34:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:35:06 [end_date_ymd] => 2025-02-08 21:35:06 [RateCDR] => 1 ) [2025-02-08 21:35: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-02-08 18:35:06' and `end` < '2025-02-08 21:35: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-02-08 21:35:19] Production.INFO: count ==1812 [2025-02-08 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:35:06 - End Time 2025-02-08 21:35:06 [2025-02-08 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432501', 'tblTempUsageDetail_20' ) start [2025-02-08 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432501', 'tblTempUsageDetail_20' ) end [2025-02-08 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432501', 'tblTempVendorCDR_20' ) start [2025-02-08 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432501', 'tblTempVendorCDR_20' ) end [2025-02-08 21:35:19] Production.INFO: ProcessCDR(1,14432501,1,1,2) [2025-02-08 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432501', 'tblTempUsageDetail_20' ) start [2025-02-08 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432501', 'tblTempUsageDetail_20' ) end [2025-02-08 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:35:23] Production.INFO: ==15267== Releasing lock... [2025-02-08 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:35:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:36:05 [end_date_ymd] => 2025-02-08 21:36:05 [RateCDR] => 1 ) [2025-02-08 21:36: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` >= '2025-02-08 18:36:05' and `end` < '2025-02-08 21:36: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 ,'') [2025-02-08 21:36:18] Production.INFO: count ==1811 [2025-02-08 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:36:05 - End Time 2025-02-08 21:36:05 [2025-02-08 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432506', 'tblTempUsageDetail_20' ) start [2025-02-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432506', 'tblTempUsageDetail_20' ) end [2025-02-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432506', 'tblTempVendorCDR_20' ) start [2025-02-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432506', 'tblTempVendorCDR_20' ) end [2025-02-08 21:36:18] Production.INFO: ProcessCDR(1,14432506,1,1,2) [2025-02-08 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432506', 'tblTempUsageDetail_20' ) start [2025-02-08 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432506', 'tblTempUsageDetail_20' ) end [2025-02-08 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:36:22] Production.INFO: ==15354== Releasing lock... [2025-02-08 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:37:05 [end_date_ymd] => 2025-02-08 21:37:05 [RateCDR] => 1 ) [2025-02-08 21:37: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` >= '2025-02-08 18:37:05' and `end` < '2025-02-08 21:37: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 ,'') [2025-02-08 21:37:19] Production.INFO: count ==1811 [2025-02-08 21:37:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:37:05 - End Time 2025-02-08 21:37:05 [2025-02-08 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432511', 'tblTempUsageDetail_20' ) start [2025-02-08 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432511', 'tblTempUsageDetail_20' ) end [2025-02-08 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432511', 'tblTempVendorCDR_20' ) start [2025-02-08 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432511', 'tblTempVendorCDR_20' ) end [2025-02-08 21:37:20] Production.INFO: ProcessCDR(1,14432511,1,1,2) [2025-02-08 21:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432511', 'tblTempUsageDetail_20' ) start [2025-02-08 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432511', 'tblTempUsageDetail_20' ) end [2025-02-08 21:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:37:24] Production.INFO: ==15439== Releasing lock... [2025-02-08 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:37:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:38:05 [end_date_ymd] => 2025-02-08 21:38:05 [RateCDR] => 1 ) [2025-02-08 21:38: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` >= '2025-02-08 18:38:05' and `end` < '2025-02-08 21:38: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 ,'') [2025-02-08 21:38:19] Production.INFO: count ==1811 [2025-02-08 21:38:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:38:05 - End Time 2025-02-08 21:38:05 [2025-02-08 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432516', 'tblTempUsageDetail_20' ) start [2025-02-08 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432516', 'tblTempUsageDetail_20' ) end [2025-02-08 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432516', 'tblTempVendorCDR_20' ) start [2025-02-08 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432516', 'tblTempVendorCDR_20' ) end [2025-02-08 21:38:20] Production.INFO: ProcessCDR(1,14432516,1,1,2) [2025-02-08 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432516', 'tblTempUsageDetail_20' ) start [2025-02-08 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432516', 'tblTempUsageDetail_20' ) end [2025-02-08 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:38:23] Production.INFO: ==15522== Releasing lock... [2025-02-08 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:38:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:39:05 [end_date_ymd] => 2025-02-08 21:39:05 [RateCDR] => 1 ) [2025-02-08 21:39: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` >= '2025-02-08 18:39:05' and `end` < '2025-02-08 21:39: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 ,'') [2025-02-08 21:39:18] Production.INFO: count ==1817 [2025-02-08 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:39:05 - End Time 2025-02-08 21:39:05 [2025-02-08 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432521', 'tblTempUsageDetail_20' ) start [2025-02-08 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432521', 'tblTempUsageDetail_20' ) end [2025-02-08 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432521', 'tblTempVendorCDR_20' ) start [2025-02-08 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432521', 'tblTempVendorCDR_20' ) end [2025-02-08 21:39:19] Production.INFO: ProcessCDR(1,14432521,1,1,2) [2025-02-08 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432521', 'tblTempUsageDetail_20' ) start [2025-02-08 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432521', 'tblTempUsageDetail_20' ) end [2025-02-08 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:39:22] Production.INFO: ==15607== Releasing lock... [2025-02-08 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:40:06 [end_date_ymd] => 2025-02-08 21:40:06 [RateCDR] => 1 ) [2025-02-08 21:40: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-02-08 18:40:06' and `end` < '2025-02-08 21:40: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-02-08 21:40:19] Production.INFO: count ==1814 [2025-02-08 21:40:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:40:06 - End Time 2025-02-08 21:40:06 [2025-02-08 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432527', 'tblTempUsageDetail_20' ) start [2025-02-08 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432527', 'tblTempUsageDetail_20' ) end [2025-02-08 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432527', 'tblTempVendorCDR_20' ) start [2025-02-08 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432527', 'tblTempVendorCDR_20' ) end [2025-02-08 21:40:20] Production.INFO: ProcessCDR(1,14432527,1,1,2) [2025-02-08 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432527', 'tblTempUsageDetail_20' ) start [2025-02-08 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432527', 'tblTempUsageDetail_20' ) end [2025-02-08 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:40:24] Production.INFO: ==15688== Releasing lock... [2025-02-08 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:40:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:41:05 [end_date_ymd] => 2025-02-08 21:41:05 [RateCDR] => 1 ) [2025-02-08 21:41: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` >= '2025-02-08 18:41:05' and `end` < '2025-02-08 21:41: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 ,'') [2025-02-08 21:41:19] Production.INFO: count ==1787 [2025-02-08 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:41:05 - End Time 2025-02-08 21:41:05 [2025-02-08 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432532', 'tblTempUsageDetail_20' ) start [2025-02-08 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432532', 'tblTempUsageDetail_20' ) end [2025-02-08 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432532', 'tblTempVendorCDR_20' ) start [2025-02-08 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432532', 'tblTempVendorCDR_20' ) end [2025-02-08 21:41:19] Production.INFO: ProcessCDR(1,14432532,1,1,2) [2025-02-08 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432532', 'tblTempUsageDetail_20' ) start [2025-02-08 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432532', 'tblTempUsageDetail_20' ) end [2025-02-08 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:41:23] Production.INFO: ==15774== Releasing lock... [2025-02-08 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:41:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:42:06 [end_date_ymd] => 2025-02-08 21:42:06 [RateCDR] => 1 ) [2025-02-08 21:42: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-02-08 18:42:06' and `end` < '2025-02-08 21:42: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-02-08 21:42:19] Production.INFO: count ==1787 [2025-02-08 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:42:06 - End Time 2025-02-08 21:42:06 [2025-02-08 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432537', 'tblTempUsageDetail_20' ) start [2025-02-08 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432537', 'tblTempUsageDetail_20' ) end [2025-02-08 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432537', 'tblTempVendorCDR_20' ) start [2025-02-08 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432537', 'tblTempVendorCDR_20' ) end [2025-02-08 21:42:19] Production.INFO: ProcessCDR(1,14432537,1,1,2) [2025-02-08 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432537', 'tblTempUsageDetail_20' ) start [2025-02-08 21:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432537', 'tblTempUsageDetail_20' ) end [2025-02-08 21:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:42:25] Production.INFO: ==15863== Releasing lock... [2025-02-08 21:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:42:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:43:05 [end_date_ymd] => 2025-02-08 21:43:05 [RateCDR] => 1 ) [2025-02-08 21:43: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` >= '2025-02-08 18:43:05' and `end` < '2025-02-08 21:43: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 ,'') [2025-02-08 21:43:19] Production.INFO: count ==1809 [2025-02-08 21:43:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:43:05 - End Time 2025-02-08 21:43:05 [2025-02-08 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432542', 'tblTempUsageDetail_20' ) start [2025-02-08 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432542', 'tblTempUsageDetail_20' ) end [2025-02-08 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432542', 'tblTempVendorCDR_20' ) start [2025-02-08 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432542', 'tblTempVendorCDR_20' ) end [2025-02-08 21:43:20] Production.INFO: ProcessCDR(1,14432542,1,1,2) [2025-02-08 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432542', 'tblTempUsageDetail_20' ) start [2025-02-08 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432542', 'tblTempUsageDetail_20' ) end [2025-02-08 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:43:23] Production.INFO: ==15939== Releasing lock... [2025-02-08 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:43:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:44:05 [end_date_ymd] => 2025-02-08 21:44:05 [RateCDR] => 1 ) [2025-02-08 21:44: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` >= '2025-02-08 18:44:05' and `end` < '2025-02-08 21:44: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 ,'') [2025-02-08 21:44:19] Production.INFO: count ==1805 [2025-02-08 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:44:05 - End Time 2025-02-08 21:44:05 [2025-02-08 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432547', 'tblTempUsageDetail_20' ) start [2025-02-08 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432547', 'tblTempUsageDetail_20' ) end [2025-02-08 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432547', 'tblTempVendorCDR_20' ) start [2025-02-08 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432547', 'tblTempVendorCDR_20' ) end [2025-02-08 21:44:19] Production.INFO: ProcessCDR(1,14432547,1,1,2) [2025-02-08 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432547', 'tblTempUsageDetail_20' ) start [2025-02-08 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432547', 'tblTempUsageDetail_20' ) end [2025-02-08 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:44:23] Production.INFO: ==16022== Releasing lock... [2025-02-08 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:44:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:45:06 [end_date_ymd] => 2025-02-08 21:45:06 [RateCDR] => 1 ) [2025-02-08 21:45: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-02-08 18:45:06' and `end` < '2025-02-08 21:45: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-02-08 21:45:19] Production.INFO: count ==1803 [2025-02-08 21:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:45:06 - End Time 2025-02-08 21:45:06 [2025-02-08 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432552', 'tblTempUsageDetail_20' ) start [2025-02-08 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432552', 'tblTempUsageDetail_20' ) end [2025-02-08 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432552', 'tblTempVendorCDR_20' ) start [2025-02-08 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432552', 'tblTempVendorCDR_20' ) end [2025-02-08 21:45:19] Production.INFO: ProcessCDR(1,14432552,1,1,2) [2025-02-08 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432552', 'tblTempUsageDetail_20' ) start [2025-02-08 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432552', 'tblTempUsageDetail_20' ) end [2025-02-08 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:45:24] Production.INFO: ==16113== Releasing lock... [2025-02-08 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:45:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:46:05 [end_date_ymd] => 2025-02-08 21:46:05 [RateCDR] => 1 ) [2025-02-08 21:46: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` >= '2025-02-08 18:46:05' and `end` < '2025-02-08 21:46: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 ,'') [2025-02-08 21:46:18] Production.INFO: count ==1824 [2025-02-08 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:46:05 - End Time 2025-02-08 21:46:05 [2025-02-08 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432557', 'tblTempUsageDetail_20' ) start [2025-02-08 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432557', 'tblTempUsageDetail_20' ) end [2025-02-08 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432557', 'tblTempVendorCDR_20' ) start [2025-02-08 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432557', 'tblTempVendorCDR_20' ) end [2025-02-08 21:46:19] Production.INFO: ProcessCDR(1,14432557,1,1,2) [2025-02-08 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432557', 'tblTempUsageDetail_20' ) start [2025-02-08 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432557', 'tblTempUsageDetail_20' ) end [2025-02-08 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:46:22] Production.INFO: ==16229== Releasing lock... [2025-02-08 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:46:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:47:05 [end_date_ymd] => 2025-02-08 21:47:05 [RateCDR] => 1 ) [2025-02-08 21:47: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` >= '2025-02-08 18:47:05' and `end` < '2025-02-08 21:47: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 ,'') [2025-02-08 21:47:18] Production.INFO: count ==1827 [2025-02-08 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:47:05 - End Time 2025-02-08 21:47:05 [2025-02-08 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432562', 'tblTempUsageDetail_20' ) start [2025-02-08 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432562', 'tblTempUsageDetail_20' ) end [2025-02-08 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432562', 'tblTempVendorCDR_20' ) start [2025-02-08 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432562', 'tblTempVendorCDR_20' ) end [2025-02-08 21:47:19] Production.INFO: ProcessCDR(1,14432562,1,1,2) [2025-02-08 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432562', 'tblTempUsageDetail_20' ) start [2025-02-08 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432562', 'tblTempUsageDetail_20' ) end [2025-02-08 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:47:23] Production.INFO: ==16305== Releasing lock... [2025-02-08 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:47:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:48:06 [end_date_ymd] => 2025-02-08 21:48:06 [RateCDR] => 1 ) [2025-02-08 21:48: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-02-08 18:48:06' and `end` < '2025-02-08 21:48: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-02-08 21:48:20] Production.INFO: count ==1842 [2025-02-08 21:48:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:48:06 - End Time 2025-02-08 21:48:06 [2025-02-08 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432567', 'tblTempUsageDetail_20' ) start [2025-02-08 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432567', 'tblTempUsageDetail_20' ) end [2025-02-08 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432567', 'tblTempVendorCDR_20' ) start [2025-02-08 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432567', 'tblTempVendorCDR_20' ) end [2025-02-08 21:48:20] Production.INFO: ProcessCDR(1,14432567,1,1,2) [2025-02-08 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432567', 'tblTempUsageDetail_20' ) start [2025-02-08 21:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432567', 'tblTempUsageDetail_20' ) end [2025-02-08 21:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:48:26] Production.INFO: ==16390== Releasing lock... [2025-02-08 21:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:48:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:49:05 [end_date_ymd] => 2025-02-08 21:49:05 [RateCDR] => 1 ) [2025-02-08 21:49: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` >= '2025-02-08 18:49:05' and `end` < '2025-02-08 21:49: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 ,'') [2025-02-08 21:49:18] Production.INFO: count ==1843 [2025-02-08 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:49:05 - End Time 2025-02-08 21:49:05 [2025-02-08 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432572', 'tblTempUsageDetail_20' ) start [2025-02-08 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432572', 'tblTempUsageDetail_20' ) end [2025-02-08 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432572', 'tblTempVendorCDR_20' ) start [2025-02-08 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432572', 'tblTempVendorCDR_20' ) end [2025-02-08 21:49:19] Production.INFO: ProcessCDR(1,14432572,1,1,2) [2025-02-08 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432572', 'tblTempUsageDetail_20' ) start [2025-02-08 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432572', 'tblTempUsageDetail_20' ) end [2025-02-08 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:49:24] Production.INFO: ==16472== Releasing lock... [2025-02-08 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:49:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:50:06 [end_date_ymd] => 2025-02-08 21:50:06 [RateCDR] => 1 ) [2025-02-08 21:50: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-02-08 18:50:06' and `end` < '2025-02-08 21:50: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-02-08 21:50:19] Production.INFO: count ==1851 [2025-02-08 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 18:50:06 - End Time 2025-02-08 21:50:06 [2025-02-08 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432578', 'tblTempUsageDetail_20' ) start [2025-02-08 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432578', 'tblTempUsageDetail_20' ) end [2025-02-08 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432578', 'tblTempVendorCDR_20' ) start [2025-02-08 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432578', 'tblTempVendorCDR_20' ) end [2025-02-08 21:50:20] Production.INFO: ProcessCDR(1,14432578,1,1,2) [2025-02-08 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432578', 'tblTempUsageDetail_20' ) start [2025-02-08 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432578', 'tblTempUsageDetail_20' ) end [2025-02-08 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:50:23] Production.INFO: ==16557== Releasing lock... [2025-02-08 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:50:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:51:05 [end_date_ymd] => 2025-02-08 21:51:05 [RateCDR] => 1 ) [2025-02-08 21:51: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` >= '2025-02-08 18:51:05' and `end` < '2025-02-08 21:51: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 ,'') [2025-02-08 21:51:19] Production.INFO: count ==1858 [2025-02-08 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:51:05 - End Time 2025-02-08 21:51:05 [2025-02-08 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432583', 'tblTempUsageDetail_20' ) start [2025-02-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432583', 'tblTempUsageDetail_20' ) end [2025-02-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432583', 'tblTempVendorCDR_20' ) start [2025-02-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432583', 'tblTempVendorCDR_20' ) end [2025-02-08 21:51:19] Production.INFO: ProcessCDR(1,14432583,1,1,2) [2025-02-08 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432583', 'tblTempUsageDetail_20' ) start [2025-02-08 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432583', 'tblTempUsageDetail_20' ) end [2025-02-08 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:51:23] Production.INFO: ==16638== Releasing lock... [2025-02-08 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:51:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:52:05 [end_date_ymd] => 2025-02-08 21:52:05 [RateCDR] => 1 ) [2025-02-08 21:52: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` >= '2025-02-08 18:52:05' and `end` < '2025-02-08 21:52: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 ,'') [2025-02-08 21:52:18] Production.INFO: count ==1859 [2025-02-08 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:52:05 - End Time 2025-02-08 21:52:05 [2025-02-08 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432588', 'tblTempUsageDetail_20' ) start [2025-02-08 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432588', 'tblTempUsageDetail_20' ) end [2025-02-08 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432588', 'tblTempVendorCDR_20' ) start [2025-02-08 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432588', 'tblTempVendorCDR_20' ) end [2025-02-08 21:52:19] Production.INFO: ProcessCDR(1,14432588,1,1,2) [2025-02-08 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432588', 'tblTempUsageDetail_20' ) start [2025-02-08 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432588', 'tblTempUsageDetail_20' ) end [2025-02-08 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:52:24] Production.INFO: ==16717== Releasing lock... [2025-02-08 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:52:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:53:06 [end_date_ymd] => 2025-02-08 21:53:06 [RateCDR] => 1 ) [2025-02-08 21:53: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-02-08 18:53:06' and `end` < '2025-02-08 21:53: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-02-08 21:53:19] Production.INFO: count ==1886 [2025-02-08 21:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:53:06 - End Time 2025-02-08 21:53:06 [2025-02-08 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432593', 'tblTempUsageDetail_20' ) start [2025-02-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432593', 'tblTempUsageDetail_20' ) end [2025-02-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432593', 'tblTempVendorCDR_20' ) start [2025-02-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432593', 'tblTempVendorCDR_20' ) end [2025-02-08 21:53:19] Production.INFO: ProcessCDR(1,14432593,1,1,2) [2025-02-08 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432593', 'tblTempUsageDetail_20' ) start [2025-02-08 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432593', 'tblTempUsageDetail_20' ) end [2025-02-08 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:53:23] Production.INFO: ==16796== Releasing lock... [2025-02-08 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:53:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-08 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:54:06 [end_date_ymd] => 2025-02-08 21:54:06 [RateCDR] => 1 ) [2025-02-08 21:54: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-02-08 18:54:06' and `end` < '2025-02-08 21:54: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-02-08 21:54:19] Production.INFO: count ==1884 [2025-02-08 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:54:06 - End Time 2025-02-08 21:54:06 [2025-02-08 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432598', 'tblTempUsageDetail_20' ) start [2025-02-08 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432598', 'tblTempUsageDetail_20' ) end [2025-02-08 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432598', 'tblTempVendorCDR_20' ) start [2025-02-08 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432598', 'tblTempVendorCDR_20' ) end [2025-02-08 21:54:19] Production.INFO: ProcessCDR(1,14432598,1,1,2) [2025-02-08 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432598', 'tblTempUsageDetail_20' ) start [2025-02-08 21:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432598', 'tblTempUsageDetail_20' ) end [2025-02-08 21:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:54:25] Production.INFO: ==16877== Releasing lock... [2025-02-08 21:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:54:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:55:06 [end_date_ymd] => 2025-02-08 21:55:06 [RateCDR] => 1 ) [2025-02-08 21:55: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-02-08 18:55:06' and `end` < '2025-02-08 21:55: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-02-08 21:55:19] Production.INFO: count ==1880 [2025-02-08 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:55:06 - End Time 2025-02-08 21:55:06 [2025-02-08 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432603', 'tblTempUsageDetail_20' ) start [2025-02-08 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432603', 'tblTempUsageDetail_20' ) end [2025-02-08 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432603', 'tblTempVendorCDR_20' ) start [2025-02-08 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432603', 'tblTempVendorCDR_20' ) end [2025-02-08 21:55:19] Production.INFO: ProcessCDR(1,14432603,1,1,2) [2025-02-08 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432603', 'tblTempUsageDetail_20' ) start [2025-02-08 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432603', 'tblTempUsageDetail_20' ) end [2025-02-08 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:55:23] Production.INFO: ==16958== Releasing lock... [2025-02-08 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:55:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:56:05 [end_date_ymd] => 2025-02-08 21:56:05 [RateCDR] => 1 ) [2025-02-08 21:56: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` >= '2025-02-08 18:56:05' and `end` < '2025-02-08 21:56: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 ,'') [2025-02-08 21:56:18] Production.INFO: count ==1876 [2025-02-08 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:56:05 - End Time 2025-02-08 21:56:05 [2025-02-08 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432608', 'tblTempUsageDetail_20' ) start [2025-02-08 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432608', 'tblTempUsageDetail_20' ) end [2025-02-08 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432608', 'tblTempVendorCDR_20' ) start [2025-02-08 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432608', 'tblTempVendorCDR_20' ) end [2025-02-08 21:56:19] Production.INFO: ProcessCDR(1,14432608,1,1,2) [2025-02-08 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432608', 'tblTempUsageDetail_20' ) start [2025-02-08 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432608', 'tblTempUsageDetail_20' ) end [2025-02-08 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:56:24] Production.INFO: ==17034== Releasing lock... [2025-02-08 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:56:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:57:05 [end_date_ymd] => 2025-02-08 21:57:05 [RateCDR] => 1 ) [2025-02-08 21:57: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` >= '2025-02-08 18:57:05' and `end` < '2025-02-08 21:57: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 ,'') [2025-02-08 21:57:18] Production.INFO: count ==1869 [2025-02-08 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 18:57:05 - End Time 2025-02-08 21:57:05 [2025-02-08 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432613', 'tblTempUsageDetail_20' ) start [2025-02-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432613', 'tblTempUsageDetail_20' ) end [2025-02-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432613', 'tblTempVendorCDR_20' ) start [2025-02-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432613', 'tblTempVendorCDR_20' ) end [2025-02-08 21:57:18] Production.INFO: ProcessCDR(1,14432613,1,1,2) [2025-02-08 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432613', 'tblTempUsageDetail_20' ) start [2025-02-08 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432613', 'tblTempUsageDetail_20' ) end [2025-02-08 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:57:22] Production.INFO: ==17112== Releasing lock... [2025-02-08 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:57:22] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:58:05 [end_date_ymd] => 2025-02-08 21:58:05 [RateCDR] => 1 ) [2025-02-08 21:58: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` >= '2025-02-08 18:58:05' and `end` < '2025-02-08 21:58: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 ,'') [2025-02-08 21:58:19] Production.INFO: count ==1866 [2025-02-08 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:58:05 - End Time 2025-02-08 21:58:05 [2025-02-08 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432618', 'tblTempUsageDetail_20' ) start [2025-02-08 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432618', 'tblTempUsageDetail_20' ) end [2025-02-08 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432618', 'tblTempVendorCDR_20' ) start [2025-02-08 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432618', 'tblTempVendorCDR_20' ) end [2025-02-08 21:58:19] Production.INFO: ProcessCDR(1,14432618,1,1,2) [2025-02-08 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432618', 'tblTempUsageDetail_20' ) start [2025-02-08 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432618', 'tblTempUsageDetail_20' ) end [2025-02-08 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:58:23] Production.INFO: ==17195== Releasing lock... [2025-02-08 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:58:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 18:59:05 [end_date_ymd] => 2025-02-08 21:59:05 [RateCDR] => 1 ) [2025-02-08 21:59: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` >= '2025-02-08 18:59:05' and `end` < '2025-02-08 21:59: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 ,'') [2025-02-08 21:59:18] Production.INFO: count ==1893 [2025-02-08 21:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 18:59:05 - End Time 2025-02-08 21:59:05 [2025-02-08 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432623', 'tblTempUsageDetail_20' ) start [2025-02-08 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432623', 'tblTempUsageDetail_20' ) end [2025-02-08 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432623', 'tblTempVendorCDR_20' ) start [2025-02-08 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432623', 'tblTempVendorCDR_20' ) end [2025-02-08 21:59:19] Production.INFO: ProcessCDR(1,14432623,1,1,2) [2025-02-08 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432623', 'tblTempUsageDetail_20' ) start [2025-02-08 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432623', 'tblTempUsageDetail_20' ) end [2025-02-08 21:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 21:59:24] Production.INFO: ==17271== Releasing lock... [2025-02-08 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 21:59:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:00:06 [end_date_ymd] => 2025-02-08 22:00:06 [RateCDR] => 1 ) [2025-02-08 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 19:00:06' and `end` < '2025-02-08 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 22:00:19] Production.INFO: count ==1886 [2025-02-08 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:00:06 - End Time 2025-02-08 22:00:06 [2025-02-08 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432629', 'tblTempUsageDetail_20' ) start [2025-02-08 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432629', 'tblTempUsageDetail_20' ) end [2025-02-08 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432629', 'tblTempVendorCDR_20' ) start [2025-02-08 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432629', 'tblTempVendorCDR_20' ) end [2025-02-08 22:00:20] Production.INFO: ProcessCDR(1,14432629,1,1,2) [2025-02-08 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432629', 'tblTempUsageDetail_20' ) start [2025-02-08 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432629', 'tblTempUsageDetail_20' ) end [2025-02-08 22:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:00:25] Production.INFO: ==17356== Releasing lock... [2025-02-08 22:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:00:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:01:05 [end_date_ymd] => 2025-02-08 22:01:05 [RateCDR] => 1 ) [2025-02-08 22: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` >= '2025-02-08 19:01:05' and `end` < '2025-02-08 22: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 ,'') [2025-02-08 22:01:19] Production.INFO: count ==1841 [2025-02-08 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:01:05 - End Time 2025-02-08 22:01:05 [2025-02-08 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432634', 'tblTempUsageDetail_20' ) start [2025-02-08 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432634', 'tblTempUsageDetail_20' ) end [2025-02-08 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432634', 'tblTempVendorCDR_20' ) start [2025-02-08 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432634', 'tblTempVendorCDR_20' ) end [2025-02-08 22:01:19] Production.INFO: ProcessCDR(1,14432634,1,1,2) [2025-02-08 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432634', 'tblTempUsageDetail_20' ) start [2025-02-08 22:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432634', 'tblTempUsageDetail_20' ) end [2025-02-08 22:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:01:25] Production.INFO: ==17487== Releasing lock... [2025-02-08 22:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:01:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:02:06 [end_date_ymd] => 2025-02-08 22:02:06 [RateCDR] => 1 ) [2025-02-08 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 19:02:06' and `end` < '2025-02-08 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 22:02:20] Production.INFO: count ==1856 [2025-02-08 22:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:02:06 - End Time 2025-02-08 22:02:06 [2025-02-08 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432639', 'tblTempUsageDetail_20' ) start [2025-02-08 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432639', 'tblTempUsageDetail_20' ) end [2025-02-08 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432639', 'tblTempVendorCDR_20' ) start [2025-02-08 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432639', 'tblTempVendorCDR_20' ) end [2025-02-08 22:02:20] Production.INFO: ProcessCDR(1,14432639,1,1,2) [2025-02-08 22:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432639', 'tblTempUsageDetail_20' ) start [2025-02-08 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432639', 'tblTempUsageDetail_20' ) end [2025-02-08 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:02:23] Production.INFO: ==17570== Releasing lock... [2025-02-08 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:02:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:03:05 [end_date_ymd] => 2025-02-08 22:03:05 [RateCDR] => 1 ) [2025-02-08 22:03: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` >= '2025-02-08 19:03:05' and `end` < '2025-02-08 22:03: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 ,'') [2025-02-08 22:03:19] Production.INFO: count ==1852 [2025-02-08 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:03:05 - End Time 2025-02-08 22:03:05 [2025-02-08 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432644', 'tblTempUsageDetail_20' ) start [2025-02-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432644', 'tblTempUsageDetail_20' ) end [2025-02-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432644', 'tblTempVendorCDR_20' ) start [2025-02-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432644', 'tblTempVendorCDR_20' ) end [2025-02-08 22:03:19] Production.INFO: ProcessCDR(1,14432644,1,1,2) [2025-02-08 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432644', 'tblTempUsageDetail_20' ) start [2025-02-08 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432644', 'tblTempUsageDetail_20' ) end [2025-02-08 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:03:23] Production.INFO: ==17646== Releasing lock... [2025-02-08 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:03:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:04:05 [end_date_ymd] => 2025-02-08 22:04:05 [RateCDR] => 1 ) [2025-02-08 22:04: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` >= '2025-02-08 19:04:05' and `end` < '2025-02-08 22:04: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 ,'') [2025-02-08 22:04:19] Production.INFO: count ==1854 [2025-02-08 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:04:05 - End Time 2025-02-08 22:04:05 [2025-02-08 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432649', 'tblTempUsageDetail_20' ) start [2025-02-08 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432649', 'tblTempUsageDetail_20' ) end [2025-02-08 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432649', 'tblTempVendorCDR_20' ) start [2025-02-08 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432649', 'tblTempVendorCDR_20' ) end [2025-02-08 22:04:19] Production.INFO: ProcessCDR(1,14432649,1,1,2) [2025-02-08 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432649', 'tblTempUsageDetail_20' ) start [2025-02-08 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432649', 'tblTempUsageDetail_20' ) end [2025-02-08 22:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:04:25] Production.INFO: ==17724== Releasing lock... [2025-02-08 22:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:04:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:05:05 [end_date_ymd] => 2025-02-08 22:05:05 [RateCDR] => 1 ) [2025-02-08 22:05: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` >= '2025-02-08 19:05:05' and `end` < '2025-02-08 22:05: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 ,'') [2025-02-08 22:05:18] Production.INFO: count ==1856 [2025-02-08 22:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:05:05 - End Time 2025-02-08 22:05:05 [2025-02-08 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432654', 'tblTempUsageDetail_20' ) start [2025-02-08 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432654', 'tblTempUsageDetail_20' ) end [2025-02-08 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432654', 'tblTempVendorCDR_20' ) start [2025-02-08 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432654', 'tblTempVendorCDR_20' ) end [2025-02-08 22:05:19] Production.INFO: ProcessCDR(1,14432654,1,1,2) [2025-02-08 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432654', 'tblTempUsageDetail_20' ) start [2025-02-08 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432654', 'tblTempUsageDetail_20' ) end [2025-02-08 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:05:23] Production.INFO: ==17805== Releasing lock... [2025-02-08 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:05:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:06:06 [end_date_ymd] => 2025-02-08 22:06:06 [RateCDR] => 1 ) [2025-02-08 22:06: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-02-08 19:06:06' and `end` < '2025-02-08 22:06: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-02-08 22:06:19] Production.INFO: count ==1858 [2025-02-08 22:06:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:06:06 - End Time 2025-02-08 22:06:06 [2025-02-08 22:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432659', 'tblTempUsageDetail_20' ) start [2025-02-08 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432659', 'tblTempUsageDetail_20' ) end [2025-02-08 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432659', 'tblTempVendorCDR_20' ) start [2025-02-08 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432659', 'tblTempVendorCDR_20' ) end [2025-02-08 22:06:20] Production.INFO: ProcessCDR(1,14432659,1,1,2) [2025-02-08 22:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432659', 'tblTempUsageDetail_20' ) start [2025-02-08 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432659', 'tblTempUsageDetail_20' ) end [2025-02-08 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:06:23] Production.INFO: ==17885== Releasing lock... [2025-02-08 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:06:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:07:06 [end_date_ymd] => 2025-02-08 22:07:06 [RateCDR] => 1 ) [2025-02-08 22:07: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-02-08 19:07:06' and `end` < '2025-02-08 22:07: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-02-08 22:07:19] Production.INFO: count ==1859 [2025-02-08 22:07:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:07:06 - End Time 2025-02-08 22:07:06 [2025-02-08 22:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432664', 'tblTempUsageDetail_20' ) start [2025-02-08 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432664', 'tblTempUsageDetail_20' ) end [2025-02-08 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432664', 'tblTempVendorCDR_20' ) start [2025-02-08 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432664', 'tblTempVendorCDR_20' ) end [2025-02-08 22:07:20] Production.INFO: ProcessCDR(1,14432664,1,1,2) [2025-02-08 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432664', 'tblTempUsageDetail_20' ) start [2025-02-08 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432664', 'tblTempUsageDetail_20' ) end [2025-02-08 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:07:24] Production.INFO: ==17962== Releasing lock... [2025-02-08 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:07:24] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:08:06 [end_date_ymd] => 2025-02-08 22:08:06 [RateCDR] => 1 ) [2025-02-08 22:08: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-02-08 19:08:06' and `end` < '2025-02-08 22:08: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-02-08 22:08:19] Production.INFO: count ==1864 [2025-02-08 22:08:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:08:06 - End Time 2025-02-08 22:08:06 [2025-02-08 22:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432669', 'tblTempUsageDetail_20' ) start [2025-02-08 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432669', 'tblTempUsageDetail_20' ) end [2025-02-08 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432669', 'tblTempVendorCDR_20' ) start [2025-02-08 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432669', 'tblTempVendorCDR_20' ) end [2025-02-08 22:08:20] Production.INFO: ProcessCDR(1,14432669,1,1,2) [2025-02-08 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432669', 'tblTempUsageDetail_20' ) start [2025-02-08 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432669', 'tblTempUsageDetail_20' ) end [2025-02-08 22:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:08:25] Production.INFO: ==18039== Releasing lock... [2025-02-08 22:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:08:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:09:05 [end_date_ymd] => 2025-02-08 22:09:05 [RateCDR] => 1 ) [2025-02-08 22:09: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` >= '2025-02-08 19:09:05' and `end` < '2025-02-08 22:09: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 ,'') [2025-02-08 22:09:20] Production.INFO: count ==1874 [2025-02-08 22:09:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:09:05 - End Time 2025-02-08 22:09:05 [2025-02-08 22:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432674', 'tblTempUsageDetail_20' ) start [2025-02-08 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432674', 'tblTempUsageDetail_20' ) end [2025-02-08 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432674', 'tblTempVendorCDR_20' ) start [2025-02-08 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432674', 'tblTempVendorCDR_20' ) end [2025-02-08 22:09:20] Production.INFO: ProcessCDR(1,14432674,1,1,2) [2025-02-08 22:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432674', 'tblTempUsageDetail_20' ) start [2025-02-08 22:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432674', 'tblTempUsageDetail_20' ) end [2025-02-08 22:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:09:26] Production.INFO: ==18112== Releasing lock... [2025-02-08 22:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:09:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:10:06 [end_date_ymd] => 2025-02-08 22:10:06 [RateCDR] => 1 ) [2025-02-08 22:10: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-02-08 19:10:06' and `end` < '2025-02-08 22:10: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-02-08 22:10:20] Production.INFO: count ==1879 [2025-02-08 22:10:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:10:06 - End Time 2025-02-08 22:10:06 [2025-02-08 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432680', 'tblTempUsageDetail_20' ) start [2025-02-08 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432680', 'tblTempUsageDetail_20' ) end [2025-02-08 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432680', 'tblTempVendorCDR_20' ) start [2025-02-08 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432680', 'tblTempVendorCDR_20' ) end [2025-02-08 22:10:20] Production.INFO: ProcessCDR(1,14432680,1,1,2) [2025-02-08 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432680', 'tblTempUsageDetail_20' ) start [2025-02-08 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432680', 'tblTempUsageDetail_20' ) end [2025-02-08 22:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:10:25] Production.INFO: ==18191== Releasing lock... [2025-02-08 22:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:10:25] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:11:05 [end_date_ymd] => 2025-02-08 22:11:05 [RateCDR] => 1 ) [2025-02-08 22:11: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` >= '2025-02-08 19:11:05' and `end` < '2025-02-08 22:11: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 ,'') [2025-02-08 22:11:19] Production.INFO: count ==1878 [2025-02-08 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:11:05 - End Time 2025-02-08 22:11:05 [2025-02-08 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432685', 'tblTempUsageDetail_20' ) start [2025-02-08 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432685', 'tblTempUsageDetail_20' ) end [2025-02-08 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432685', 'tblTempVendorCDR_20' ) start [2025-02-08 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432685', 'tblTempVendorCDR_20' ) end [2025-02-08 22:11:19] Production.INFO: ProcessCDR(1,14432685,1,1,2) [2025-02-08 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432685', 'tblTempUsageDetail_20' ) start [2025-02-08 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432685', 'tblTempUsageDetail_20' ) end [2025-02-08 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:11:23] Production.INFO: ==18268== Releasing lock... [2025-02-08 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:11:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:12:06 [end_date_ymd] => 2025-02-08 22:12:06 [RateCDR] => 1 ) [2025-02-08 22:12: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-02-08 19:12:06' and `end` < '2025-02-08 22:12: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-02-08 22:12:19] Production.INFO: count ==1876 [2025-02-08 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:12:06 - End Time 2025-02-08 22:12:06 [2025-02-08 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432690', 'tblTempUsageDetail_20' ) start [2025-02-08 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432690', 'tblTempUsageDetail_20' ) end [2025-02-08 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432690', 'tblTempVendorCDR_20' ) start [2025-02-08 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432690', 'tblTempVendorCDR_20' ) end [2025-02-08 22:12:20] Production.INFO: ProcessCDR(1,14432690,1,1,2) [2025-02-08 22:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432690', 'tblTempUsageDetail_20' ) start [2025-02-08 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432690', 'tblTempUsageDetail_20' ) end [2025-02-08 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:12:23] Production.INFO: ==18346== Releasing lock... [2025-02-08 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:12:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:13:05 [end_date_ymd] => 2025-02-08 22:13:05 [RateCDR] => 1 ) [2025-02-08 22:13: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` >= '2025-02-08 19:13:05' and `end` < '2025-02-08 22:13: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 ,'') [2025-02-08 22:13:18] Production.INFO: count ==1876 [2025-02-08 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:13:05 - End Time 2025-02-08 22:13:05 [2025-02-08 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432695', 'tblTempUsageDetail_20' ) start [2025-02-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432695', 'tblTempUsageDetail_20' ) end [2025-02-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432695', 'tblTempVendorCDR_20' ) start [2025-02-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432695', 'tblTempVendorCDR_20' ) end [2025-02-08 22:13:18] Production.INFO: ProcessCDR(1,14432695,1,1,2) [2025-02-08 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432695', 'tblTempUsageDetail_20' ) start [2025-02-08 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432695', 'tblTempUsageDetail_20' ) end [2025-02-08 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:13:23] Production.INFO: ==18415== Releasing lock... [2025-02-08 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:13:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-08 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:14:05 [end_date_ymd] => 2025-02-08 22:14:05 [RateCDR] => 1 ) [2025-02-08 22:14: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` >= '2025-02-08 19:14:05' and `end` < '2025-02-08 22:14: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 ,'') [2025-02-08 22:14:19] Production.INFO: count ==1877 [2025-02-08 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:14:05 - End Time 2025-02-08 22:14:05 [2025-02-08 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432700', 'tblTempUsageDetail_20' ) start [2025-02-08 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432700', 'tblTempUsageDetail_20' ) end [2025-02-08 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432700', 'tblTempVendorCDR_20' ) start [2025-02-08 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432700', 'tblTempVendorCDR_20' ) end [2025-02-08 22:14:19] Production.INFO: ProcessCDR(1,14432700,1,1,2) [2025-02-08 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432700', 'tblTempUsageDetail_20' ) start [2025-02-08 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432700', 'tblTempUsageDetail_20' ) end [2025-02-08 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:14:23] Production.INFO: ==18490== Releasing lock... [2025-02-08 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:14:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:15:05 [end_date_ymd] => 2025-02-08 22:15:05 [RateCDR] => 1 ) [2025-02-08 22:15: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` >= '2025-02-08 19:15:05' and `end` < '2025-02-08 22:15: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 ,'') [2025-02-08 22:15:19] Production.INFO: count ==1879 [2025-02-08 22:15:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:15:05 - End Time 2025-02-08 22:15:05 [2025-02-08 22:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432705', 'tblTempUsageDetail_20' ) start [2025-02-08 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432705', 'tblTempUsageDetail_20' ) end [2025-02-08 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432705', 'tblTempVendorCDR_20' ) start [2025-02-08 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432705', 'tblTempVendorCDR_20' ) end [2025-02-08 22:15:20] Production.INFO: ProcessCDR(1,14432705,1,1,2) [2025-02-08 22:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432705', 'tblTempUsageDetail_20' ) start [2025-02-08 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432705', 'tblTempUsageDetail_20' ) end [2025-02-08 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:15:23] Production.INFO: ==18567== Releasing lock... [2025-02-08 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:15:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:16:05 [end_date_ymd] => 2025-02-08 22:16:05 [RateCDR] => 1 ) [2025-02-08 22:16: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` >= '2025-02-08 19:16:05' and `end` < '2025-02-08 22:16: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 ,'') [2025-02-08 22:16:19] Production.INFO: count ==1879 [2025-02-08 22:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:16:05 - End Time 2025-02-08 22:16:05 [2025-02-08 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432710', 'tblTempUsageDetail_20' ) start [2025-02-08 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432710', 'tblTempUsageDetail_20' ) end [2025-02-08 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432710', 'tblTempVendorCDR_20' ) start [2025-02-08 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432710', 'tblTempVendorCDR_20' ) end [2025-02-08 22:16:19] Production.INFO: ProcessCDR(1,14432710,1,1,2) [2025-02-08 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432710', 'tblTempUsageDetail_20' ) start [2025-02-08 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432710', 'tblTempUsageDetail_20' ) end [2025-02-08 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:16:23] Production.INFO: ==18642== Releasing lock... [2025-02-08 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:16:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:17:05 [end_date_ymd] => 2025-02-08 22:17:05 [RateCDR] => 1 ) [2025-02-08 22:17: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` >= '2025-02-08 19:17:05' and `end` < '2025-02-08 22:17: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 ,'') [2025-02-08 22:17:20] Production.INFO: count ==1878 [2025-02-08 22:17:21] Production.ERROR: pbx CDR StartTime 2025-02-08 19:17:05 - End Time 2025-02-08 22:17:05 [2025-02-08 22:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432715', 'tblTempUsageDetail_20' ) start [2025-02-08 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432715', 'tblTempUsageDetail_20' ) end [2025-02-08 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432715', 'tblTempVendorCDR_20' ) start [2025-02-08 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432715', 'tblTempVendorCDR_20' ) end [2025-02-08 22:17:21] Production.INFO: ProcessCDR(1,14432715,1,1,2) [2025-02-08 22:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432715', 'tblTempUsageDetail_20' ) start [2025-02-08 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432715', 'tblTempUsageDetail_20' ) end [2025-02-08 22:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:17:24] Production.INFO: ==18758== Releasing lock... [2025-02-08 22:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:17:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:18:05 [end_date_ymd] => 2025-02-08 22:18:05 [RateCDR] => 1 ) [2025-02-08 22:18: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` >= '2025-02-08 19:18:05' and `end` < '2025-02-08 22:18: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 ,'') [2025-02-08 22:18:19] Production.INFO: count ==1878 [2025-02-08 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:18:05 - End Time 2025-02-08 22:18:05 [2025-02-08 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432720', 'tblTempUsageDetail_20' ) start [2025-02-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432720', 'tblTempUsageDetail_20' ) end [2025-02-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432720', 'tblTempVendorCDR_20' ) start [2025-02-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432720', 'tblTempVendorCDR_20' ) end [2025-02-08 22:18:19] Production.INFO: ProcessCDR(1,14432720,1,1,2) [2025-02-08 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432720', 'tblTempUsageDetail_20' ) start [2025-02-08 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432720', 'tblTempUsageDetail_20' ) end [2025-02-08 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:18:22] Production.INFO: ==18839== Releasing lock... [2025-02-08 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:18:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:19:05 [end_date_ymd] => 2025-02-08 22:19:05 [RateCDR] => 1 ) [2025-02-08 22:19: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` >= '2025-02-08 19:19:05' and `end` < '2025-02-08 22:19: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 ,'') [2025-02-08 22:19:18] Production.INFO: count ==1871 [2025-02-08 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:19:05 - End Time 2025-02-08 22:19:05 [2025-02-08 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432725', 'tblTempUsageDetail_20' ) start [2025-02-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432725', 'tblTempUsageDetail_20' ) end [2025-02-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432725', 'tblTempVendorCDR_20' ) start [2025-02-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432725', 'tblTempVendorCDR_20' ) end [2025-02-08 22:19:18] Production.INFO: ProcessCDR(1,14432725,1,1,2) [2025-02-08 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432725', 'tblTempUsageDetail_20' ) start [2025-02-08 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432725', 'tblTempUsageDetail_20' ) end [2025-02-08 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:19:23] Production.INFO: ==18922== Releasing lock... [2025-02-08 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:19:23] Production.INFO: 42 MB #Memory Used# [2025-02-08 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:20:06 [end_date_ymd] => 2025-02-08 22:20:06 [RateCDR] => 1 ) [2025-02-08 22:20: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-02-08 19:20:06' and `end` < '2025-02-08 22:20: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-02-08 22:20:19] Production.INFO: count ==1875 [2025-02-08 22:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:20:06 - End Time 2025-02-08 22:20:06 [2025-02-08 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432731', 'tblTempUsageDetail_20' ) start [2025-02-08 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432731', 'tblTempUsageDetail_20' ) end [2025-02-08 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432731', 'tblTempVendorCDR_20' ) start [2025-02-08 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432731', 'tblTempVendorCDR_20' ) end [2025-02-08 22:20:20] Production.INFO: ProcessCDR(1,14432731,1,1,2) [2025-02-08 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432731', 'tblTempUsageDetail_20' ) start [2025-02-08 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432731', 'tblTempUsageDetail_20' ) end [2025-02-08 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:20:23] Production.INFO: ==19017== Releasing lock... [2025-02-08 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:20:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:21:05 [end_date_ymd] => 2025-02-08 22:21:05 [RateCDR] => 1 ) [2025-02-08 22:21: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` >= '2025-02-08 19:21:05' and `end` < '2025-02-08 22:21: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 ,'') [2025-02-08 22:21:18] Production.INFO: count ==1829 [2025-02-08 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:21:05 - End Time 2025-02-08 22:21:05 [2025-02-08 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432736', 'tblTempUsageDetail_20' ) start [2025-02-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432736', 'tblTempUsageDetail_20' ) end [2025-02-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432736', 'tblTempVendorCDR_20' ) start [2025-02-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432736', 'tblTempVendorCDR_20' ) end [2025-02-08 22:21:18] Production.INFO: ProcessCDR(1,14432736,1,1,2) [2025-02-08 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432736', 'tblTempUsageDetail_20' ) start [2025-02-08 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432736', 'tblTempUsageDetail_20' ) end [2025-02-08 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:21:22] Production.INFO: ==19116== Releasing lock... [2025-02-08 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:21:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:22:05 [end_date_ymd] => 2025-02-08 22:22:05 [RateCDR] => 1 ) [2025-02-08 22:22: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` >= '2025-02-08 19:22:05' and `end` < '2025-02-08 22:22: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 ,'') [2025-02-08 22:22:18] Production.INFO: count ==1829 [2025-02-08 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:22:05 - End Time 2025-02-08 22:22:05 [2025-02-08 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432741', 'tblTempUsageDetail_20' ) start [2025-02-08 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432741', 'tblTempUsageDetail_20' ) end [2025-02-08 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432741', 'tblTempVendorCDR_20' ) start [2025-02-08 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432741', 'tblTempVendorCDR_20' ) end [2025-02-08 22:22:19] Production.INFO: ProcessCDR(1,14432741,1,1,2) [2025-02-08 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432741', 'tblTempUsageDetail_20' ) start [2025-02-08 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432741', 'tblTempUsageDetail_20' ) end [2025-02-08 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:22:22] Production.INFO: ==19195== Releasing lock... [2025-02-08 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:22:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:23:05 [end_date_ymd] => 2025-02-08 22:23:05 [RateCDR] => 1 ) [2025-02-08 22:23: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` >= '2025-02-08 19:23:05' and `end` < '2025-02-08 22:23: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 ,'') [2025-02-08 22:23:19] Production.INFO: count ==1827 [2025-02-08 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:23:05 - End Time 2025-02-08 22:23:05 [2025-02-08 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432746', 'tblTempUsageDetail_20' ) start [2025-02-08 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432746', 'tblTempUsageDetail_20' ) end [2025-02-08 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432746', 'tblTempVendorCDR_20' ) start [2025-02-08 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432746', 'tblTempVendorCDR_20' ) end [2025-02-08 22:23:20] Production.INFO: ProcessCDR(1,14432746,1,1,2) [2025-02-08 22:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432746', 'tblTempUsageDetail_20' ) start [2025-02-08 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432746', 'tblTempUsageDetail_20' ) end [2025-02-08 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:23:23] Production.INFO: ==19291== Releasing lock... [2025-02-08 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:23:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:24:06 [end_date_ymd] => 2025-02-08 22:24:06 [RateCDR] => 1 ) [2025-02-08 22:24: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-02-08 19:24:06' and `end` < '2025-02-08 22:24: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-02-08 22:24:19] Production.INFO: count ==1828 [2025-02-08 22:24:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:24:06 - End Time 2025-02-08 22:24:06 [2025-02-08 22:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432751', 'tblTempUsageDetail_20' ) start [2025-02-08 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432751', 'tblTempUsageDetail_20' ) end [2025-02-08 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432751', 'tblTempVendorCDR_20' ) start [2025-02-08 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432751', 'tblTempVendorCDR_20' ) end [2025-02-08 22:24:20] Production.INFO: ProcessCDR(1,14432751,1,1,2) [2025-02-08 22:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432751', 'tblTempUsageDetail_20' ) start [2025-02-08 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432751', 'tblTempUsageDetail_20' ) end [2025-02-08 22:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:24:24] Production.INFO: ==19384== Releasing lock... [2025-02-08 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:24:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:25:05 [end_date_ymd] => 2025-02-08 22:25:05 [RateCDR] => 1 ) [2025-02-08 22:25: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` >= '2025-02-08 19:25:05' and `end` < '2025-02-08 22:25: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 ,'') [2025-02-08 22:25:18] Production.INFO: count ==1826 [2025-02-08 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:25:05 - End Time 2025-02-08 22:25:05 [2025-02-08 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432756', 'tblTempUsageDetail_20' ) start [2025-02-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432756', 'tblTempUsageDetail_20' ) end [2025-02-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432756', 'tblTempVendorCDR_20' ) start [2025-02-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432756', 'tblTempVendorCDR_20' ) end [2025-02-08 22:25:18] Production.INFO: ProcessCDR(1,14432756,1,1,2) [2025-02-08 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432756', 'tblTempUsageDetail_20' ) start [2025-02-08 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432756', 'tblTempUsageDetail_20' ) end [2025-02-08 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:25:23] Production.INFO: ==19460== Releasing lock... [2025-02-08 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:25:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:26:05 [end_date_ymd] => 2025-02-08 22:26:05 [RateCDR] => 1 ) [2025-02-08 22:26: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` >= '2025-02-08 19:26:05' and `end` < '2025-02-08 22:26: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 ,'') [2025-02-08 22:26:19] Production.INFO: count ==1825 [2025-02-08 22:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:26:05 - End Time 2025-02-08 22:26:05 [2025-02-08 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432761', 'tblTempUsageDetail_20' ) start [2025-02-08 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432761', 'tblTempUsageDetail_20' ) end [2025-02-08 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432761', 'tblTempVendorCDR_20' ) start [2025-02-08 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432761', 'tblTempVendorCDR_20' ) end [2025-02-08 22:26:19] Production.INFO: ProcessCDR(1,14432761,1,1,2) [2025-02-08 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432761', 'tblTempUsageDetail_20' ) start [2025-02-08 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432761', 'tblTempUsageDetail_20' ) end [2025-02-08 22:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:26:24] Production.INFO: ==19535== Releasing lock... [2025-02-08 22:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:26:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:27:05 [end_date_ymd] => 2025-02-08 22:27:05 [RateCDR] => 1 ) [2025-02-08 22:27: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` >= '2025-02-08 19:27:05' and `end` < '2025-02-08 22:27: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 ,'') [2025-02-08 22:27:19] Production.INFO: count ==1821 [2025-02-08 22:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:27:05 - End Time 2025-02-08 22:27:05 [2025-02-08 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432766', 'tblTempUsageDetail_20' ) start [2025-02-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432766', 'tblTempUsageDetail_20' ) end [2025-02-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432766', 'tblTempVendorCDR_20' ) start [2025-02-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432766', 'tblTempVendorCDR_20' ) end [2025-02-08 22:27:19] Production.INFO: ProcessCDR(1,14432766,1,1,2) [2025-02-08 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432766', 'tblTempUsageDetail_20' ) start [2025-02-08 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432766', 'tblTempUsageDetail_20' ) end [2025-02-08 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:27:22] Production.INFO: ==19609== Releasing lock... [2025-02-08 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:27:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:28:05 [end_date_ymd] => 2025-02-08 22:28:05 [RateCDR] => 1 ) [2025-02-08 22:28: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` >= '2025-02-08 19:28:05' and `end` < '2025-02-08 22:28: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 ,'') [2025-02-08 22:28:18] Production.INFO: count ==1821 [2025-02-08 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:28:05 - End Time 2025-02-08 22:28:05 [2025-02-08 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432771', 'tblTempUsageDetail_20' ) start [2025-02-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432771', 'tblTempUsageDetail_20' ) end [2025-02-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432771', 'tblTempVendorCDR_20' ) start [2025-02-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432771', 'tblTempVendorCDR_20' ) end [2025-02-08 22:28:18] Production.INFO: ProcessCDR(1,14432771,1,1,2) [2025-02-08 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432771', 'tblTempUsageDetail_20' ) start [2025-02-08 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432771', 'tblTempUsageDetail_20' ) end [2025-02-08 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:28:21] Production.INFO: ==19687== Releasing lock... [2025-02-08 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:28:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:29:06 [end_date_ymd] => 2025-02-08 22:29:06 [RateCDR] => 1 ) [2025-02-08 22:29: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-02-08 19:29:06' and `end` < '2025-02-08 22:29: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-02-08 22:29:20] Production.INFO: count ==1821 [2025-02-08 22:29:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:29:06 - End Time 2025-02-08 22:29:06 [2025-02-08 22:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432776', 'tblTempUsageDetail_20' ) start [2025-02-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432776', 'tblTempUsageDetail_20' ) end [2025-02-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432776', 'tblTempVendorCDR_20' ) start [2025-02-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432776', 'tblTempVendorCDR_20' ) end [2025-02-08 22:29:20] Production.INFO: ProcessCDR(1,14432776,1,1,2) [2025-02-08 22:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432776', 'tblTempUsageDetail_20' ) start [2025-02-08 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432776', 'tblTempUsageDetail_20' ) end [2025-02-08 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:29:23] Production.INFO: ==19771== Releasing lock... [2025-02-08 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:29:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:30:06 [end_date_ymd] => 2025-02-08 22:30:06 [RateCDR] => 1 ) [2025-02-08 22:30: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-02-08 19:30:06' and `end` < '2025-02-08 22:30: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-02-08 22:30:19] Production.INFO: count ==1821 [2025-02-08 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:30:06 - End Time 2025-02-08 22:30:06 [2025-02-08 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432781', 'tblTempUsageDetail_20' ) start [2025-02-08 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432781', 'tblTempUsageDetail_20' ) end [2025-02-08 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432781', 'tblTempVendorCDR_20' ) start [2025-02-08 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432781', 'tblTempVendorCDR_20' ) end [2025-02-08 22:30:19] Production.INFO: ProcessCDR(1,14432781,1,1,2) [2025-02-08 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432781', 'tblTempUsageDetail_20' ) start [2025-02-08 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432781', 'tblTempUsageDetail_20' ) end [2025-02-08 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:30:23] Production.INFO: ==19845== Releasing lock... [2025-02-08 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:30:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:31:05 [end_date_ymd] => 2025-02-08 22:31:05 [RateCDR] => 1 ) [2025-02-08 22:31: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` >= '2025-02-08 19:31:05' and `end` < '2025-02-08 22:31: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 ,'') [2025-02-08 22:31:18] Production.INFO: count ==1806 [2025-02-08 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:31:05 - End Time 2025-02-08 22:31:05 [2025-02-08 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432787', 'tblTempUsageDetail_20' ) start [2025-02-08 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432787', 'tblTempUsageDetail_20' ) end [2025-02-08 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432787', 'tblTempVendorCDR_20' ) start [2025-02-08 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432787', 'tblTempVendorCDR_20' ) end [2025-02-08 22:31:19] Production.INFO: ProcessCDR(1,14432787,1,1,2) [2025-02-08 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432787', 'tblTempUsageDetail_20' ) start [2025-02-08 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432787', 'tblTempUsageDetail_20' ) end [2025-02-08 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:31:22] Production.INFO: ==19925== Releasing lock... [2025-02-08 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:31:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:32:05 [end_date_ymd] => 2025-02-08 22:32:05 [RateCDR] => 1 ) [2025-02-08 22:32: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` >= '2025-02-08 19:32:05' and `end` < '2025-02-08 22:32: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 ,'') [2025-02-08 22:32:18] Production.INFO: count ==1806 [2025-02-08 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:32:05 - End Time 2025-02-08 22:32:05 [2025-02-08 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432792', 'tblTempUsageDetail_20' ) start [2025-02-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432792', 'tblTempUsageDetail_20' ) end [2025-02-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432792', 'tblTempVendorCDR_20' ) start [2025-02-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432792', 'tblTempVendorCDR_20' ) end [2025-02-08 22:32:19] Production.INFO: ProcessCDR(1,14432792,1,1,2) [2025-02-08 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432792', 'tblTempUsageDetail_20' ) start [2025-02-08 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432792', 'tblTempUsageDetail_20' ) end [2025-02-08 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:32:22] Production.INFO: ==20037== Releasing lock... [2025-02-08 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:32:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:33:05 [end_date_ymd] => 2025-02-08 22:33:05 [RateCDR] => 1 ) [2025-02-08 22:33: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` >= '2025-02-08 19:33:05' and `end` < '2025-02-08 22:33: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 ,'') [2025-02-08 22:33:18] Production.INFO: count ==1803 [2025-02-08 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:33:05 - End Time 2025-02-08 22:33:05 [2025-02-08 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432797', 'tblTempUsageDetail_20' ) start [2025-02-08 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432797', 'tblTempUsageDetail_20' ) end [2025-02-08 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432797', 'tblTempVendorCDR_20' ) start [2025-02-08 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432797', 'tblTempVendorCDR_20' ) end [2025-02-08 22:33:19] Production.INFO: ProcessCDR(1,14432797,1,1,2) [2025-02-08 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432797', 'tblTempUsageDetail_20' ) start [2025-02-08 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432797', 'tblTempUsageDetail_20' ) end [2025-02-08 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:33:23] Production.INFO: ==20111== Releasing lock... [2025-02-08 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:33:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:34:04 [end_date_ymd] => 2025-02-08 22:34:04 [RateCDR] => 1 ) [2025-02-08 22:34:04] 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-02-08 19:34:04' and `end` < '2025-02-08 22:34:04' 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-02-08 22:34:18] Production.INFO: count ==1789 [2025-02-08 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:34:04 - End Time 2025-02-08 22:34:04 [2025-02-08 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432802', 'tblTempUsageDetail_20' ) start [2025-02-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432802', 'tblTempUsageDetail_20' ) end [2025-02-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432802', 'tblTempVendorCDR_20' ) start [2025-02-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432802', 'tblTempVendorCDR_20' ) end [2025-02-08 22:34:18] Production.INFO: ProcessCDR(1,14432802,1,1,2) [2025-02-08 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432802', 'tblTempUsageDetail_20' ) start [2025-02-08 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432802', 'tblTempUsageDetail_20' ) end [2025-02-08 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:34:21] Production.INFO: ==20188== Releasing lock... [2025-02-08 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:34:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:35:05 [end_date_ymd] => 2025-02-08 22:35:05 [RateCDR] => 1 ) [2025-02-08 22:35: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` >= '2025-02-08 19:35:05' and `end` < '2025-02-08 22:35: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 ,'') [2025-02-08 22:35:18] Production.INFO: count ==1796 [2025-02-08 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:35:05 - End Time 2025-02-08 22:35:05 [2025-02-08 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432807', 'tblTempUsageDetail_20' ) start [2025-02-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432807', 'tblTempUsageDetail_20' ) end [2025-02-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432807', 'tblTempVendorCDR_20' ) start [2025-02-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432807', 'tblTempVendorCDR_20' ) end [2025-02-08 22:35:19] Production.INFO: ProcessCDR(1,14432807,1,1,2) [2025-02-08 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432807', 'tblTempUsageDetail_20' ) start [2025-02-08 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432807', 'tblTempUsageDetail_20' ) end [2025-02-08 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:35:23] Production.INFO: ==20268== Releasing lock... [2025-02-08 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:35:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:36:05 [end_date_ymd] => 2025-02-08 22:36:05 [RateCDR] => 1 ) [2025-02-08 22:36: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` >= '2025-02-08 19:36:05' and `end` < '2025-02-08 22:36: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 ,'') [2025-02-08 22:36:18] Production.INFO: count ==1796 [2025-02-08 22:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:36:05 - End Time 2025-02-08 22:36:05 [2025-02-08 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432812', 'tblTempUsageDetail_20' ) start [2025-02-08 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432812', 'tblTempUsageDetail_20' ) end [2025-02-08 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432812', 'tblTempVendorCDR_20' ) start [2025-02-08 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432812', 'tblTempVendorCDR_20' ) end [2025-02-08 22:36:18] Production.INFO: ProcessCDR(1,14432812,1,1,2) [2025-02-08 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432812', 'tblTempUsageDetail_20' ) start [2025-02-08 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432812', 'tblTempUsageDetail_20' ) end [2025-02-08 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:36:23] Production.INFO: ==20345== Releasing lock... [2025-02-08 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:36:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:37:05 [end_date_ymd] => 2025-02-08 22:37:05 [RateCDR] => 1 ) [2025-02-08 22:37: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` >= '2025-02-08 19:37:05' and `end` < '2025-02-08 22:37: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 ,'') [2025-02-08 22:37:19] Production.INFO: count ==1800 [2025-02-08 22:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:37:05 - End Time 2025-02-08 22:37:05 [2025-02-08 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432817', 'tblTempUsageDetail_20' ) start [2025-02-08 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432817', 'tblTempUsageDetail_20' ) end [2025-02-08 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432817', 'tblTempVendorCDR_20' ) start [2025-02-08 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432817', 'tblTempVendorCDR_20' ) end [2025-02-08 22:37:19] Production.INFO: ProcessCDR(1,14432817,1,1,2) [2025-02-08 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432817', 'tblTempUsageDetail_20' ) start [2025-02-08 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432817', 'tblTempUsageDetail_20' ) end [2025-02-08 22:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:37:24] Production.INFO: ==20422== Releasing lock... [2025-02-08 22:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:37:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:38:04 [end_date_ymd] => 2025-02-08 22:38:04 [RateCDR] => 1 ) [2025-02-08 22:38:04] 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-02-08 19:38:04' and `end` < '2025-02-08 22:38:04' 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-02-08 22:38:18] Production.INFO: count ==1803 [2025-02-08 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:38:04 - End Time 2025-02-08 22:38:04 [2025-02-08 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432822', 'tblTempUsageDetail_20' ) start [2025-02-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432822', 'tblTempUsageDetail_20' ) end [2025-02-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432822', 'tblTempVendorCDR_20' ) start [2025-02-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432822', 'tblTempVendorCDR_20' ) end [2025-02-08 22:38:18] Production.INFO: ProcessCDR(1,14432822,1,1,2) [2025-02-08 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432822', 'tblTempUsageDetail_20' ) start [2025-02-08 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432822', 'tblTempUsageDetail_20' ) end [2025-02-08 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:38:22] Production.INFO: ==20501== Releasing lock... [2025-02-08 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:38:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:39:05 [end_date_ymd] => 2025-02-08 22:39:05 [RateCDR] => 1 ) [2025-02-08 22:39: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` >= '2025-02-08 19:39:05' and `end` < '2025-02-08 22:39: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 ,'') [2025-02-08 22:39:18] Production.INFO: count ==1803 [2025-02-08 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:39:05 - End Time 2025-02-08 22:39:05 [2025-02-08 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432827', 'tblTempUsageDetail_20' ) start [2025-02-08 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432827', 'tblTempUsageDetail_20' ) end [2025-02-08 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432827', 'tblTempVendorCDR_20' ) start [2025-02-08 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432827', 'tblTempVendorCDR_20' ) end [2025-02-08 22:39:19] Production.INFO: ProcessCDR(1,14432827,1,1,2) [2025-02-08 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432827', 'tblTempUsageDetail_20' ) start [2025-02-08 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432827', 'tblTempUsageDetail_20' ) end [2025-02-08 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:39:22] Production.INFO: ==20579== Releasing lock... [2025-02-08 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-08 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:40:06 [end_date_ymd] => 2025-02-08 22:40:06 [RateCDR] => 1 ) [2025-02-08 22:40: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-02-08 19:40:06' and `end` < '2025-02-08 22:40: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-02-08 22:40:19] Production.INFO: count ==1805 [2025-02-08 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:40:06 - End Time 2025-02-08 22:40:06 [2025-02-08 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432833', 'tblTempUsageDetail_20' ) start [2025-02-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432833', 'tblTempUsageDetail_20' ) end [2025-02-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432833', 'tblTempVendorCDR_20' ) start [2025-02-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432833', 'tblTempVendorCDR_20' ) end [2025-02-08 22:40:19] Production.INFO: ProcessCDR(1,14432833,1,1,2) [2025-02-08 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432833', 'tblTempUsageDetail_20' ) start [2025-02-08 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432833', 'tblTempUsageDetail_20' ) end [2025-02-08 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:40:23] Production.INFO: ==20660== Releasing lock... [2025-02-08 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:40:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-08 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:41:05 [end_date_ymd] => 2025-02-08 22:41:05 [RateCDR] => 1 ) [2025-02-08 22:41: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` >= '2025-02-08 19:41:05' and `end` < '2025-02-08 22:41: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 ,'') [2025-02-08 22:41:19] Production.INFO: count ==1781 [2025-02-08 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:41:05 - End Time 2025-02-08 22:41:05 [2025-02-08 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432838', 'tblTempUsageDetail_20' ) start [2025-02-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432838', 'tblTempUsageDetail_20' ) end [2025-02-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432838', 'tblTempVendorCDR_20' ) start [2025-02-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432838', 'tblTempVendorCDR_20' ) end [2025-02-08 22:41:19] Production.INFO: ProcessCDR(1,14432838,1,1,2) [2025-02-08 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432838', 'tblTempUsageDetail_20' ) start [2025-02-08 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432838', 'tblTempUsageDetail_20' ) end [2025-02-08 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:41:22] Production.INFO: ==20738== Releasing lock... [2025-02-08 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:41:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:42:06 [end_date_ymd] => 2025-02-08 22:42:06 [RateCDR] => 1 ) [2025-02-08 22:42: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-02-08 19:42:06' and `end` < '2025-02-08 22:42: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-02-08 22:42:19] Production.INFO: count ==1779 [2025-02-08 22:42:20] Production.ERROR: pbx CDR StartTime 2025-02-08 19:42:06 - End Time 2025-02-08 22:42:06 [2025-02-08 22:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432843', 'tblTempUsageDetail_20' ) start [2025-02-08 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432843', 'tblTempUsageDetail_20' ) end [2025-02-08 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432843', 'tblTempVendorCDR_20' ) start [2025-02-08 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432843', 'tblTempVendorCDR_20' ) end [2025-02-08 22:42:20] Production.INFO: ProcessCDR(1,14432843,1,1,2) [2025-02-08 22:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432843', 'tblTempUsageDetail_20' ) start [2025-02-08 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432843', 'tblTempUsageDetail_20' ) end [2025-02-08 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:42:25] Production.INFO: ==20821== Releasing lock... [2025-02-08 22:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:42:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:43:05 [end_date_ymd] => 2025-02-08 22:43:05 [RateCDR] => 1 ) [2025-02-08 22:43: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` >= '2025-02-08 19:43:05' and `end` < '2025-02-08 22:43: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 ,'') [2025-02-08 22:43:18] Production.INFO: count ==1779 [2025-02-08 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:43:05 - End Time 2025-02-08 22:43:05 [2025-02-08 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432848', 'tblTempUsageDetail_20' ) start [2025-02-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432848', 'tblTempUsageDetail_20' ) end [2025-02-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432848', 'tblTempVendorCDR_20' ) start [2025-02-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432848', 'tblTempVendorCDR_20' ) end [2025-02-08 22:43:18] Production.INFO: ProcessCDR(1,14432848,1,1,2) [2025-02-08 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432848', 'tblTempUsageDetail_20' ) start [2025-02-08 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432848', 'tblTempUsageDetail_20' ) end [2025-02-08 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:43:23] Production.INFO: ==20908== Releasing lock... [2025-02-08 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:43:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:44:05 [end_date_ymd] => 2025-02-08 22:44:05 [RateCDR] => 1 ) [2025-02-08 22:44: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` >= '2025-02-08 19:44:05' and `end` < '2025-02-08 22:44: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 ,'') [2025-02-08 22:44:18] Production.INFO: count ==1773 [2025-02-08 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:44:05 - End Time 2025-02-08 22:44:05 [2025-02-08 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432853', 'tblTempUsageDetail_20' ) start [2025-02-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432853', 'tblTempUsageDetail_20' ) end [2025-02-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432853', 'tblTempVendorCDR_20' ) start [2025-02-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432853', 'tblTempVendorCDR_20' ) end [2025-02-08 22:44:18] Production.INFO: ProcessCDR(1,14432853,1,1,2) [2025-02-08 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432853', 'tblTempUsageDetail_20' ) start [2025-02-08 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432853', 'tblTempUsageDetail_20' ) end [2025-02-08 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:44:21] Production.INFO: ==20984== Releasing lock... [2025-02-08 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:44:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:45:04 [end_date_ymd] => 2025-02-08 22:45:04 [RateCDR] => 1 ) [2025-02-08 22:45:04] 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-02-08 19:45:04' and `end` < '2025-02-08 22:45:04' 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-02-08 22:45:17] Production.INFO: count ==1769 [2025-02-08 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:45:04 - End Time 2025-02-08 22:45:04 [2025-02-08 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432858', 'tblTempUsageDetail_20' ) start [2025-02-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432858', 'tblTempUsageDetail_20' ) end [2025-02-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432858', 'tblTempVendorCDR_20' ) start [2025-02-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432858', 'tblTempVendorCDR_20' ) end [2025-02-08 22:45:18] Production.INFO: ProcessCDR(1,14432858,1,1,2) [2025-02-08 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432858', 'tblTempUsageDetail_20' ) start [2025-02-08 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432858', 'tblTempUsageDetail_20' ) end [2025-02-08 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:45:21] Production.INFO: ==21063== Releasing lock... [2025-02-08 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:45:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:46:06 [end_date_ymd] => 2025-02-08 22:46:06 [RateCDR] => 1 ) [2025-02-08 22:46: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-02-08 19:46:06' and `end` < '2025-02-08 22:46: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-02-08 22:46:19] Production.INFO: count ==1766 [2025-02-08 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:46:06 - End Time 2025-02-08 22:46:06 [2025-02-08 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432863', 'tblTempUsageDetail_20' ) start [2025-02-08 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432863', 'tblTempUsageDetail_20' ) end [2025-02-08 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432863', 'tblTempVendorCDR_20' ) start [2025-02-08 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432863', 'tblTempVendorCDR_20' ) end [2025-02-08 22:46:19] Production.INFO: ProcessCDR(1,14432863,1,1,2) [2025-02-08 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432863', 'tblTempUsageDetail_20' ) start [2025-02-08 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432863', 'tblTempUsageDetail_20' ) end [2025-02-08 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:46:22] Production.INFO: ==21141== Releasing lock... [2025-02-08 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:46:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:47:04 [end_date_ymd] => 2025-02-08 22:47:04 [RateCDR] => 1 ) [2025-02-08 22:47:04] 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-02-08 19:47:04' and `end` < '2025-02-08 22:47:04' 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-02-08 22:47:18] Production.INFO: count ==1766 [2025-02-08 22:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:47:04 - End Time 2025-02-08 22:47:04 [2025-02-08 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432868', 'tblTempUsageDetail_20' ) start [2025-02-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432868', 'tblTempUsageDetail_20' ) end [2025-02-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432868', 'tblTempVendorCDR_20' ) start [2025-02-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432868', 'tblTempVendorCDR_20' ) end [2025-02-08 22:47:19] Production.INFO: ProcessCDR(1,14432868,1,1,2) [2025-02-08 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432868', 'tblTempUsageDetail_20' ) start [2025-02-08 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432868', 'tblTempUsageDetail_20' ) end [2025-02-08 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:47:23] Production.INFO: ==21228== Releasing lock... [2025-02-08 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:47:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:48:05 [end_date_ymd] => 2025-02-08 22:48:05 [RateCDR] => 1 ) [2025-02-08 22:48: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` >= '2025-02-08 19:48:05' and `end` < '2025-02-08 22:48: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 ,'') [2025-02-08 22:48:18] Production.INFO: count ==1767 [2025-02-08 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:48:05 - End Time 2025-02-08 22:48:05 [2025-02-08 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432873', 'tblTempUsageDetail_20' ) start [2025-02-08 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432873', 'tblTempUsageDetail_20' ) end [2025-02-08 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432873', 'tblTempVendorCDR_20' ) start [2025-02-08 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432873', 'tblTempVendorCDR_20' ) end [2025-02-08 22:48:19] Production.INFO: ProcessCDR(1,14432873,1,1,2) [2025-02-08 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432873', 'tblTempUsageDetail_20' ) start [2025-02-08 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432873', 'tblTempUsageDetail_20' ) end [2025-02-08 22:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:48:24] Production.INFO: ==21344== Releasing lock... [2025-02-08 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:48:24] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:49:05 [end_date_ymd] => 2025-02-08 22:49:05 [RateCDR] => 1 ) [2025-02-08 22:49: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` >= '2025-02-08 19:49:05' and `end` < '2025-02-08 22:49: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 ,'') [2025-02-08 22:49:19] Production.INFO: count ==1762 [2025-02-08 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:49:05 - End Time 2025-02-08 22:49:05 [2025-02-08 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432878', 'tblTempUsageDetail_20' ) start [2025-02-08 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432878', 'tblTempUsageDetail_20' ) end [2025-02-08 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432878', 'tblTempVendorCDR_20' ) start [2025-02-08 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432878', 'tblTempVendorCDR_20' ) end [2025-02-08 22:49:20] Production.INFO: ProcessCDR(1,14432878,1,1,2) [2025-02-08 22:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432878', 'tblTempUsageDetail_20' ) start [2025-02-08 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432878', 'tblTempUsageDetail_20' ) end [2025-02-08 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:49:23] Production.INFO: ==21426== Releasing lock... [2025-02-08 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:49:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:50:05 [end_date_ymd] => 2025-02-08 22:50:05 [RateCDR] => 1 ) [2025-02-08 22:50: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` >= '2025-02-08 19:50:05' and `end` < '2025-02-08 22:50: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 ,'') [2025-02-08 22:50:18] Production.INFO: count ==1761 [2025-02-08 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:50:05 - End Time 2025-02-08 22:50:05 [2025-02-08 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432883', 'tblTempUsageDetail_20' ) start [2025-02-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432883', 'tblTempUsageDetail_20' ) end [2025-02-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432883', 'tblTempVendorCDR_20' ) start [2025-02-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432883', 'tblTempVendorCDR_20' ) end [2025-02-08 22:50:19] Production.INFO: ProcessCDR(1,14432883,1,1,2) [2025-02-08 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432883', 'tblTempUsageDetail_20' ) start [2025-02-08 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432883', 'tblTempUsageDetail_20' ) end [2025-02-08 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:50:22] Production.INFO: ==21509== Releasing lock... [2025-02-08 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:50:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-08 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:51:05 [end_date_ymd] => 2025-02-08 22:51:05 [RateCDR] => 1 ) [2025-02-08 22:51: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` >= '2025-02-08 19:51:05' and `end` < '2025-02-08 22:51: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 ,'') [2025-02-08 22:51:18] Production.INFO: count ==1725 [2025-02-08 22:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:51:05 - End Time 2025-02-08 22:51:05 [2025-02-08 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432889', 'tblTempUsageDetail_20' ) start [2025-02-08 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432889', 'tblTempUsageDetail_20' ) end [2025-02-08 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432889', 'tblTempVendorCDR_20' ) start [2025-02-08 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432889', 'tblTempVendorCDR_20' ) end [2025-02-08 22:51:19] Production.INFO: ProcessCDR(1,14432889,1,1,2) [2025-02-08 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432889', 'tblTempUsageDetail_20' ) start [2025-02-08 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432889', 'tblTempUsageDetail_20' ) end [2025-02-08 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:51:22] Production.INFO: ==21589== Releasing lock... [2025-02-08 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:51:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:52:05 [end_date_ymd] => 2025-02-08 22:52:05 [RateCDR] => 1 ) [2025-02-08 22:52: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` >= '2025-02-08 19:52:05' and `end` < '2025-02-08 22:52: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 ,'') [2025-02-08 22:52:19] Production.INFO: count ==1721 [2025-02-08 22:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:52:05 - End Time 2025-02-08 22:52:05 [2025-02-08 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432894', 'tblTempUsageDetail_20' ) start [2025-02-08 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432894', 'tblTempUsageDetail_20' ) end [2025-02-08 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432894', 'tblTempVendorCDR_20' ) start [2025-02-08 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432894', 'tblTempVendorCDR_20' ) end [2025-02-08 22:52:19] Production.INFO: ProcessCDR(1,14432894,1,1,2) [2025-02-08 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432894', 'tblTempUsageDetail_20' ) start [2025-02-08 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432894', 'tblTempUsageDetail_20' ) end [2025-02-08 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:52:22] Production.INFO: ==21668== Releasing lock... [2025-02-08 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:52:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:53:05 [end_date_ymd] => 2025-02-08 22:53:05 [RateCDR] => 1 ) [2025-02-08 22:53: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` >= '2025-02-08 19:53:05' and `end` < '2025-02-08 22:53: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 ,'') [2025-02-08 22:53:19] Production.INFO: count ==1717 [2025-02-08 22:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:53:05 - End Time 2025-02-08 22:53:05 [2025-02-08 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432899', 'tblTempUsageDetail_20' ) start [2025-02-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432899', 'tblTempUsageDetail_20' ) end [2025-02-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432899', 'tblTempVendorCDR_20' ) start [2025-02-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432899', 'tblTempVendorCDR_20' ) end [2025-02-08 22:53:20] Production.INFO: ProcessCDR(1,14432899,1,1,2) [2025-02-08 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432899', 'tblTempUsageDetail_20' ) start [2025-02-08 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432899', 'tblTempUsageDetail_20' ) end [2025-02-08 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:53:23] Production.INFO: ==21753== Releasing lock... [2025-02-08 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:53:23] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:54:05 [end_date_ymd] => 2025-02-08 22:54:05 [RateCDR] => 1 ) [2025-02-08 22:54: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` >= '2025-02-08 19:54:05' and `end` < '2025-02-08 22:54: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 ,'') [2025-02-08 22:54:18] Production.INFO: count ==1717 [2025-02-08 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:54:05 - End Time 2025-02-08 22:54:05 [2025-02-08 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432904', 'tblTempUsageDetail_20' ) start [2025-02-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432904', 'tblTempUsageDetail_20' ) end [2025-02-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432904', 'tblTempVendorCDR_20' ) start [2025-02-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432904', 'tblTempVendorCDR_20' ) end [2025-02-08 22:54:19] Production.INFO: ProcessCDR(1,14432904,1,1,2) [2025-02-08 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432904', 'tblTempUsageDetail_20' ) start [2025-02-08 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432904', 'tblTempUsageDetail_20' ) end [2025-02-08 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:54:22] Production.INFO: ==21827== Releasing lock... [2025-02-08 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:54:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:55:05 [end_date_ymd] => 2025-02-08 22:55:05 [RateCDR] => 1 ) [2025-02-08 22:55: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` >= '2025-02-08 19:55:05' and `end` < '2025-02-08 22:55: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 ,'') [2025-02-08 22:55:18] Production.INFO: count ==1719 [2025-02-08 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:55:05 - End Time 2025-02-08 22:55:05 [2025-02-08 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432909', 'tblTempUsageDetail_20' ) start [2025-02-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432909', 'tblTempUsageDetail_20' ) end [2025-02-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432909', 'tblTempVendorCDR_20' ) start [2025-02-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432909', 'tblTempVendorCDR_20' ) end [2025-02-08 22:55:18] Production.INFO: ProcessCDR(1,14432909,1,1,2) [2025-02-08 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432909', 'tblTempUsageDetail_20' ) start [2025-02-08 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432909', 'tblTempUsageDetail_20' ) end [2025-02-08 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:55:22] Production.INFO: ==21903== Releasing lock... [2025-02-08 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:55:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:56:05 [end_date_ymd] => 2025-02-08 22:56:05 [RateCDR] => 1 ) [2025-02-08 22:56: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` >= '2025-02-08 19:56:05' and `end` < '2025-02-08 22:56: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 ,'') [2025-02-08 22:56:18] Production.INFO: count ==1718 [2025-02-08 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:56:05 - End Time 2025-02-08 22:56:05 [2025-02-08 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432914', 'tblTempUsageDetail_20' ) start [2025-02-08 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432914', 'tblTempUsageDetail_20' ) end [2025-02-08 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432914', 'tblTempVendorCDR_20' ) start [2025-02-08 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432914', 'tblTempVendorCDR_20' ) end [2025-02-08 22:56:19] Production.INFO: ProcessCDR(1,14432914,1,1,2) [2025-02-08 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432914', 'tblTempUsageDetail_20' ) start [2025-02-08 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432914', 'tblTempUsageDetail_20' ) end [2025-02-08 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:56:22] Production.INFO: ==21986== Releasing lock... [2025-02-08 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:56:22] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:57:05 [end_date_ymd] => 2025-02-08 22:57:05 [RateCDR] => 1 ) [2025-02-08 22:57: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` >= '2025-02-08 19:57:05' and `end` < '2025-02-08 22:57: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 ,'') [2025-02-08 22:57:18] Production.INFO: count ==1712 [2025-02-08 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:57:05 - End Time 2025-02-08 22:57:05 [2025-02-08 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432919', 'tblTempUsageDetail_20' ) start [2025-02-08 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432919', 'tblTempUsageDetail_20' ) end [2025-02-08 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432919', 'tblTempVendorCDR_20' ) start [2025-02-08 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432919', 'tblTempVendorCDR_20' ) end [2025-02-08 22:57:19] Production.INFO: ProcessCDR(1,14432919,1,1,2) [2025-02-08 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432919', 'tblTempUsageDetail_20' ) start [2025-02-08 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432919', 'tblTempUsageDetail_20' ) end [2025-02-08 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:57:22] Production.INFO: ==22068== Releasing lock... [2025-02-08 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:57:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:58:04 [end_date_ymd] => 2025-02-08 22:58:04 [RateCDR] => 1 ) [2025-02-08 22:58:04] 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-02-08 19:58:04' and `end` < '2025-02-08 22:58:04' 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-02-08 22:58:17] Production.INFO: count ==1706 [2025-02-08 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 19:58:04 - End Time 2025-02-08 22:58:04 [2025-02-08 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432924', 'tblTempUsageDetail_20' ) start [2025-02-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432924', 'tblTempUsageDetail_20' ) end [2025-02-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432924', 'tblTempVendorCDR_20' ) start [2025-02-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432924', 'tblTempVendorCDR_20' ) end [2025-02-08 22:58:18] Production.INFO: ProcessCDR(1,14432924,1,1,2) [2025-02-08 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432924', 'tblTempUsageDetail_20' ) start [2025-02-08 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432924', 'tblTempUsageDetail_20' ) end [2025-02-08 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:58:21] Production.INFO: ==22149== Releasing lock... [2025-02-08 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:58:21] Production.INFO: 41 MB #Memory Used# [2025-02-08 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 19:59:05 [end_date_ymd] => 2025-02-08 22:59:05 [RateCDR] => 1 ) [2025-02-08 22:59: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` >= '2025-02-08 19:59:05' and `end` < '2025-02-08 22:59: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 ,'') [2025-02-08 22:59:19] Production.INFO: count ==1704 [2025-02-08 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 19:59:05 - End Time 2025-02-08 22:59:05 [2025-02-08 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432929', 'tblTempUsageDetail_20' ) start [2025-02-08 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432929', 'tblTempUsageDetail_20' ) end [2025-02-08 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432929', 'tblTempVendorCDR_20' ) start [2025-02-08 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432929', 'tblTempVendorCDR_20' ) end [2025-02-08 22:59:19] Production.INFO: ProcessCDR(1,14432929,1,1,2) [2025-02-08 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 22:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432929', 'tblTempUsageDetail_20' ) start [2025-02-08 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432929', 'tblTempUsageDetail_20' ) end [2025-02-08 22:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 22:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 22:59:24] Production.INFO: ==22228== Releasing lock... [2025-02-08 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 22:59:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:00:06 [end_date_ymd] => 2025-02-08 23:00:06 [RateCDR] => 1 ) [2025-02-08 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 20:00:06' and `end` < '2025-02-08 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 23:00:19] Production.INFO: count ==1705 [2025-02-08 23:00:20] Production.ERROR: pbx CDR StartTime 2025-02-08 20:00:06 - End Time 2025-02-08 23:00:06 [2025-02-08 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432934', 'tblTempUsageDetail_20' ) start [2025-02-08 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432934', 'tblTempUsageDetail_20' ) end [2025-02-08 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432934', 'tblTempVendorCDR_20' ) start [2025-02-08 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432934', 'tblTempVendorCDR_20' ) end [2025-02-08 23:00:20] Production.INFO: ProcessCDR(1,14432934,1,1,2) [2025-02-08 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432934', 'tblTempUsageDetail_20' ) start [2025-02-08 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432934', 'tblTempUsageDetail_20' ) end [2025-02-08 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:00:23] Production.INFO: ==22315== Releasing lock... [2025-02-08 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:01:05 [end_date_ymd] => 2025-02-08 23:01:05 [RateCDR] => 1 ) [2025-02-08 23: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` >= '2025-02-08 20:01:05' and `end` < '2025-02-08 23: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 ,'') [2025-02-08 23:01:18] Production.INFO: count ==1696 [2025-02-08 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:01:05 - End Time 2025-02-08 23:01:05 [2025-02-08 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432940', 'tblTempUsageDetail_20' ) start [2025-02-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432940', 'tblTempUsageDetail_20' ) end [2025-02-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432940', 'tblTempVendorCDR_20' ) start [2025-02-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432940', 'tblTempVendorCDR_20' ) end [2025-02-08 23:01:19] Production.INFO: ProcessCDR(1,14432940,1,1,2) [2025-02-08 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432940', 'tblTempUsageDetail_20' ) start [2025-02-08 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432940', 'tblTempUsageDetail_20' ) end [2025-02-08 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:01:22] Production.INFO: ==22407== Releasing lock... [2025-02-08 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:01:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:02:05 [end_date_ymd] => 2025-02-08 23:02:05 [RateCDR] => 1 ) [2025-02-08 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 20:02:05' and `end` < '2025-02-08 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-08 23:02:19] Production.INFO: count ==1694 [2025-02-08 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:02:05 - End Time 2025-02-08 23:02:05 [2025-02-08 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432945', 'tblTempUsageDetail_20' ) start [2025-02-08 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432945', 'tblTempUsageDetail_20' ) end [2025-02-08 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432945', 'tblTempVendorCDR_20' ) start [2025-02-08 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432945', 'tblTempVendorCDR_20' ) end [2025-02-08 23:02:19] Production.INFO: ProcessCDR(1,14432945,1,1,2) [2025-02-08 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432945', 'tblTempUsageDetail_20' ) start [2025-02-08 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432945', 'tblTempUsageDetail_20' ) end [2025-02-08 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:02:22] Production.INFO: ==22565== Releasing lock... [2025-02-08 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:02:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:03:04 [end_date_ymd] => 2025-02-08 23:03:04 [RateCDR] => 1 ) [2025-02-08 23:03:04] 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-02-08 20:03:04' and `end` < '2025-02-08 23:03:04' 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-02-08 23:03:17] Production.INFO: count ==1692 [2025-02-08 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:03:04 - End Time 2025-02-08 23:03:04 [2025-02-08 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432950', 'tblTempUsageDetail_20' ) start [2025-02-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432950', 'tblTempUsageDetail_20' ) end [2025-02-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432950', 'tblTempVendorCDR_20' ) start [2025-02-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432950', 'tblTempVendorCDR_20' ) end [2025-02-08 23:03:18] Production.INFO: ProcessCDR(1,14432950,1,1,2) [2025-02-08 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432950', 'tblTempUsageDetail_20' ) start [2025-02-08 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432950', 'tblTempUsageDetail_20' ) end [2025-02-08 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:03:21] Production.INFO: ==22689== Releasing lock... [2025-02-08 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:03:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:04:05 [end_date_ymd] => 2025-02-08 23:04:05 [RateCDR] => 1 ) [2025-02-08 23:04: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` >= '2025-02-08 20:04:05' and `end` < '2025-02-08 23:04: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 ,'') [2025-02-08 23:04:18] Production.INFO: count ==1690 [2025-02-08 23:04:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:04:05 - End Time 2025-02-08 23:04:05 [2025-02-08 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432955', 'tblTempUsageDetail_20' ) start [2025-02-08 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432955', 'tblTempUsageDetail_20' ) end [2025-02-08 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432955', 'tblTempVendorCDR_20' ) start [2025-02-08 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432955', 'tblTempVendorCDR_20' ) end [2025-02-08 23:04:19] Production.INFO: ProcessCDR(1,14432955,1,1,2) [2025-02-08 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432955', 'tblTempUsageDetail_20' ) start [2025-02-08 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432955', 'tblTempUsageDetail_20' ) end [2025-02-08 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:04:22] Production.INFO: ==22775== Releasing lock... [2025-02-08 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:04:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:05:04 [end_date_ymd] => 2025-02-08 23:05:04 [RateCDR] => 1 ) [2025-02-08 23:05:04] 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-02-08 20:05:04' and `end` < '2025-02-08 23:05:04' 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-02-08 23:05:18] Production.INFO: count ==1690 [2025-02-08 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:05:04 - End Time 2025-02-08 23:05:04 [2025-02-08 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432960', 'tblTempUsageDetail_20' ) start [2025-02-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432960', 'tblTempUsageDetail_20' ) end [2025-02-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432960', 'tblTempVendorCDR_20' ) start [2025-02-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432960', 'tblTempVendorCDR_20' ) end [2025-02-08 23:05:18] Production.INFO: ProcessCDR(1,14432960,1,1,2) [2025-02-08 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432960', 'tblTempUsageDetail_20' ) start [2025-02-08 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432960', 'tblTempUsageDetail_20' ) end [2025-02-08 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:05:21] Production.INFO: ==22930== Releasing lock... [2025-02-08 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:05:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:06:05 [end_date_ymd] => 2025-02-08 23:06:05 [RateCDR] => 1 ) [2025-02-08 23:06: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` >= '2025-02-08 20:06:05' and `end` < '2025-02-08 23:06: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 ,'') [2025-02-08 23:06:18] Production.INFO: count ==1690 [2025-02-08 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:06:05 - End Time 2025-02-08 23:06:05 [2025-02-08 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432965', 'tblTempUsageDetail_20' ) start [2025-02-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432965', 'tblTempUsageDetail_20' ) end [2025-02-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432965', 'tblTempVendorCDR_20' ) start [2025-02-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432965', 'tblTempVendorCDR_20' ) end [2025-02-08 23:06:19] Production.INFO: ProcessCDR(1,14432965,1,1,2) [2025-02-08 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432965', 'tblTempUsageDetail_20' ) start [2025-02-08 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432965', 'tblTempUsageDetail_20' ) end [2025-02-08 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:06:22] Production.INFO: ==23009== Releasing lock... [2025-02-08 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:06:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:07:05 [end_date_ymd] => 2025-02-08 23:07:05 [RateCDR] => 1 ) [2025-02-08 23:07: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` >= '2025-02-08 20:07:05' and `end` < '2025-02-08 23:07: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 ,'') [2025-02-08 23:07:18] Production.INFO: count ==1689 [2025-02-08 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:07:05 - End Time 2025-02-08 23:07:05 [2025-02-08 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432970', 'tblTempUsageDetail_20' ) start [2025-02-08 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432970', 'tblTempUsageDetail_20' ) end [2025-02-08 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432970', 'tblTempVendorCDR_20' ) start [2025-02-08 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432970', 'tblTempVendorCDR_20' ) end [2025-02-08 23:07:19] Production.INFO: ProcessCDR(1,14432970,1,1,2) [2025-02-08 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432970', 'tblTempUsageDetail_20' ) start [2025-02-08 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432970', 'tblTempUsageDetail_20' ) end [2025-02-08 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:07:22] Production.INFO: ==23088== Releasing lock... [2025-02-08 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:07:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:08:05 [end_date_ymd] => 2025-02-08 23:08:05 [RateCDR] => 1 ) [2025-02-08 23:08: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` >= '2025-02-08 20:08:05' and `end` < '2025-02-08 23:08: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 ,'') [2025-02-08 23:08:19] Production.INFO: count ==1683 [2025-02-08 23:08:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:08:05 - End Time 2025-02-08 23:08:05 [2025-02-08 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432975', 'tblTempUsageDetail_20' ) start [2025-02-08 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432975', 'tblTempUsageDetail_20' ) end [2025-02-08 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432975', 'tblTempVendorCDR_20' ) start [2025-02-08 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432975', 'tblTempVendorCDR_20' ) end [2025-02-08 23:08:19] Production.INFO: ProcessCDR(1,14432975,1,1,2) [2025-02-08 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432975', 'tblTempUsageDetail_20' ) start [2025-02-08 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432975', 'tblTempUsageDetail_20' ) end [2025-02-08 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:08:22] Production.INFO: ==23210== Releasing lock... [2025-02-08 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:08:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-08 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:09:05 [end_date_ymd] => 2025-02-08 23:09:05 [RateCDR] => 1 ) [2025-02-08 23:09: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` >= '2025-02-08 20:09:05' and `end` < '2025-02-08 23:09: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 ,'') [2025-02-08 23:09:20] Production.INFO: count ==1679 [2025-02-08 23:09:20] Production.ERROR: pbx CDR StartTime 2025-02-08 20:09:05 - End Time 2025-02-08 23:09:05 [2025-02-08 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432980', 'tblTempUsageDetail_20' ) start [2025-02-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432980', 'tblTempUsageDetail_20' ) end [2025-02-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432980', 'tblTempVendorCDR_20' ) start [2025-02-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432980', 'tblTempVendorCDR_20' ) end [2025-02-08 23:09:20] Production.INFO: ProcessCDR(1,14432980,1,1,2) [2025-02-08 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432980', 'tblTempUsageDetail_20' ) start [2025-02-08 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432980', 'tblTempUsageDetail_20' ) end [2025-02-08 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:09:23] Production.INFO: ==23334== Releasing lock... [2025-02-08 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:10:05 [end_date_ymd] => 2025-02-08 23:10:05 [RateCDR] => 1 ) [2025-02-08 23:10: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` >= '2025-02-08 20:10:05' and `end` < '2025-02-08 23:10: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 ,'') [2025-02-08 23:10:18] Production.INFO: count ==1678 [2025-02-08 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:10:05 - End Time 2025-02-08 23:10:05 [2025-02-08 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432986', 'tblTempUsageDetail_20' ) start [2025-02-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432986', 'tblTempUsageDetail_20' ) end [2025-02-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432986', 'tblTempVendorCDR_20' ) start [2025-02-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432986', 'tblTempVendorCDR_20' ) end [2025-02-08 23:10:19] Production.INFO: ProcessCDR(1,14432986,1,1,2) [2025-02-08 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432986', 'tblTempUsageDetail_20' ) start [2025-02-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432986', 'tblTempUsageDetail_20' ) end [2025-02-08 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:10:22] Production.INFO: ==23427== Releasing lock... [2025-02-08 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:10:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:11:05 [end_date_ymd] => 2025-02-08 23:11:05 [RateCDR] => 1 ) [2025-02-08 23:11: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` >= '2025-02-08 20:11:05' and `end` < '2025-02-08 23:11: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 ,'') [2025-02-08 23:11:20] Production.INFO: count ==1660 [2025-02-08 23:11:20] Production.ERROR: pbx CDR StartTime 2025-02-08 20:11:05 - End Time 2025-02-08 23:11:05 [2025-02-08 23:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432991', 'tblTempUsageDetail_20' ) start [2025-02-08 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432991', 'tblTempUsageDetail_20' ) end [2025-02-08 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432991', 'tblTempVendorCDR_20' ) start [2025-02-08 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432991', 'tblTempVendorCDR_20' ) end [2025-02-08 23:11:20] Production.INFO: ProcessCDR(1,14432991,1,1,2) [2025-02-08 23:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432991', 'tblTempUsageDetail_20' ) start [2025-02-08 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432991', 'tblTempUsageDetail_20' ) end [2025-02-08 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:11:23] Production.INFO: ==23544== Releasing lock... [2025-02-08 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:11:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:12:05 [end_date_ymd] => 2025-02-08 23:12:05 [RateCDR] => 1 ) [2025-02-08 23:12: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` >= '2025-02-08 20:12:05' and `end` < '2025-02-08 23:12: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 ,'') [2025-02-08 23:12:18] Production.INFO: count ==1653 [2025-02-08 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:12:05 - End Time 2025-02-08 23:12:05 [2025-02-08 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432996', 'tblTempUsageDetail_20' ) start [2025-02-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14432996', 'tblTempUsageDetail_20' ) end [2025-02-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432996', 'tblTempVendorCDR_20' ) start [2025-02-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14432996', 'tblTempVendorCDR_20' ) end [2025-02-08 23:12:18] Production.INFO: ProcessCDR(1,14432996,1,1,2) [2025-02-08 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14432996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14432996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14432996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14432996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432996', 'tblTempUsageDetail_20' ) start [2025-02-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14432996', 'tblTempUsageDetail_20' ) end [2025-02-08 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:12:21] Production.INFO: ==23730== Releasing lock... [2025-02-08 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:12:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:13:05 [end_date_ymd] => 2025-02-08 23:13:05 [RateCDR] => 1 ) [2025-02-08 23:13: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` >= '2025-02-08 20:13:05' and `end` < '2025-02-08 23:13: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 ,'') [2025-02-08 23:13:18] Production.INFO: count ==1648 [2025-02-08 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:13:05 - End Time 2025-02-08 23:13:05 [2025-02-08 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433001', 'tblTempUsageDetail_20' ) start [2025-02-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433001', 'tblTempUsageDetail_20' ) end [2025-02-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433001', 'tblTempVendorCDR_20' ) start [2025-02-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433001', 'tblTempVendorCDR_20' ) end [2025-02-08 23:13:18] Production.INFO: ProcessCDR(1,14433001,1,1,2) [2025-02-08 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433001', 'tblTempUsageDetail_20' ) start [2025-02-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433001', 'tblTempUsageDetail_20' ) end [2025-02-08 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:13:21] Production.INFO: ==23845== Releasing lock... [2025-02-08 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:13:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:14:04 [end_date_ymd] => 2025-02-08 23:14:04 [RateCDR] => 1 ) [2025-02-08 23:14:04] 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-02-08 20:14:04' and `end` < '2025-02-08 23:14:04' 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-02-08 23:14:18] Production.INFO: count ==1644 [2025-02-08 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:14:04 - End Time 2025-02-08 23:14:04 [2025-02-08 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433006', 'tblTempUsageDetail_20' ) start [2025-02-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433006', 'tblTempUsageDetail_20' ) end [2025-02-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433006', 'tblTempVendorCDR_20' ) start [2025-02-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433006', 'tblTempVendorCDR_20' ) end [2025-02-08 23:14:18] Production.INFO: ProcessCDR(1,14433006,1,1,2) [2025-02-08 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433006', 'tblTempUsageDetail_20' ) start [2025-02-08 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433006', 'tblTempUsageDetail_20' ) end [2025-02-08 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:14:21] Production.INFO: ==23955== Releasing lock... [2025-02-08 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:14:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:15:05 [end_date_ymd] => 2025-02-08 23:15:05 [RateCDR] => 1 ) [2025-02-08 23:15: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` >= '2025-02-08 20:15:05' and `end` < '2025-02-08 23:15: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 ,'') [2025-02-08 23:15:18] Production.INFO: count ==1648 [2025-02-08 23:15:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:15:05 - End Time 2025-02-08 23:15:05 [2025-02-08 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433011', 'tblTempUsageDetail_20' ) start [2025-02-08 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433011', 'tblTempUsageDetail_20' ) end [2025-02-08 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433011', 'tblTempVendorCDR_20' ) start [2025-02-08 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433011', 'tblTempVendorCDR_20' ) end [2025-02-08 23:15:19] Production.INFO: ProcessCDR(1,14433011,1,1,2) [2025-02-08 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433011', 'tblTempUsageDetail_20' ) start [2025-02-08 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433011', 'tblTempUsageDetail_20' ) end [2025-02-08 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:15:22] Production.INFO: ==24101== Releasing lock... [2025-02-08 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:16:05 [end_date_ymd] => 2025-02-08 23:16:05 [RateCDR] => 1 ) [2025-02-08 23:16: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` >= '2025-02-08 20:16:05' and `end` < '2025-02-08 23:16: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 ,'') [2025-02-08 23:16:18] Production.INFO: count ==1643 [2025-02-08 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:16:05 - End Time 2025-02-08 23:16:05 [2025-02-08 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433016', 'tblTempUsageDetail_20' ) start [2025-02-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433016', 'tblTempUsageDetail_20' ) end [2025-02-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433016', 'tblTempVendorCDR_20' ) start [2025-02-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433016', 'tblTempVendorCDR_20' ) end [2025-02-08 23:16:18] Production.INFO: ProcessCDR(1,14433016,1,1,2) [2025-02-08 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433016', 'tblTempUsageDetail_20' ) start [2025-02-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433016', 'tblTempUsageDetail_20' ) end [2025-02-08 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:16:21] Production.INFO: ==24253== Releasing lock... [2025-02-08 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:16:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:17:05 [end_date_ymd] => 2025-02-08 23:17:05 [RateCDR] => 1 ) [2025-02-08 23:17: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` >= '2025-02-08 20:17:05' and `end` < '2025-02-08 23:17: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 ,'') [2025-02-08 23:17:18] Production.INFO: count ==1640 [2025-02-08 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:17:05 - End Time 2025-02-08 23:17:05 [2025-02-08 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433021', 'tblTempUsageDetail_20' ) start [2025-02-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433021', 'tblTempUsageDetail_20' ) end [2025-02-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433021', 'tblTempVendorCDR_20' ) start [2025-02-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433021', 'tblTempVendorCDR_20' ) end [2025-02-08 23:17:18] Production.INFO: ProcessCDR(1,14433021,1,1,2) [2025-02-08 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433021', 'tblTempUsageDetail_20' ) start [2025-02-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433021', 'tblTempUsageDetail_20' ) end [2025-02-08 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:17:21] Production.INFO: ==24365== Releasing lock... [2025-02-08 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:17:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:18:05 [end_date_ymd] => 2025-02-08 23:18:05 [RateCDR] => 1 ) [2025-02-08 23:18: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` >= '2025-02-08 20:18:05' and `end` < '2025-02-08 23:18: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 ,'') [2025-02-08 23:18:19] Production.INFO: count ==1628 [2025-02-08 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:18:05 - End Time 2025-02-08 23:18:05 [2025-02-08 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433026', 'tblTempUsageDetail_20' ) start [2025-02-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433026', 'tblTempUsageDetail_20' ) end [2025-02-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433026', 'tblTempVendorCDR_20' ) start [2025-02-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433026', 'tblTempVendorCDR_20' ) end [2025-02-08 23:18:19] Production.INFO: ProcessCDR(1,14433026,1,1,2) [2025-02-08 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433026', 'tblTempUsageDetail_20' ) start [2025-02-08 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433026', 'tblTempUsageDetail_20' ) end [2025-02-08 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:18:22] Production.INFO: ==24465== Releasing lock... [2025-02-08 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:18:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:19:05 [end_date_ymd] => 2025-02-08 23:19:05 [RateCDR] => 1 ) [2025-02-08 23:19: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` >= '2025-02-08 20:19:05' and `end` < '2025-02-08 23:19: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 ,'') [2025-02-08 23:19:18] Production.INFO: count ==1628 [2025-02-08 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:19:05 - End Time 2025-02-08 23:19:05 [2025-02-08 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433031', 'tblTempUsageDetail_20' ) start [2025-02-08 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433031', 'tblTempUsageDetail_20' ) end [2025-02-08 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433031', 'tblTempVendorCDR_20' ) start [2025-02-08 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433031', 'tblTempVendorCDR_20' ) end [2025-02-08 23:19:19] Production.INFO: ProcessCDR(1,14433031,1,1,2) [2025-02-08 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433031', 'tblTempUsageDetail_20' ) start [2025-02-08 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433031', 'tblTempUsageDetail_20' ) end [2025-02-08 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:19:22] Production.INFO: ==24612== Releasing lock... [2025-02-08 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:20:06 [end_date_ymd] => 2025-02-08 23:20:06 [RateCDR] => 1 ) [2025-02-08 23:20: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-02-08 20:20:06' and `end` < '2025-02-08 23:20: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-02-08 23:20:19] Production.INFO: count ==1625 [2025-02-08 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:20:06 - End Time 2025-02-08 23:20:06 [2025-02-08 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433037', 'tblTempUsageDetail_20' ) start [2025-02-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433037', 'tblTempUsageDetail_20' ) end [2025-02-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433037', 'tblTempVendorCDR_20' ) start [2025-02-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433037', 'tblTempVendorCDR_20' ) end [2025-02-08 23:20:19] Production.INFO: ProcessCDR(1,14433037,1,1,2) [2025-02-08 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433037', 'tblTempUsageDetail_20' ) start [2025-02-08 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433037', 'tblTempUsageDetail_20' ) end [2025-02-08 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:20:23] Production.INFO: ==24721== Releasing lock... [2025-02-08 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:20:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:21:05 [end_date_ymd] => 2025-02-08 23:21:05 [RateCDR] => 1 ) [2025-02-08 23:21: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` >= '2025-02-08 20:21:05' and `end` < '2025-02-08 23:21: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 ,'') [2025-02-08 23:21:18] Production.INFO: count ==1614 [2025-02-08 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:21:05 - End Time 2025-02-08 23:21:05 [2025-02-08 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433042', 'tblTempUsageDetail_20' ) start [2025-02-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433042', 'tblTempUsageDetail_20' ) end [2025-02-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433042', 'tblTempVendorCDR_20' ) start [2025-02-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433042', 'tblTempVendorCDR_20' ) end [2025-02-08 23:21:18] Production.INFO: ProcessCDR(1,14433042,1,1,2) [2025-02-08 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433042', 'tblTempUsageDetail_20' ) start [2025-02-08 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433042', 'tblTempUsageDetail_20' ) end [2025-02-08 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:21:22] Production.INFO: ==24831== Releasing lock... [2025-02-08 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-08 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:22:05 [end_date_ymd] => 2025-02-08 23:22:05 [RateCDR] => 1 ) [2025-02-08 23:22: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` >= '2025-02-08 20:22:05' and `end` < '2025-02-08 23:22: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 ,'') [2025-02-08 23:22:18] Production.INFO: count ==1610 [2025-02-08 23:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:22:05 - End Time 2025-02-08 23:22:05 [2025-02-08 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433047', 'tblTempUsageDetail_20' ) start [2025-02-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433047', 'tblTempUsageDetail_20' ) end [2025-02-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433047', 'tblTempVendorCDR_20' ) start [2025-02-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433047', 'tblTempVendorCDR_20' ) end [2025-02-08 23:22:19] Production.INFO: ProcessCDR(1,14433047,1,1,2) [2025-02-08 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433047', 'tblTempUsageDetail_20' ) start [2025-02-08 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433047', 'tblTempUsageDetail_20' ) end [2025-02-08 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:22:22] Production.INFO: ==24942== Releasing lock... [2025-02-08 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:22:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:23:05 [end_date_ymd] => 2025-02-08 23:23:05 [RateCDR] => 1 ) [2025-02-08 23:23: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` >= '2025-02-08 20:23:05' and `end` < '2025-02-08 23:23: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 ,'') [2025-02-08 23:23:18] Production.INFO: count ==1609 [2025-02-08 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:23:05 - End Time 2025-02-08 23:23:05 [2025-02-08 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433052', 'tblTempUsageDetail_20' ) start [2025-02-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433052', 'tblTempUsageDetail_20' ) end [2025-02-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433052', 'tblTempVendorCDR_20' ) start [2025-02-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433052', 'tblTempVendorCDR_20' ) end [2025-02-08 23:23:18] Production.INFO: ProcessCDR(1,14433052,1,1,2) [2025-02-08 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433052', 'tblTempUsageDetail_20' ) start [2025-02-08 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433052', 'tblTempUsageDetail_20' ) end [2025-02-08 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:23:22] Production.INFO: ==25058== Releasing lock... [2025-02-08 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:23:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:24:05 [end_date_ymd] => 2025-02-08 23:24:05 [RateCDR] => 1 ) [2025-02-08 23:24: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` >= '2025-02-08 20:24:05' and `end` < '2025-02-08 23:24: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 ,'') [2025-02-08 23:24:19] Production.INFO: count ==1601 [2025-02-08 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:24:05 - End Time 2025-02-08 23:24:05 [2025-02-08 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433057', 'tblTempUsageDetail_20' ) start [2025-02-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433057', 'tblTempUsageDetail_20' ) end [2025-02-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433057', 'tblTempVendorCDR_20' ) start [2025-02-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433057', 'tblTempVendorCDR_20' ) end [2025-02-08 23:24:19] Production.INFO: ProcessCDR(1,14433057,1,1,2) [2025-02-08 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433057', 'tblTempUsageDetail_20' ) start [2025-02-08 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433057', 'tblTempUsageDetail_20' ) end [2025-02-08 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:24:22] Production.INFO: ==25172== Releasing lock... [2025-02-08 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:24:22] Production.INFO: 40 MB #Memory Used# [2025-02-08 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:25:04 [end_date_ymd] => 2025-02-08 23:25:04 [RateCDR] => 1 ) [2025-02-08 23:25:04] 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-02-08 20:25:04' and `end` < '2025-02-08 23:25:04' 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-02-08 23:25:18] Production.INFO: count ==1597 [2025-02-08 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:25:04 - End Time 2025-02-08 23:25:04 [2025-02-08 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433062', 'tblTempUsageDetail_20' ) start [2025-02-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433062', 'tblTempUsageDetail_20' ) end [2025-02-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433062', 'tblTempVendorCDR_20' ) start [2025-02-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433062', 'tblTempVendorCDR_20' ) end [2025-02-08 23:25:18] Production.INFO: ProcessCDR(1,14433062,1,1,2) [2025-02-08 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433062', 'tblTempUsageDetail_20' ) start [2025-02-08 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433062', 'tblTempUsageDetail_20' ) end [2025-02-08 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:25:21] Production.INFO: ==25276== Releasing lock... [2025-02-08 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:25:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:26:05 [end_date_ymd] => 2025-02-08 23:26:05 [RateCDR] => 1 ) [2025-02-08 23:26: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` >= '2025-02-08 20:26:05' and `end` < '2025-02-08 23:26: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 ,'') [2025-02-08 23:26:18] Production.INFO: count ==1596 [2025-02-08 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:26:05 - End Time 2025-02-08 23:26:05 [2025-02-08 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433067', 'tblTempUsageDetail_20' ) start [2025-02-08 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433067', 'tblTempUsageDetail_20' ) end [2025-02-08 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433067', 'tblTempVendorCDR_20' ) start [2025-02-08 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433067', 'tblTempVendorCDR_20' ) end [2025-02-08 23:26:19] Production.INFO: ProcessCDR(1,14433067,1,1,2) [2025-02-08 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433067', 'tblTempUsageDetail_20' ) start [2025-02-08 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433067', 'tblTempUsageDetail_20' ) end [2025-02-08 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:26:23] Production.INFO: ==25387== Releasing lock... [2025-02-08 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:26:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:27:04 [end_date_ymd] => 2025-02-08 23:27:04 [RateCDR] => 1 ) [2025-02-08 23:27:04] 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-02-08 20:27:04' and `end` < '2025-02-08 23:27:04' 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-02-08 23:27:18] Production.INFO: count ==1596 [2025-02-08 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:27:04 - End Time 2025-02-08 23:27:04 [2025-02-08 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433072', 'tblTempUsageDetail_20' ) start [2025-02-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433072', 'tblTempUsageDetail_20' ) end [2025-02-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433072', 'tblTempVendorCDR_20' ) start [2025-02-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433072', 'tblTempVendorCDR_20' ) end [2025-02-08 23:27:18] Production.INFO: ProcessCDR(1,14433072,1,1,2) [2025-02-08 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433072', 'tblTempUsageDetail_20' ) start [2025-02-08 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433072', 'tblTempUsageDetail_20' ) end [2025-02-08 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:27:23] Production.INFO: ==25480== Releasing lock... [2025-02-08 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:27:23] Production.INFO: 40 MB #Memory Used# [2025-02-08 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:28:05 [end_date_ymd] => 2025-02-08 23:28:05 [RateCDR] => 1 ) [2025-02-08 23:28: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` >= '2025-02-08 20:28:05' and `end` < '2025-02-08 23:28: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 ,'') [2025-02-08 23:28:18] Production.INFO: count ==1591 [2025-02-08 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:28:05 - End Time 2025-02-08 23:28:05 [2025-02-08 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433077', 'tblTempUsageDetail_20' ) start [2025-02-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433077', 'tblTempUsageDetail_20' ) end [2025-02-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433077', 'tblTempVendorCDR_20' ) start [2025-02-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433077', 'tblTempVendorCDR_20' ) end [2025-02-08 23:28:18] Production.INFO: ProcessCDR(1,14433077,1,1,2) [2025-02-08 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433077', 'tblTempUsageDetail_20' ) start [2025-02-08 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433077', 'tblTempUsageDetail_20' ) end [2025-02-08 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:28:22] Production.INFO: ==25554== Releasing lock... [2025-02-08 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:28:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:29:05 [end_date_ymd] => 2025-02-08 23:29:05 [RateCDR] => 1 ) [2025-02-08 23:29: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` >= '2025-02-08 20:29:05' and `end` < '2025-02-08 23:29: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 ,'') [2025-02-08 23:29:18] Production.INFO: count ==1595 [2025-02-08 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:29:05 - End Time 2025-02-08 23:29:05 [2025-02-08 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433082', 'tblTempUsageDetail_20' ) start [2025-02-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433082', 'tblTempUsageDetail_20' ) end [2025-02-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433082', 'tblTempVendorCDR_20' ) start [2025-02-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433082', 'tblTempVendorCDR_20' ) end [2025-02-08 23:29:18] Production.INFO: ProcessCDR(1,14433082,1,1,2) [2025-02-08 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433082', 'tblTempUsageDetail_20' ) start [2025-02-08 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433082', 'tblTempUsageDetail_20' ) end [2025-02-08 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:29:23] Production.INFO: ==25629== Releasing lock... [2025-02-08 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:29:23] Production.INFO: 40 MB #Memory Used# [2025-02-08 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:30:05 [end_date_ymd] => 2025-02-08 23:30:05 [RateCDR] => 1 ) [2025-02-08 23:30: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` >= '2025-02-08 20:30:05' and `end` < '2025-02-08 23:30: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 ,'') [2025-02-08 23:30:19] Production.INFO: count ==1591 [2025-02-08 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:30:05 - End Time 2025-02-08 23:30:05 [2025-02-08 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433088', 'tblTempUsageDetail_20' ) start [2025-02-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433088', 'tblTempUsageDetail_20' ) end [2025-02-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433088', 'tblTempVendorCDR_20' ) start [2025-02-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433088', 'tblTempVendorCDR_20' ) end [2025-02-08 23:30:19] Production.INFO: ProcessCDR(1,14433088,1,1,2) [2025-02-08 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433088', 'tblTempUsageDetail_20' ) start [2025-02-08 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433088', 'tblTempUsageDetail_20' ) end [2025-02-08 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:30:22] Production.INFO: ==25710== Releasing lock... [2025-02-08 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:30:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:31:06 [end_date_ymd] => 2025-02-08 23:31:06 [RateCDR] => 1 ) [2025-02-08 23:31: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-02-08 20:31:06' and `end` < '2025-02-08 23:31: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-02-08 23:31:19] Production.INFO: count ==1579 [2025-02-08 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:31:06 - End Time 2025-02-08 23:31:06 [2025-02-08 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433093', 'tblTempUsageDetail_20' ) start [2025-02-08 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433093', 'tblTempUsageDetail_20' ) end [2025-02-08 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433093', 'tblTempVendorCDR_20' ) start [2025-02-08 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433093', 'tblTempVendorCDR_20' ) end [2025-02-08 23:31:19] Production.INFO: ProcessCDR(1,14433093,1,1,2) [2025-02-08 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433093', 'tblTempUsageDetail_20' ) start [2025-02-08 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433093', 'tblTempUsageDetail_20' ) end [2025-02-08 23:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:31:24] Production.INFO: ==25787== Releasing lock... [2025-02-08 23:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:31:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:32:05 [end_date_ymd] => 2025-02-08 23:32:05 [RateCDR] => 1 ) [2025-02-08 23:32: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` >= '2025-02-08 20:32:05' and `end` < '2025-02-08 23:32: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 ,'') [2025-02-08 23:32:18] Production.INFO: count ==1579 [2025-02-08 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:32:05 - End Time 2025-02-08 23:32:05 [2025-02-08 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433098', 'tblTempUsageDetail_20' ) start [2025-02-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433098', 'tblTempUsageDetail_20' ) end [2025-02-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433098', 'tblTempVendorCDR_20' ) start [2025-02-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433098', 'tblTempVendorCDR_20' ) end [2025-02-08 23:32:18] Production.INFO: ProcessCDR(1,14433098,1,1,2) [2025-02-08 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433098', 'tblTempUsageDetail_20' ) start [2025-02-08 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433098', 'tblTempUsageDetail_20' ) end [2025-02-08 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:32:21] Production.INFO: ==25862== Releasing lock... [2025-02-08 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:32:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:33:04 [end_date_ymd] => 2025-02-08 23:33:04 [RateCDR] => 1 ) [2025-02-08 23:33:04] 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-02-08 20:33:04' and `end` < '2025-02-08 23:33:04' 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-02-08 23:33:18] Production.INFO: count ==1579 [2025-02-08 23:33:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:33:04 - End Time 2025-02-08 23:33:04 [2025-02-08 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433103', 'tblTempUsageDetail_20' ) start [2025-02-08 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433103', 'tblTempUsageDetail_20' ) end [2025-02-08 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433103', 'tblTempVendorCDR_20' ) start [2025-02-08 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433103', 'tblTempVendorCDR_20' ) end [2025-02-08 23:33:19] Production.INFO: ProcessCDR(1,14433103,1,1,2) [2025-02-08 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433103', 'tblTempUsageDetail_20' ) start [2025-02-08 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433103', 'tblTempUsageDetail_20' ) end [2025-02-08 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:33:22] Production.INFO: ==25940== Releasing lock... [2025-02-08 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:34:05 [end_date_ymd] => 2025-02-08 23:34:05 [RateCDR] => 1 ) [2025-02-08 23:34: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` >= '2025-02-08 20:34:05' and `end` < '2025-02-08 23:34: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 ,'') [2025-02-08 23:34:19] Production.INFO: count ==1579 [2025-02-08 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:34:05 - End Time 2025-02-08 23:34:05 [2025-02-08 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433108', 'tblTempUsageDetail_20' ) start [2025-02-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433108', 'tblTempUsageDetail_20' ) end [2025-02-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433108', 'tblTempVendorCDR_20' ) start [2025-02-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433108', 'tblTempVendorCDR_20' ) end [2025-02-08 23:34:19] Production.INFO: ProcessCDR(1,14433108,1,1,2) [2025-02-08 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433108', 'tblTempUsageDetail_20' ) start [2025-02-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433108', 'tblTempUsageDetail_20' ) end [2025-02-08 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:34:22] Production.INFO: ==26055== Releasing lock... [2025-02-08 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:34:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:35:06 [end_date_ymd] => 2025-02-08 23:35:06 [RateCDR] => 1 ) [2025-02-08 23:35: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-02-08 20:35:06' and `end` < '2025-02-08 23:35: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-02-08 23:35:19] Production.INFO: count ==1579 [2025-02-08 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:35:06 - End Time 2025-02-08 23:35:06 [2025-02-08 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433113', 'tblTempUsageDetail_20' ) start [2025-02-08 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433113', 'tblTempUsageDetail_20' ) end [2025-02-08 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433113', 'tblTempVendorCDR_20' ) start [2025-02-08 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433113', 'tblTempVendorCDR_20' ) end [2025-02-08 23:35:19] Production.INFO: ProcessCDR(1,14433113,1,1,2) [2025-02-08 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433113', 'tblTempUsageDetail_20' ) start [2025-02-08 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433113', 'tblTempUsageDetail_20' ) end [2025-02-08 23:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:35:23] Production.INFO: ==26130== Releasing lock... [2025-02-08 23:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:35:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:36:05 [end_date_ymd] => 2025-02-08 23:36:05 [RateCDR] => 1 ) [2025-02-08 23:36: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` >= '2025-02-08 20:36:05' and `end` < '2025-02-08 23:36: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 ,'') [2025-02-08 23:36:18] Production.INFO: count ==1579 [2025-02-08 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:36:05 - End Time 2025-02-08 23:36:05 [2025-02-08 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433118', 'tblTempUsageDetail_20' ) start [2025-02-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433118', 'tblTempUsageDetail_20' ) end [2025-02-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433118', 'tblTempVendorCDR_20' ) start [2025-02-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433118', 'tblTempVendorCDR_20' ) end [2025-02-08 23:36:18] Production.INFO: ProcessCDR(1,14433118,1,1,2) [2025-02-08 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433118', 'tblTempUsageDetail_20' ) start [2025-02-08 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433118', 'tblTempUsageDetail_20' ) end [2025-02-08 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:36:21] Production.INFO: ==26209== Releasing lock... [2025-02-08 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:36:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:37:06 [end_date_ymd] => 2025-02-08 23:37:06 [RateCDR] => 1 ) [2025-02-08 23:37: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-02-08 20:37:06' and `end` < '2025-02-08 23:37: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-02-08 23:37:19] Production.INFO: count ==1582 [2025-02-08 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:37:06 - End Time 2025-02-08 23:37:06 [2025-02-08 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433123', 'tblTempUsageDetail_20' ) start [2025-02-08 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433123', 'tblTempUsageDetail_20' ) end [2025-02-08 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433123', 'tblTempVendorCDR_20' ) start [2025-02-08 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433123', 'tblTempVendorCDR_20' ) end [2025-02-08 23:37:19] Production.INFO: ProcessCDR(1,14433123,1,1,2) [2025-02-08 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433123', 'tblTempUsageDetail_20' ) start [2025-02-08 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433123', 'tblTempUsageDetail_20' ) end [2025-02-08 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:37:22] Production.INFO: ==26293== Releasing lock... [2025-02-08 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:38:05 [end_date_ymd] => 2025-02-08 23:38:05 [RateCDR] => 1 ) [2025-02-08 23:38: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` >= '2025-02-08 20:38:05' and `end` < '2025-02-08 23:38: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 ,'') [2025-02-08 23:38:18] Production.INFO: count ==1583 [2025-02-08 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:38:05 - End Time 2025-02-08 23:38:05 [2025-02-08 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433128', 'tblTempUsageDetail_20' ) start [2025-02-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433128', 'tblTempUsageDetail_20' ) end [2025-02-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433128', 'tblTempVendorCDR_20' ) start [2025-02-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433128', 'tblTempVendorCDR_20' ) end [2025-02-08 23:38:19] Production.INFO: ProcessCDR(1,14433128,1,1,2) [2025-02-08 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433128', 'tblTempUsageDetail_20' ) start [2025-02-08 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433128', 'tblTempUsageDetail_20' ) end [2025-02-08 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:38:23] Production.INFO: ==26368== Releasing lock... [2025-02-08 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:38:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:39:05 [end_date_ymd] => 2025-02-08 23:39:05 [RateCDR] => 1 ) [2025-02-08 23:39: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` >= '2025-02-08 20:39:05' and `end` < '2025-02-08 23:39: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 ,'') [2025-02-08 23:39:18] Production.INFO: count ==1583 [2025-02-08 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:39:05 - End Time 2025-02-08 23:39:05 [2025-02-08 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433133', 'tblTempUsageDetail_20' ) start [2025-02-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433133', 'tblTempUsageDetail_20' ) end [2025-02-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433133', 'tblTempVendorCDR_20' ) start [2025-02-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433133', 'tblTempVendorCDR_20' ) end [2025-02-08 23:39:19] Production.INFO: ProcessCDR(1,14433133,1,1,2) [2025-02-08 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433133', 'tblTempUsageDetail_20' ) start [2025-02-08 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433133', 'tblTempUsageDetail_20' ) end [2025-02-08 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:39:22] Production.INFO: ==26442== Releasing lock... [2025-02-08 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:39:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:40:06 [end_date_ymd] => 2025-02-08 23:40:06 [RateCDR] => 1 ) [2025-02-08 23:40: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-02-08 20:40:06' and `end` < '2025-02-08 23:40: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-02-08 23:40:19] Production.INFO: count ==1583 [2025-02-08 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:40:06 - End Time 2025-02-08 23:40:06 [2025-02-08 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433139', 'tblTempUsageDetail_20' ) start [2025-02-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433139', 'tblTempUsageDetail_20' ) end [2025-02-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433139', 'tblTempVendorCDR_20' ) start [2025-02-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433139', 'tblTempVendorCDR_20' ) end [2025-02-08 23:40:19] Production.INFO: ProcessCDR(1,14433139,1,1,2) [2025-02-08 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433139', 'tblTempUsageDetail_20' ) start [2025-02-08 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433139', 'tblTempUsageDetail_20' ) end [2025-02-08 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:40:23] Production.INFO: ==26517== Releasing lock... [2025-02-08 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:40:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-08 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:41:05 [end_date_ymd] => 2025-02-08 23:41:05 [RateCDR] => 1 ) [2025-02-08 23:41: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` >= '2025-02-08 20:41:05' and `end` < '2025-02-08 23:41: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 ,'') [2025-02-08 23:41:18] Production.INFO: count ==1567 [2025-02-08 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:41:05 - End Time 2025-02-08 23:41:05 [2025-02-08 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433144', 'tblTempUsageDetail_20' ) start [2025-02-08 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433144', 'tblTempUsageDetail_20' ) end [2025-02-08 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433144', 'tblTempVendorCDR_20' ) start [2025-02-08 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433144', 'tblTempVendorCDR_20' ) end [2025-02-08 23:41:19] Production.INFO: ProcessCDR(1,14433144,1,1,2) [2025-02-08 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433144', 'tblTempUsageDetail_20' ) start [2025-02-08 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433144', 'tblTempUsageDetail_20' ) end [2025-02-08 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:41:22] Production.INFO: ==26596== Releasing lock... [2025-02-08 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:42:04 [end_date_ymd] => 2025-02-08 23:42:04 [RateCDR] => 1 ) [2025-02-08 23:42:04] 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-02-08 20:42:04' and `end` < '2025-02-08 23:42:04' 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-02-08 23:42:17] Production.INFO: count ==1566 [2025-02-08 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:42:04 - End Time 2025-02-08 23:42:04 [2025-02-08 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433149', 'tblTempUsageDetail_20' ) start [2025-02-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433149', 'tblTempUsageDetail_20' ) end [2025-02-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433149', 'tblTempVendorCDR_20' ) start [2025-02-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433149', 'tblTempVendorCDR_20' ) end [2025-02-08 23:42:18] Production.INFO: ProcessCDR(1,14433149,1,1,2) [2025-02-08 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433149', 'tblTempUsageDetail_20' ) start [2025-02-08 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433149', 'tblTempUsageDetail_20' ) end [2025-02-08 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:42:21] Production.INFO: ==26678== Releasing lock... [2025-02-08 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:42:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:43:05 [end_date_ymd] => 2025-02-08 23:43:05 [RateCDR] => 1 ) [2025-02-08 23:43: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` >= '2025-02-08 20:43:05' and `end` < '2025-02-08 23:43: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 ,'') [2025-02-08 23:43:19] Production.INFO: count ==1565 [2025-02-08 23:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:43:05 - End Time 2025-02-08 23:43:05 [2025-02-08 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433154', 'tblTempUsageDetail_20' ) start [2025-02-08 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433154', 'tblTempUsageDetail_20' ) end [2025-02-08 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433154', 'tblTempVendorCDR_20' ) start [2025-02-08 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433154', 'tblTempVendorCDR_20' ) end [2025-02-08 23:43:19] Production.INFO: ProcessCDR(1,14433154,1,1,2) [2025-02-08 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433154', 'tblTempUsageDetail_20' ) start [2025-02-08 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433154', 'tblTempUsageDetail_20' ) end [2025-02-08 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:43:22] Production.INFO: ==26752== Releasing lock... [2025-02-08 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:43:22] Production.INFO: 40 MB #Memory Used# [2025-02-08 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:44:05 [end_date_ymd] => 2025-02-08 23:44:05 [RateCDR] => 1 ) [2025-02-08 23:44: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` >= '2025-02-08 20:44:05' and `end` < '2025-02-08 23:44: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 ,'') [2025-02-08 23:44:19] Production.INFO: count ==1565 [2025-02-08 23:44:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:44:05 - End Time 2025-02-08 23:44:05 [2025-02-08 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433159', 'tblTempUsageDetail_20' ) start [2025-02-08 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433159', 'tblTempUsageDetail_20' ) end [2025-02-08 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433159', 'tblTempVendorCDR_20' ) start [2025-02-08 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433159', 'tblTempVendorCDR_20' ) end [2025-02-08 23:44:19] Production.INFO: ProcessCDR(1,14433159,1,1,2) [2025-02-08 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433159', 'tblTempUsageDetail_20' ) start [2025-02-08 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433159', 'tblTempUsageDetail_20' ) end [2025-02-08 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:44:23] Production.INFO: ==26826== Releasing lock... [2025-02-08 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:44:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:45:05 [end_date_ymd] => 2025-02-08 23:45:05 [RateCDR] => 1 ) [2025-02-08 23:45: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` >= '2025-02-08 20:45:05' and `end` < '2025-02-08 23:45: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 ,'') [2025-02-08 23:45:18] Production.INFO: count ==1563 [2025-02-08 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:45:05 - End Time 2025-02-08 23:45:05 [2025-02-08 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433164', 'tblTempUsageDetail_20' ) start [2025-02-08 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433164', 'tblTempUsageDetail_20' ) end [2025-02-08 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433164', 'tblTempVendorCDR_20' ) start [2025-02-08 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433164', 'tblTempVendorCDR_20' ) end [2025-02-08 23:45:19] Production.INFO: ProcessCDR(1,14433164,1,1,2) [2025-02-08 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433164', 'tblTempUsageDetail_20' ) start [2025-02-08 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433164', 'tblTempUsageDetail_20' ) end [2025-02-08 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:45:22] Production.INFO: ==26904== Releasing lock... [2025-02-08 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:46:05 [end_date_ymd] => 2025-02-08 23:46:05 [RateCDR] => 1 ) [2025-02-08 23:46: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` >= '2025-02-08 20:46:05' and `end` < '2025-02-08 23:46: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 ,'') [2025-02-08 23:46:19] Production.INFO: count ==1569 [2025-02-08 23:46:20] Production.ERROR: pbx CDR StartTime 2025-02-08 20:46:05 - End Time 2025-02-08 23:46:05 [2025-02-08 23:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433169', 'tblTempUsageDetail_20' ) start [2025-02-08 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433169', 'tblTempUsageDetail_20' ) end [2025-02-08 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433169', 'tblTempVendorCDR_20' ) start [2025-02-08 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433169', 'tblTempVendorCDR_20' ) end [2025-02-08 23:46:20] Production.INFO: ProcessCDR(1,14433169,1,1,2) [2025-02-08 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433169', 'tblTempUsageDetail_20' ) start [2025-02-08 23:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433169', 'tblTempUsageDetail_20' ) end [2025-02-08 23:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:46:25] Production.INFO: ==26981== Releasing lock... [2025-02-08 23:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:46:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:47:05 [end_date_ymd] => 2025-02-08 23:47:05 [RateCDR] => 1 ) [2025-02-08 23:47: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` >= '2025-02-08 20:47:05' and `end` < '2025-02-08 23:47: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 ,'') [2025-02-08 23:47:18] Production.INFO: count ==1568 [2025-02-08 23:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:47:05 - End Time 2025-02-08 23:47:05 [2025-02-08 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433174', 'tblTempUsageDetail_20' ) start [2025-02-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433174', 'tblTempUsageDetail_20' ) end [2025-02-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433174', 'tblTempVendorCDR_20' ) start [2025-02-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433174', 'tblTempVendorCDR_20' ) end [2025-02-08 23:47:19] Production.INFO: ProcessCDR(1,14433174,1,1,2) [2025-02-08 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433174', 'tblTempUsageDetail_20' ) start [2025-02-08 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433174', 'tblTempUsageDetail_20' ) end [2025-02-08 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:47:22] Production.INFO: ==27059== Releasing lock... [2025-02-08 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:48:05 [end_date_ymd] => 2025-02-08 23:48:05 [RateCDR] => 1 ) [2025-02-08 23:48: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` >= '2025-02-08 20:48:05' and `end` < '2025-02-08 23:48: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 ,'') [2025-02-08 23:48:18] Production.INFO: count ==1566 [2025-02-08 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:48:05 - End Time 2025-02-08 23:48:05 [2025-02-08 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433179', 'tblTempUsageDetail_20' ) start [2025-02-08 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433179', 'tblTempUsageDetail_20' ) end [2025-02-08 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433179', 'tblTempVendorCDR_20' ) start [2025-02-08 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433179', 'tblTempVendorCDR_20' ) end [2025-02-08 23:48:19] Production.INFO: ProcessCDR(1,14433179,1,1,2) [2025-02-08 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433179', 'tblTempUsageDetail_20' ) start [2025-02-08 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433179', 'tblTempUsageDetail_20' ) end [2025-02-08 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:48:22] Production.INFO: ==27130== Releasing lock... [2025-02-08 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:49:05 [end_date_ymd] => 2025-02-08 23:49:05 [RateCDR] => 1 ) [2025-02-08 23:49: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` >= '2025-02-08 20:49:05' and `end` < '2025-02-08 23:49: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 ,'') [2025-02-08 23:49:18] Production.INFO: count ==1566 [2025-02-08 23:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:49:05 - End Time 2025-02-08 23:49:05 [2025-02-08 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433184', 'tblTempUsageDetail_20' ) start [2025-02-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433184', 'tblTempUsageDetail_20' ) end [2025-02-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433184', 'tblTempVendorCDR_20' ) start [2025-02-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433184', 'tblTempVendorCDR_20' ) end [2025-02-08 23:49:19] Production.INFO: ProcessCDR(1,14433184,1,1,2) [2025-02-08 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433184', 'tblTempUsageDetail_20' ) start [2025-02-08 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433184', 'tblTempUsageDetail_20' ) end [2025-02-08 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:49:22] Production.INFO: ==27205== Releasing lock... [2025-02-08 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:50:06 [end_date_ymd] => 2025-02-08 23:50:06 [RateCDR] => 1 ) [2025-02-08 23:50: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-02-08 20:50:06' and `end` < '2025-02-08 23:50: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-02-08 23:50:19] Production.INFO: count ==1565 [2025-02-08 23:50:20] Production.ERROR: pbx CDR StartTime 2025-02-08 20:50:06 - End Time 2025-02-08 23:50:06 [2025-02-08 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433190', 'tblTempUsageDetail_20' ) start [2025-02-08 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433190', 'tblTempUsageDetail_20' ) end [2025-02-08 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433190', 'tblTempVendorCDR_20' ) start [2025-02-08 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433190', 'tblTempVendorCDR_20' ) end [2025-02-08 23:50:20] Production.INFO: ProcessCDR(1,14433190,1,1,2) [2025-02-08 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433190', 'tblTempUsageDetail_20' ) start [2025-02-08 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433190', 'tblTempUsageDetail_20' ) end [2025-02-08 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:50:23] Production.INFO: ==27325== Releasing lock... [2025-02-08 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:51:05 [end_date_ymd] => 2025-02-08 23:51:05 [RateCDR] => 1 ) [2025-02-08 23:51: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` >= '2025-02-08 20:51:05' and `end` < '2025-02-08 23:51: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 ,'') [2025-02-08 23:51:18] Production.INFO: count ==1566 [2025-02-08 23:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:51:05 - End Time 2025-02-08 23:51:05 [2025-02-08 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433195', 'tblTempUsageDetail_20' ) start [2025-02-08 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433195', 'tblTempUsageDetail_20' ) end [2025-02-08 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433195', 'tblTempVendorCDR_20' ) start [2025-02-08 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433195', 'tblTempVendorCDR_20' ) end [2025-02-08 23:51:19] Production.INFO: ProcessCDR(1,14433195,1,1,2) [2025-02-08 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433195', 'tblTempUsageDetail_20' ) start [2025-02-08 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433195', 'tblTempUsageDetail_20' ) end [2025-02-08 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:51:22] Production.INFO: ==27403== Releasing lock... [2025-02-08 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:51:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:52:05 [end_date_ymd] => 2025-02-08 23:52:05 [RateCDR] => 1 ) [2025-02-08 23:52: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` >= '2025-02-08 20:52:05' and `end` < '2025-02-08 23:52: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 ,'') [2025-02-08 23:52:18] Production.INFO: count ==1566 [2025-02-08 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:52:05 - End Time 2025-02-08 23:52:05 [2025-02-08 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433200', 'tblTempUsageDetail_20' ) start [2025-02-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433200', 'tblTempUsageDetail_20' ) end [2025-02-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433200', 'tblTempVendorCDR_20' ) start [2025-02-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433200', 'tblTempVendorCDR_20' ) end [2025-02-08 23:52:18] Production.INFO: ProcessCDR(1,14433200,1,1,2) [2025-02-08 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433200', 'tblTempUsageDetail_20' ) start [2025-02-08 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433200', 'tblTempUsageDetail_20' ) end [2025-02-08 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:52:22] Production.INFO: ==27480== Releasing lock... [2025-02-08 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:52:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:53:05 [end_date_ymd] => 2025-02-08 23:53:05 [RateCDR] => 1 ) [2025-02-08 23:53: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` >= '2025-02-08 20:53:05' and `end` < '2025-02-08 23:53: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 ,'') [2025-02-08 23:53:18] Production.INFO: count ==1568 [2025-02-08 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:53:05 - End Time 2025-02-08 23:53:05 [2025-02-08 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433205', 'tblTempUsageDetail_20' ) start [2025-02-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433205', 'tblTempUsageDetail_20' ) end [2025-02-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433205', 'tblTempVendorCDR_20' ) start [2025-02-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433205', 'tblTempVendorCDR_20' ) end [2025-02-08 23:53:18] Production.INFO: ProcessCDR(1,14433205,1,1,2) [2025-02-08 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433205', 'tblTempUsageDetail_20' ) start [2025-02-08 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433205', 'tblTempUsageDetail_20' ) end [2025-02-08 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:53:21] Production.INFO: ==27556== Releasing lock... [2025-02-08 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:53:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:54:05 [end_date_ymd] => 2025-02-08 23:54:05 [RateCDR] => 1 ) [2025-02-08 23:54: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` >= '2025-02-08 20:54:05' and `end` < '2025-02-08 23:54: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 ,'') [2025-02-08 23:54:19] Production.INFO: count ==1568 [2025-02-08 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:54:05 - End Time 2025-02-08 23:54:05 [2025-02-08 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433210', 'tblTempUsageDetail_20' ) start [2025-02-08 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433210', 'tblTempUsageDetail_20' ) end [2025-02-08 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433210', 'tblTempVendorCDR_20' ) start [2025-02-08 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433210', 'tblTempVendorCDR_20' ) end [2025-02-08 23:54:19] Production.INFO: ProcessCDR(1,14433210,1,1,2) [2025-02-08 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433210', 'tblTempUsageDetail_20' ) start [2025-02-08 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433210', 'tblTempUsageDetail_20' ) end [2025-02-08 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:54:22] Production.INFO: ==27630== Releasing lock... [2025-02-08 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:55:04 [end_date_ymd] => 2025-02-08 23:55:04 [RateCDR] => 1 ) [2025-02-08 23:55:04] 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-02-08 20:55:04' and `end` < '2025-02-08 23:55:04' 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-02-08 23:55:18] Production.INFO: count ==1566 [2025-02-08 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:55:04 - End Time 2025-02-08 23:55:04 [2025-02-08 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433215', 'tblTempUsageDetail_20' ) start [2025-02-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433215', 'tblTempUsageDetail_20' ) end [2025-02-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433215', 'tblTempVendorCDR_20' ) start [2025-02-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433215', 'tblTempVendorCDR_20' ) end [2025-02-08 23:55:18] Production.INFO: ProcessCDR(1,14433215,1,1,2) [2025-02-08 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433215', 'tblTempUsageDetail_20' ) start [2025-02-08 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433215', 'tblTempUsageDetail_20' ) end [2025-02-08 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:55:22] Production.INFO: ==27706== Releasing lock... [2025-02-08 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:55:22] Production.INFO: 40 MB #Memory Used# [2025-02-08 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:56:05 [end_date_ymd] => 2025-02-08 23:56:05 [RateCDR] => 1 ) [2025-02-08 23:56: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` >= '2025-02-08 20:56:05' and `end` < '2025-02-08 23:56: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 ,'') [2025-02-08 23:56:18] Production.INFO: count ==1567 [2025-02-08 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:56:05 - End Time 2025-02-08 23:56:05 [2025-02-08 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433220', 'tblTempUsageDetail_20' ) start [2025-02-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433220', 'tblTempUsageDetail_20' ) end [2025-02-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433220', 'tblTempVendorCDR_20' ) start [2025-02-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433220', 'tblTempVendorCDR_20' ) end [2025-02-08 23:56:18] Production.INFO: ProcessCDR(1,14433220,1,1,2) [2025-02-08 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433220', 'tblTempUsageDetail_20' ) start [2025-02-08 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433220', 'tblTempUsageDetail_20' ) end [2025-02-08 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:56:23] Production.INFO: ==27781== Releasing lock... [2025-02-08 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:56:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-08 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:57:05 [end_date_ymd] => 2025-02-08 23:57:05 [RateCDR] => 1 ) [2025-02-08 23:57: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` >= '2025-02-08 20:57:05' and `end` < '2025-02-08 23:57: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 ,'') [2025-02-08 23:57:18] Production.INFO: count ==1568 [2025-02-08 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:57:05 - End Time 2025-02-08 23:57:05 [2025-02-08 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433225', 'tblTempUsageDetail_20' ) start [2025-02-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433225', 'tblTempUsageDetail_20' ) end [2025-02-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433225', 'tblTempVendorCDR_20' ) start [2025-02-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433225', 'tblTempVendorCDR_20' ) end [2025-02-08 23:57:18] Production.INFO: ProcessCDR(1,14433225,1,1,2) [2025-02-08 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433225', 'tblTempUsageDetail_20' ) start [2025-02-08 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433225', 'tblTempUsageDetail_20' ) end [2025-02-08 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:57:23] Production.INFO: ==27858== Releasing lock... [2025-02-08 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:57:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:58:05 [end_date_ymd] => 2025-02-08 23:58:05 [RateCDR] => 1 ) [2025-02-08 23:58: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` >= '2025-02-08 20:58:05' and `end` < '2025-02-08 23:58: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 ,'') [2025-02-08 23:58:18] Production.INFO: count ==1514 [2025-02-08 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 20:58:05 - End Time 2025-02-08 23:58:05 [2025-02-08 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433230', 'tblTempUsageDetail_20' ) start [2025-02-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433230', 'tblTempUsageDetail_20' ) end [2025-02-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433230', 'tblTempVendorCDR_20' ) start [2025-02-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433230', 'tblTempVendorCDR_20' ) end [2025-02-08 23:58:18] Production.INFO: ProcessCDR(1,14433230,1,1,2) [2025-02-08 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433230', 'tblTempUsageDetail_20' ) start [2025-02-08 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433230', 'tblTempUsageDetail_20' ) end [2025-02-08 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:58:23] Production.INFO: ==27932== Releasing lock... [2025-02-08 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-08 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 20:59:05 [end_date_ymd] => 2025-02-08 23:59:05 [RateCDR] => 1 ) [2025-02-08 23:59: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` >= '2025-02-08 20:59:05' and `end` < '2025-02-08 23:59: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 ,'') [2025-02-08 23:59:19] Production.INFO: count ==1433 [2025-02-08 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 20:59:05 - End Time 2025-02-08 23:59:05 [2025-02-08 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433235', 'tblTempUsageDetail_20' ) start [2025-02-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433235', 'tblTempUsageDetail_20' ) end [2025-02-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433235', 'tblTempVendorCDR_20' ) start [2025-02-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433235', 'tblTempVendorCDR_20' ) end [2025-02-08 23:59:19] Production.INFO: ProcessCDR(1,14433235,1,1,2) [2025-02-08 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-08 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-08 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433235', 'tblTempUsageDetail_20' ) start [2025-02-08 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433235', 'tblTempUsageDetail_20' ) end [2025-02-08 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-08 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-08 23:59:23] Production.INFO: ==28008== Releasing lock... [2025-02-08 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-08 23:59:23] Production.INFO: 38.75 MB #Memory Used#